Aller au contenu
  • 0

Demande d'aide Skript cooldown?


Question

Posté(e)

Bonjour chères skripteu(rses),

 

Aujourd'hui je vien vous pour mettre un cooldown à un kit comme le pluggins essentials.

et avoir un /kit vip ou /kit joueur avec des argument j'ai essayé:

 

if arg 1 is "Joueur":

give...

 

 

Mon code pour le kit

 

command /kit j:

permission: kitj.use

trigger:

give Iron Helmet of protection 1 named "&7&l[&e&lJ&7&l]" to the player

give Iron chestplate of protection 1 named "&7&l[&e&lJ&7&l]" to the player

give Iron Leggings of protection 1 named "&7&l[&e&lJ&7&l]" to the player

give Iron Boots of protection 1 named "&7&l[&e&lJ&7&l]" to the player

give 16 steak named "&7&l[&e&lJ&7&l]" to the player

6 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Bonjour chères skripteu(rses),

 

Aujourd'hui je vien vous pour mettre un cooldown à un kit comme le pluggins essentials.

et avoir un /kit vip ou /kit joueur avec des argument j'ai essayé:

 

if arg 1 is "Joueur":

give...

 

 

Mon code pour le kit

 

command /kit j:

permission: kitj.use

trigger:

give Iron Helmet of protection 1 named "&7&l[&e&lJ&7&l]" to the player

give Iron chestplate of protection 1 named "&7&l[&e&lJ&7&l]" to the player

give Iron Leggings of protection 1 named "&7&l[&e&lJ&7&l]" to the player

give Iron Boots of protection 1 named "&7&l[&e&lJ&7&l]" to the player

give 16 steak named "&7&l[&e&lJ&7&l]" to the player

 

 

J'espere que sa te va !

 

[spoiler=Le code !][spoiler=Le code !]

# >> Skript fait par TheHardTrox <<
#        >> Skype HardTroxPvP <<


# *** > Skript : Kits < *** #


# --- > Configuration < --- #
options:
   listkits : &7Les kits : &eJoueur &cVip
   cooldown : 1  #en minutes
# --- > Configuration < --- #


command /kits [<text>]:
   trigger:
       if arg 1 is not set:
           message "{@listkits}"
       if arg 1 is "joueur":
           if player has permission "kitjoueur.use":
               if {cooldownkitj.%player%} is not set:
                   set {cooldownkitj.%player%} to 1
                   give Iron helmet of protection 1 named "&7&l[&e&lJ&7&l]" to player
                   give Iron chestplate of protection 1 named "&7&l[&e&lJ&7&l]" to player
                   give Iron Leggings of protection 1 named "&7&l[&e&lJ&7&l]" to player
                   give Iron Boots of protection 1 named "&7&l[&e&lJ&7&l]" to player
                   give 16 steak named "&7&l[&e&lJ&7&l]" to player
                   message "&7Tu as reçu ton kits !"
                   wait {@cooldown} minutes
                   delete {cooldownkitj.%player%}
                   message "&9Ton kit joueur est disponible !"
                   stop
               else:
                   message "Tu dois patienter !"
           else:
               message "&c tu n'as pas la permission"

       if arg 1 is "vip":
           if player has permission "kitvip.use":
               if {cooldownkitvip.%player%} is not set:
                   set {cooldownkitvip.%player%} to 1
                   give Iron helmet of protection 1 named "&7&l[&e&lJ&7&l]" to player
                   give Iron chestplate of protection 1 named "&7&l[&e&lJ&7&l]" to player
                   give Iron Leggings of protection 1 named "&7&l[&e&lJ&7&l]" to player
                   give Iron Boots of protection 1 named "&7&l[&e&lJ&7&l]" to player
                   give 16 steak named "&7&l[&e&lJ&7&l]" to player
                   message "&7Tu as reçu ton kits !"
                   wait {@cooldown} minutes
                   delete {cooldownkitvip.%player%}
                   message "&9Ton kit VIP est disponible"
                   stop
               else:
                   message "Tu dois patienter !"
           else:
               message "&c tu n'as pas la permission"







 

 

 

  • 0
Posté(e)
Il marche merci ;) dans ta signature on peut pas cliquer pour voir tes sk x) :/ et comment je fait pour ajouter un autre code ? je copie quelle partie du code?

a tu Skype ? si oui ajoute le mien HardTroxPvP

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