Dozensam Posté(e) le 29 novembre 2015 Posté(e) le 29 novembre 2015 Bonjour, Je voudrais un skript pouc compter combien de fois la personne a taper en x seconde, Je veux pas du on left click: pourquoi ? car quand une personne fait du Kill Aura ben ça compte pas comme des click bizar donc je voudrais faire un systeme que quand la personne a taper X fois la personne ça nous envoie un message
Spartan9802 Posté(e) le 29 novembre 2015 Posté(e) le 29 novembre 2015 Bonsoir; Normalement c'est ça, vérifiez si il marche je vient de le faire vite fait. options: number: 7 on damage: if victim and attacker is a player: if {WCAntiKill.%uuid of attacker%.count} is not set: add 1 to {WCAntiKill.%uuid of attacker%.count} wait 1 second delete {WCAntiKill.%uuid of attacker%.count} else: add 1 to {WCAntiKill.%uuid of attacker%.count} if {WCAntiKill.%uuid of attacker%.count} >= {@number}: #Ecris ton systéme de message. else: stop
Dozensam Posté(e) le 30 novembre 2015 Auteur Posté(e) le 30 novembre 2015 Bonsoir; Normalement c'est ça, vérifiez si il marche je vient de le faire vite fait. options: number: 7 on damage: if victim and attacker is a player: if {WCAntiKill.%uuid of attacker%.count} is not set: add 1 to {WCAntiKill.%uuid of attacker%.count} wait 1 second delete {WCAntiKill.%uuid of attacker%.count} else: add 1 to {WCAntiKill.%uuid of attacker%.count} if {WCAntiKill.%uuid of attacker%.count} >= {@number}: #Ecris ton systéme de message. else: stop marche po on damage: if attacker is a player: if victim is a citizen: if {WCAntiKill.%attacker%.count} is not set: add 1 to {WCAntiKill.%attacker%.count} wait 10 second delete {WCAntiKill.%attacker%.count} else: add 1 to {WCAntiKill.%attacker%.count} if {WCAntiKill.%attacker%.count} >= 1: broadcast "cc %{WCAntiKill.%attacker%.count}%" else: stop Ok, j'ai compris, sa compte quand on tape des mobs, mais si c'est un NPC ça compte pas c'est assez wtf
Messages recommandés