Aller au contenu

Messages recommandés

Posté(e)

Bonjour à tous!

Je suis actuellement en train de faire un Skript mais j'aurais besoin d'une aide.

J'aimerais l'évenement "lorsque qu'on tue un joueur".

Je m'explique, si par exemple moi je tue un joueur, quelques choses s'execute.

 

Merci de votre aide!

Posté(e)

on death of player:
   send "&aVous avez tué %victim%" to attacker
   send "&a%attacker% vous a tué" to victim

 

attacker est l'attaquant donc la personne qui tue le joueur

et

victim est la personne qui meurt

 

tu peux faire aussi

make attacker execute command "/say Bonjour"

  • J'aime 1
Posté(e)
on death of player:
   send "&aVous avez tué %victim%" to attacker
   send "&a%attacker% vous a tué" to victim

 

attacker est l'attaquant donc la personne qui tue le joueur

et

victim est la personne qui meurt

 

tu peux faire aussi

make attacker execute command "/say Bonjour"

Merci tu m'as beaucouper aider! J'ai un soucis par contre.

Enfaite, quand un joueur tue un autre joueur, il recoit les deux evenements, j'aimerais qu'il n'en recoit qu'un selon la perm qu'il a. Le code est le suivant.

on death of a player:
   if player have permission "coins.joueur":
   if attacker is a player:
       make console execute command "points give %attacker% 2"
       send "&dGain&7: &a+ &61 Pièce &8(&cKill&8)" to attacker

on death of a player:
   if player have permission "coins.vip":
   if attacker is a player:
       make console execute command "points give %attacker% 4"
       send "&dGain&7: &a+ &64 Pièce &8(&cKill&8) &e[VIP Bonus]" to attacker

Posté(e)

Comme ça ?

 

on death of a player:
  if attacker is a player:
      if player has permission "coins.joueur":
         make console execute command "points give %attacker% 2"
         send "&dGain&7: &a+ &61 Pièce &8(&cKill&8)" to attacker

     else if player has permission "coins.vip":
        make console execute command "points give %attacker% 4"
        send "&dGain&7: &a+ &64 Pièce &8(&cKill&8) &e[VIP Bonus]" to attacker

     else:
        send "&eHaha lol, tu ne gagnes &6rien&e.

Posté(e)
Comme ça ?

 

on death of a player:
  if attacker is a player:
      if player has permission "coins.joueur":
         make console execute command "points give %attacker% 2"
         send "&dGain&7: &a+ &61 Pièce &8(&cKill&8)" to attacker

     else if player has permission "coins.vip":
        make console execute command "points give %attacker% 4"
        send "&dGain&7: &a+ &64 Pièce &8(&cKill&8) &e[VIP Bonus]" to attacker

     else:
        send "&eHaha lol, tu ne gagnes &6rien&e.

 

Oui je pense que ton code est juste mais le soucis c'est que un joueur qui a la perm VIP ne recoit qu'un coins.

×
×
  • 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.