Aller au contenu

Anti Spawn Kill


Messages recommandés

Posté(e)

Humm, tiens :

 

on death of player:
   set {antispawnkill.%player%} to true
   wait 5 seconds
   set {antispawnkill.%player%} to false

on damage:
   if attacker is player:
       if victim is player:
           if {antispawnkill.%victim%} is true:
               cancel event
               send "&cCe joueur est protégé par l'antispawnkill !" to attacker

 

Voili voilou, hésite pas à mettre un like si ca t'a help, ca fait plaisir :)

 

Cordialement,

Frekzz

  • J'aime 1
Posté(e)

Retire if attacker is player, et mets if victim is A player :)

 

EDIT : Jme suis fail, dans on death of player, il faut mettre, set {antispawnkill.%victim%} to true et pareil pour to false :) Du coup laisse le if attacker is player :p

  • J'aime 1
Posté(e)
Retire if attacker is player, et mets if victim is A player :)

 

EDIT : Jme suis fail, dans on death of player, il faut mettre, set {antispawnkill.%victim%} to true et pareil pour to false :) Du coup laisse le if attacker is player :p

Possible de m'envoyer le code non-bugé? Merci! (code complet)

Posté(e)

voilà :)

 

on death of player:
   set {antispawnkill.%victim%} to true
   wait 5 seconds
   set {antispawnkill.%victim%} to false

on damage:
   if victim is a player:
       if {antispawnkill.%victim%} is true:
           cancel event
           send "&cCe joueur est protégé par l'antispawnkill !" to attacker

 

j'ai testé et ca marche pour moi ^^

  • J'aime 1
×
×
  • 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.