Aller au contenu
  • 0

Killer Money


Question

Posté(e)

Bonjour j'ai codé un petit truc mais j'aimerais savoir si quelq'un peut le modifié en faisant en sorte que si le joueur a la permission "killermoney.vip" il gagne pas 10 mais 15 de money et si un joueur a la permission "killermoney.supreme" il gagne pas 10 mais 20 de money . Merci de votre aide 

on death of a player:
	if victim is a player:
		if attacker is a player:
			make console execute command "money give %attacker% 10"
			send "&aVous avez tué &c%victim%" to attacker
			send "&a+10 CR" to attacker
			send "&aVous avez été tuer par &c%attacker%" to victim


 

 

3 réponses à cette question

Messages recommandés

  • 0
Posté(e) (modifié)

Bonjour, Bonsoir, j'ai fait quelque chose en quelques secondes je n'ai pas testé mais tien:

on death:
	victim is a player
	attacker is a player
	send "&aVous avez tué &c%victim%" to attacker
	send "&aVous avez été tuer par &c%attacker%" to victim
	if attacker has permission "killermoney.vip":
		make console execute command "money give %attacker% 15"
		send "&a+15 CR" to attacker
		stop
	if attacker has permission "killermoney.supreme":	
		make console execute command "money give %attacker% 20"
		send "&a+20 CR" to attacker
		stop
	make console execute command "money give %attacker% 10"
	send "&a+10 CR" to attacker

N'hésite pas à me faire part si y'a un bug.

Modifié par ShaDiIXx
  • J'aime 1
  • 0
Posté(e)
Il y a 1 heure, ShaDiIXx a dit :

Bonjour, Bonsoir, j'ai fait quelque chose en quelques secondes je n'ai pas testé mais tien:


on death:
	victim is a player
	attacker is a player
	send "&aVous avez tué &c%victim%" to attacker
	send "&aVous avez été tuer par &c%attacker%" to victim
	if attacker has permission "killermoney.vip":
		make console execute command "money give %attacker% 15"
		send "&a+15 CR" to attacker
		stop
	if attacker has permission "killermoney.supreme":	
		make console execute command "money give %attacker% 20"
		send "&a+20 CR" to attacker
		stop
	make console execute command "money give %attacker% 10"
	send "&a+10 CR" to attacker

N'hésite pas à me faire part si y'a un bug.

Merci pour ton aide ca fonctionne super ! Bonne fin de soirée

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.