Aller au contenu

Messages recommandés

Posté(e)

Bonjour avant de partir, je tiens a préciser que je sais qu'il existe plein de skript mais il n'y a pas ce que je recherche.

 

J'aimerais un skript modération inventaire inédit.

 

Ca marchera comment ?

 

Très simple via le /mod

 

Les items

 

Slot 1 : Blaze Rod : Pour le vanish

Slot 2 : Barreau de fer : Freeze

Slot 3 : Coffre : Voir l'inventaire

Slot 4 : Livre : voir les cps via le plugin autoclicker verif

Slot 5 : Epee recul 3 : Verif le kb

Slot 6 : Boussole

Slot 9 : Random tp

 

Possible que quelqu'un me fasse ca ?

 

Je sais que j'en demande bcp mais ca serait sympa de me le faire

Posté(e)
Bonjour avant de partir, je tiens a préciser que je sais qu'il existe plein de skript mais il n'y a pas ce que je recherche.

 

J'aimerais un skript modération inventaire inédit.

 

Ca marchera comment ?

 

Très simple via le /mod

 

Les items

 

Slot 1 : Blaze Rod : Pour le vanish

Slot 2 : Barreau de fer : Freeze

Slot 3 : Coffre : Voir l'inventaire

Slot 4 : Livre : voir les cps via le plugin autoclicker verif

Slot 5 : Epee recul 3 : Verif le kb

Slot 6 : Boussole

Slot 9 : Random tp

 

Possible que quelqu'un me fasse ca ?

 

Je sais que j'en demande bcp mais ca serait sympa de me le faire

Il existe des scripts capables de répondre à ta demande.

Cependant, je laisse ton post actif pour le moment, si une âme charitable t'offre son aide, tant mieux pour toi, mais je le fermerais dans quelques jours.

Posté(e)

Bonjour, j'ai hier (justement) fais un skript a peu prêt comme celui que tu demande :

 

command /modz <text>:
   permission: modz.inv
   permission message: &cErreur ! : &7Tu n'as pas la permission d'effectuer cette commande !
   trigger:
       if player has permission "modz.inv.perm" or "modz.*":
           if arg 1 is "on":
               set {inventaire.%player%} to player's inventory
               set {exemple.%player%::inventaire} to serialized contents of player's inventory #Sauvegarde l'inventaire du joueur
               set {exemple.%player%::casque} to helmet of player #Sauvegarde le casque du joueur
               set {exemple.%player%::plastron} to chestplate of player #Sauvegarde le plastron du joueur
               set {exemple.%player%::pantalon} to leggings of player #Sauvegarde les jambières du joueur
               set {exemple.%player%::bottes} to boots of player #Sauvegarde les bottes du joueu
               set {god.%player%} to true
               set {mod.inv.%player%} to true
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "&9[&3Mod&9] &bLancement de l'inventaire dans 3 secondes !" to player
               wait 1 seconds
               send "&9[&3Mod&9] &bLancement de l'inventaire dans 2 secondes !" to player
               wait 1 seconds
               send "&9[&3Mod&9] &bLancement de l'inventaire dans 1 secondes !" to player
               wait 1 seconds
               send "&9[&3Mod&9] &bInventaire Modérateur Activé" to player
               set {inv.kitmod.%player%} to player's serialized inventory
               set slot 0 of player to sugar named "&cVanish &7[&cOff&7]"
               set slot 1 of player to eye of ender named "&7Téléportation aléatoire"
               set slot 2 of player to bone named "&4Kill"
               set slot 4 of player to ice named "&2Freeze"
               set slot 5 of player to chest named "&dInformations"
               set slot 6 of player to gold ingot named "&5Verif"
               set slot 7 of player to book named "&eFouille D'inventaire"
               set slot 8 of player to wooden sword of knockback 50 named "&9Epée de KnockBack"
           if arg 1 is "off":
               execute player command "/v off"
               delete {mod.inv.%player%}
               execute player command "/clear"
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to player
               send "" to playerr
               send "&9[&3Mod&9] &bInventaire modérateur desactivé" to player
               give {inventaire.%player%} to player
               set player's inventory's serialized contents to {exemple.%player%::inventaire} # Remets l'inventaire du joueur
               set helmet of player to {exemple.%player%::casque} #Remets le casque du joueur
               set chestplate of player to {exemple.%player%::plastron} #Remets le plastron du joueur
               set leggings of player to {exemple.%player%::pantalon} #Remets les jambières du joueur
               set boots of player to {exemple.%player%::bottes} #Remets les bottes du joueur

on right click on a player:
   if player's tool is a book:
       if name of player's tool is "&eFouille D'inventaire":
           show the targeted entity's inventory to the player
   if player's tool is a gold ingot:
       if name of player's tool is "&5Verif":
           if targeted entity is a player:
               make player execute command "/verif %targeted entity%"
   if player tool is chest:
       if name of player's tool is "&dInformations":
           if targeted entity is a player:
               open chest with 1 rows named "&5&m---&d &dInformation &7&l> &d%targeted entity% &5&m---" to player
               wait 1 tick
               format slot 0 of player with emerald ore named "&aEmeraude" with lore "||&aEmeraudes cassé : %{emeraldore.%targeted entity%}%"
               format slot 1 of player with diamond ore named "&bDiamant" with lore "||&bDiamants cassé : %{emeraldore.%targeted entity%}%"
               format slot 2 of player with gold ore named "&6Or" with lore "||&6Or cassé : %{emeraldore.%targeted entity%}%"
               format slot 3 of player with iron ore named "&7Fer" with lore "||&7Fers cassé : %{emeraldore.%targeted entity%}%"
               format slot 4 of player with coal ore named "&8Charbon" with lore "||&8Charbons cassé : %{emeraldore.%targeted entity%}%"
               format slot 5 of player with redstone ore named "&4Redstone" with lore "||&4Redstones cassé : %{emeraldore.%targeted entity%}%"
               format slot 6 of player with lapis lazuli ore named "&9Lapis Lazuli" with lore "||&aLapis Lazuli cassé : %{emeraldore.%targeted entity%}%"
               format slot 8 of player with nether quartz ore named "&cNether Quartz" with lore "||&cNether Quartz cassé : %{emeraldore.%targeted entity%}%"

on place:
   if player's tool is chest:
       if name of player's tool is "&dInformations":
           cancel event

on right click with bone:
   if name of player's tool is "&4Kill":
       make player execute command "/kill %targeted entity%"       

on right click with eye of ender:
   if name of player's tool is "&7Téléportation aléatoire":
       cancel event
       make player execute command "/tp %random player out of all players%"

on right click with sugar:
   if name of player's tool is "&cVanish &7[&cOff&7]":
       set slot 0 of player to sugar named "&aVanish &7[&aOn&7]"
       reveal player from all players
   if name of player's tool is "&aVanish &7[&aOn&7]":
       wait 1 tick
       set slot 1 of player to sugar named "&cVanish &7[&cOff&7]"
       hide player from all players





on break a diamond ore:
   add 1 to {diamondore.%player%}

on break a emerald ore:
   add 1 to {emeraldore.%player%}

on break a coal ore:
   add 1 to {coalore.%player%}

on break a gold ore:
   add 1 to {goldore.%player%}

on break a iron ore:
   add 1 to {ironore.%player%}

on break a lapis lazuli ore:
   add 1 to {lapisore.%player%}

on break a redstone ore:
   add 1 to {redstoneore.%player%}

on break a nether quartz ore:
   add 1 to {netherore.%player%}




on damage:
   if attacker is a player:
       if victim is a player:
           if {mod.inv.%victim%} is true:
               cancel event
               send "&9[&3Mod&9] &b%attacker% a essayé de t'attaquer. Fait attention !"
           if {mod.inv.%victim%} is false:
               stop
               send "&9[&3Mod&9] &bVous avez attaquez %victim%."


on death:
   set {mod.inv.%player%} to false

on quit:
   set {mod.inv.%player%} to false   

on place:
   if {mod.inv.%player%} is true:
       cancel event
   else:
       stop       

on break:
   if {mod.inv.%player%} is true:
       cancel event
   else:
       stop

on pickup:
   if {mod.inv.%player%} is true:
       cancel event
   else:
       stop

On Hunger Meter Change:
   if {mod.inv.%player%} is true:
       cancel event
   else:
       stop

on drop:
   if {mod.inv.%player%} is true:
       cancel event
   else:
       stop

command /freeze [<player>]:
   trigger:
       if player has permission "freeze.*":
           if arg 1 is set:
               if {freeze.player.%arg 1%} is true:
                   set {player.freeze.ban.%arg 1%} to player
                   set {freeze.player.%arg 1%} to false
                   send "&2[Freeze] &aVous avez bien unfreeze %arg 1%" to player
                   send "&2[Freeze] &aVous avez été unfreeze par %player%" to arg 1
               else if {freeze.player.%arg 1%} is false:
                   set {freeze.player.%arg 1%} to true
                   send "&4[Freeze] &cVous avez bien freeze %arg 1%" to player
                   send "&4[Freeze] &cVous avez été freeze par %player%" to arg 1
           if arg 1 is not set:
               send "&4[Freeze] /freeze (joueur)"
       else:
           send "&4Erreur ! : &cTu n'as pas la permission d'effectuer cette commande !"


on command:
   if {freeze.player.%player%} is true:
       if command is "/m" or "/t" or "/w" or "/r" or "/ts":
           stop
       else:
           stop
   else:
       stop

on any move:
   set {freeze.anymove.time.%player%} to now
   if difference to {freeze.anymove.time.%player%} and now is less than 2 seconds:
       cancel event
       send "&4[Freeze] &cVous êtes actuelement freeze, vous ne pouvez donc pas bouger !"
       send "           &cSi vous vous déconnecté, vous serez &4&lbanni&c."

on break:
   if {freeze.player.%player%} is true:
       send "&4[Freeze] &cVous êtes freeze, vous ne pouvez donc pas casser des blocks"
       cancel event

on place:
   if {freeze.player.%player%} is true:
       send "&4[Freeze] &cVous êtes freeze, vous ne pouvez donc pas placer des blocks"
       cancel event

on rightclick:
   if {freeze.player.%player%} is true:
       send "&4[Freeze] &cVous êtes freeze, vous ne pouvez donc pas faire de click droit"
       cancel event

on leftclick:
   if {freeze.player.%player%} is true:
       send "&4[Freeze] &cVous êtes freeze, vous ne pouvez donc pas faire de click gauche"
       cancel event   

on damage:
   if {freeze.player.%victim%} is true:
       send "&4[Freeze] &cCe joueur est freeze, veuillez ne pas le taper !"
       cancel event
   if {freeze.player.%attacker%} is true:
       send "&4[Freeze] &cVous êtes freeze, vous ne pouvez donc pas taper"
       cancel event       


on quit:
   set {quit.%player%} to player
   loop all players:
       if {freeze.player.%loop-player%} is true:
           set {freeze.loopplayer.%loop-player%} to true
   wait 1 seconds
   if {freeze.loopplayer.%player%} is true:
       loop all players:
           if name of loop-player is "%{player.freeze.ban.%player%}%":
               make loop-player execute command "/ban %{quit.%loop-player%}%"








 

 

Si il t'a plus dis moi, si il y a des bug dis moi aussi !

  • J'aime 2
Posté(e)
Bonjour avant de partir, je tiens a préciser que je sais qu'il existe plein de skript mais il n'y a pas ce que je recherche.

 

J'aimerais un skript modération inventaire inédit.

 

Ca marchera comment ?

 

Très simple via le /mod

 

Les items

 

Slot 1 : Blaze Rod : Pour le vanish

Slot 2 : Barreau de fer : Freeze

Slot 3 : Coffre : Voir l'inventaire

Slot 4 : Livre : voir les cps via le plugin autoclicker verif

Slot 5 : Epee recul 3 : Verif le kb

Slot 6 : Boussole

Slot 9 : Random tp

 

Possible que quelqu'un me fasse ca ?

 

Je sais que j'en demande bcp mais ca serait sympa de me le faire

Salut,

 

Dans ton message, tu as dit "Slot 6 : Boussole", pourrais-tu donner plus d'infos car je n'ai pas compris pour le slot 6.

Posté(e)
Ben c juste avoir une boussole pour passer les murs en faisant click droit ou click gauche quoi rien de plus c juste pour l'avoir pas mettre de commande etc

Ta config a des erreurs

Quels erreurs ?? Tu ne me donne pas envie de t'aider !

Posté(e)

J'ai fini ton script !

 

Pour utiliser la commande /Mod, il faudra la permission "Mod.Use".

 

[spoiler=Code]

Options:

   Prefix : &8[&aMod&8]
   Permission: Mod.Use

command /mod:
   permission: {@Permission}
   permission message: &cErreur : Vous n'avez pas la permission !
   trigger:
       if {mod.%player%} is true:
           set {mod.%player%} to false
           teleport player to {last.location.%player%}
           set player's inventory's serialized contents to {last.inventory.%player%}
           set {vanish.%player%} to false
           wait 1 tick
           remove invisibility from player
           disallow fly for player
           wait 1 tick
           send "{@Prefix} &aVous avez quitté le mode &6Modérateur &a!"
       else:
           set {mod.%player%} to true
           set {last.location.%player%} to player's location
           set {last.inventory.%player%} to serialized contents of player's inventory
           set {vanish.%player%} to true
           wait 1 tick
           apply invisibility 250 to player for 999 days
           allow fly for player
           set player's gamemode to survival
           wait 1 tick
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]"
           set slot 1 of player to 1 101 named "&bFreeze"
           set slot 2 of player to 1 chest named "&6Inventaire"
           set slot 3 of player to 1 book named "&5CPS"
           set slot 4 of player to 1 wooden sword named "&cKB Test"
           enchant the slot 4 of player with knockback 3
           set slot 5 of player to 1 compass
           set slot 7 of player to 1 stick named "&2Random TP"
           set slot 8 of player to 1 arrow named "&dQuitter"
           wait 1 tick
           send "{@Prefix} &aVous avez activé le mode &6Modérateur &a!"

on rightclick with blaze rod:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&aVanish &7[&aON&7]":
           set {vanish.%player%} to false
           remove invisibility from player
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&cOFF&7]"
           wait 1 tick
           send "{@Prefix} &dVanish &cOFF &d!"
       else if name of player's tool is "&aVanish &7[&cOFF&7]":
           set {vanish.%player%} to true
           apply invisibility 250 to player for 999 days
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]"
           wait 1 tick
           send "{@Prefix} &dVanish &aON &d!"

on rightclick with 101:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&bFreeze":
           if targeted entity is player:
               if {freeze.%targeted entity%} is true:
                   set {freeze.%targeted entity%} to false
                   wait 1 tick
                   remove jump boost from targeted entity
                   remove slowness from targeted entity
                   remove blindness from targeted entity
                   wait 1 tick
                   send "{@Prefix} &aLe joueur &b%targeted entity% &an'est plus Freeze !"
               else:
                   set {freeze.%targeted entity%} to true
                   wait 1 tick
                   apply jump boost 250 to targeted entity for 999 days
                   apply slowness 250 to targeted entity for 999 days
                   apply blindness 250 to targeted entity for 999 days       
                   wait 1 tick
                   send "{@Prefix} &aLe joueur &b%targeted entity% &aa été Freeze !"
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with chest:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&6Inventaire":
           if targeted entity is a player:
               open the targeted entity's inventory for the player
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with book:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&5CPS":
           if targeted entity is a player:
               make player execute command "/verif %targeted entity%"
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with stick:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&2Random TP":
           loop all players:
               if name of loop-player is not "%player%":
                   add loop-player to {_players::*}
           wait 1 tick
           if size of {_players::*} <= 1:
               send "{@Prefix} &cErreur : Vous êtes seul sur le serveur !"
           else:
               set {_random} to a random element out of {_players::*}
               wait 1 tick
               teleport player to {_random}'s location
               send "{@Prefix} &aVous avez bien été TP !"

on rightclick with arrow:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       make player execute command "/mod"

on damage:
   if {mod.%victim%} is true:
       cancel event

on drop:
   if {mod.%player%} is true:
       cancel event

on place:
   if {freeze.%player%} is true:
       cancel event

on break:
   if {freeze.%player%} is true:
       cancel event

on command:
   if {freeze.%player%} is true:
       if player does not have permission "{@Permission}":
           cancel event

on damage:
   if {freeze.%victim%} is true:
       cancel event

on drop:
   if {freeze.%player%} is true:
       cancel event

 

 

Posté(e)
J'ai fini ton script !

 

Pour utiliser la commande /Mod, il faudra la permission "Mod.Use".

 

[spoiler=Code]

Options:

   Prefix : &8[&aMod&8]
   Permission: Mod.Use

command /mod:
   permission: {@Permission}
   permission message: &cErreur : Vous n'avez pas la permission !
   trigger:
       if {mod.%player%} is true:
           set {mod.%player%} to false
           teleport player to {last.location.%player%}
           set player's inventory's serialized contents to {last.inventory.%player%}
           set {vanish.%player%} to false
           wait 1 tick
           remove invisibility from player
           disallow fly for player
           wait 1 tick
           send "{@Prefix} &aVous avez quitté le mode &6Modérateur &a!"
       else:
           set {mod.%player%} to true
           set {last.location.%player%} to player's location
           set {last.inventory.%player%} to serialized contents of player's inventory
           set {vanish.%player%} to true
           wait 1 tick
           apply invisibility 250 to player for 999 days
           allow fly for player
           set player's gamemode to survival
           wait 1 tick
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]"
           set slot 1 of player to 1 101 named "&bFreeze"
           set slot 2 of player to 1 chest named "&6Inventaire"
           set slot 3 of player to 1 book named "&5CPS"
           set slot 4 of player to 1 wooden sword named "&cKB Test"
           enchant the slot 4 of player with knockback 3
           set slot 5 of player to 1 compass
           set slot 7 of player to 1 stick named "&2Random TP"
           set slot 8 of player to 1 arrow named "&dQuitter"
           wait 1 tick
           send "{@Prefix} &aVous avez activé le mode &6Modérateur &a!"

on rightclick with blaze rod:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&aVanish &7[&aON&7]":
           set {vanish.%player%} to false
           remove invisibility from player
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&cOFF&7]"
           wait 1 tick
           send "{@Prefix} &dVanish &cOFF &d!"
       else if name of player's tool is "&aVanish &7[&cOFF&7]":
           set {vanish.%player%} to true
           apply invisibility 250 to player for 999 days
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]"
           wait 1 tick
           send "{@Prefix} &dVanish &aON &d!"

on rightclick with 101:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&bFreeze":
           if targeted entity is player:
               if {freeze.%targeted entity%} is true:
                   set {freeze.%targeted entity%} to false
                   wait 1 tick
                   remove jump boost from targeted entity
                   remove slowness from targeted entity
                   remove blindness from targeted entity
                   wait 1 tick
                   send "{@Prefix} &aLe joueur &b%targeted entity% &an'est plus Freeze !"
               else:
                   set {freeze.%targeted entity%} to true
                   wait 1 tick
                   apply jump boost 250 to targeted entity for 999 days
                   apply slowness 250 to targeted entity for 999 days
                   apply blindness 250 to targeted entity for 999 days      
                   wait 1 tick
                   send "{@Prefix} &aLe joueur &b%targeted entity% &aa été Freeze !"
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with chest:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&6Inventaire":
           if targeted entity is a player:
               open the targeted entity's inventory for the player
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with book:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&5CPS":
           if targeted entity is a player:
               make player execute command "/verif %targeted entity%"
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with stick:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&2Random TP":
           loop all players:
               if name of loop-player is not "%player%":
                   add loop-player to {_players::*}
           wait 1 tick
           if size of {_players::*} <= 1:
               send "{@Prefix} &cErreur : Vous êtes seul sur le serveur !"
           else:
               set {_random} to a random element out of {_players::*}
               wait 1 tick
               teleport player to {_random}'s location
               send "{@Prefix} &aVous avez bien été TP !"

on rightclick with arrow:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       make player execute command "/mod"

on damage:
   if {mod.%victim%} is true:
       cancel event

on drop:
   if {mod.%player%} is true:
       cancel event

on place:
   if {freeze.%player%} is true:
       cancel event

on break:
   if {freeze.%player%} is true:
       cancel event

on command:
   if {freeze.%player%} is true:
       if player does not have permission "{@Permission}":
           cancel event

on damage:
   if {freeze.%victim%} is true:
       cancel event

on drop:
   if {freeze.%player%} is true:
       cancel event

 

 

Je ne recois pas les items

Posté(e)

Normal, la variable {mod.%player%} n'as jamais été définie.

 

Tiens, j'ai corrige l'truc ( pas très difficile )

 

Options:

   Prefix : &8[&aMod&8]
   Permission: Mod.Use

command /mod:
   permission: {@Permission}
   permission message: &cErreur : Vous n'avez pas la permission !
   trigger:
       if {mod.%player%} isn't set:
               set {mod.%player%} to false
               wait 2 tick
       if {mod.%player%} is true:
           set {mod.%player%} to false
           teleport player to {last.location.%player%}
           set player's inventory's serialized contents to {last.inventory.%player%}
           set {vanish.%player%} to false
           wait 1 tick
           remove invisibility from player
           disallow fly for player
           wait 1 tick
           send "{@Prefix} &aVous avez quitté le mode &6Modérateur &a!"
       else:
           set {mod.%player%} to true
           set {last.location.%player%} to player's location
           set {last.inventory.%player%} to serialized contents of player's inventory
           set {vanish.%player%} to true
           wait 1 tick
           apply invisibility 250 to player for 999 days
           allow fly for player
           set player's gamemode to survival
           wait 1 tick
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]"
           set slot 1 of player to 1 101 named "&bFreeze"
           set slot 2 of player to 1 chest named "&6Inventaire"
           set slot 3 of player to 1 book named "&5CPS"
           set slot 4 of player to 1 wooden sword named "&cKB Test"
           enchant the slot 4 of player with knockback 3
           set slot 5 of player to 1 compass
           set slot 7 of player to 1 stick named "&2Random TP"
           set slot 8 of player to 1 arrow named "&dQuitter"
           wait 1 tick
           send "{@Prefix} &aVous avez activé le mode &6Modérateur &a!"

on rightclick with blaze rod:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&aVanish &7[&aON&7]":
           set {vanish.%player%} to false
           remove invisibility from player
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&cOFF&7]"
           wait 1 tick
           send "{@Prefix} &dVanish &cOFF &d!"
       else if name of player's tool is "&aVanish &7[&cOFF&7]":
           set {vanish.%player%} to true
           apply invisibility 250 to player for 999 days
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]"
           wait 1 tick
           send "{@Prefix} &dVanish &aON &d!"

on rightclick with 101:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&bFreeze":
           if targeted entity is player:
               if {freeze.%targeted entity%} is true:
                   set {freeze.%targeted entity%} to false
                   wait 1 tick
                   remove jump boost from targeted entity
                   remove slowness from targeted entity
                   remove blindness from targeted entity
                   wait 1 tick
                   send "{@Prefix} &aLe joueur &b%targeted entity% &an'est plus Freeze !"
               else:
                   set {freeze.%targeted entity%} to true
                   wait 1 tick
                   apply jump boost 250 to targeted entity for 999 days
                   apply slowness 250 to targeted entity for 999 days
                   apply blindness 250 to targeted entity for 999 days      
                   wait 1 tick
                   send "{@Prefix} &aLe joueur &b%targeted entity% &aa été Freeze !"
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with chest:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&6Inventaire":
           if targeted entity is a player:
               open the targeted entity's inventory for the player
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with book:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&5CPS":
           if targeted entity is a player:
               make player execute command "/verif %targeted entity%"
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with stick:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&2Random TP":
           loop all players:
               if name of loop-player is not "%player%":
                   add loop-player to {_players::*}
           wait 1 tick
           if size of {_players::*} <= 1:
               send "{@Prefix} &cErreur : Vous êtes seul sur le serveur !"
           else:
               set {_random} to a random element out of {_players::*}
               wait 1 tick
               teleport player to {_random}'s location
               send "{@Prefix} &aVous avez bien été TP !"

on rightclick with arrow:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       make player execute command "/mod"

on damage:
   if {mod.%victim%} is true:
       cancel event

on drop:
   if {mod.%player%} is true:
       cancel event

on place:
   if {freeze.%player%} is true:
       cancel event

on break:
   if {freeze.%player%} is true:
       cancel event

on command:
   if {freeze.%player%} is true:
       if player does not have permission "{@Permission}":
           cancel event

on damage:
   if {freeze.%victim%} is true:
       cancel event

on drop:
   if {freeze.%player%} is true:
       cancel event

 

Attention: Il peut y avoir des problèmes de tabulations

Posté(e)
Normal, la variable {mod.%player%} n'as jamais été définie.

 

Tiens, j'ai corrige l'truc ( pas très difficile )

 

Options:

   Prefix : &8[&aMod&8]
   Permission: Mod.Use

command /mod:
   permission: {@Permission}
   permission message: &cErreur : Vous n'avez pas la permission !
   trigger:
       if {mod.%player%} isn't set:
               set {mod.%player%} to false
               wait 2 tick
       if {mod.%player%} is true:
           set {mod.%player%} to false
           teleport player to {last.location.%player%}
           set player's inventory's serialized contents to {last.inventory.%player%}
           set {vanish.%player%} to false
           wait 1 tick
           remove invisibility from player
           disallow fly for player
           wait 1 tick
           send "{@Prefix} &aVous avez quitté le mode &6Modérateur &a!"
       else:
           set {mod.%player%} to true
           set {last.location.%player%} to player's location
           set {last.inventory.%player%} to serialized contents of player's inventory
           set {vanish.%player%} to true
           wait 1 tick
           apply invisibility 250 to player for 999 days
           allow fly for player
           set player's gamemode to survival
           wait 1 tick
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]"
           set slot 1 of player to 1 101 named "&bFreeze"
           set slot 2 of player to 1 chest named "&6Inventaire"
           set slot 3 of player to 1 book named "&5CPS"
           set slot 4 of player to 1 wooden sword named "&cKB Test"
           enchant the slot 4 of player with knockback 3
           set slot 5 of player to 1 compass
           set slot 7 of player to 1 stick named "&2Random TP"
           set slot 8 of player to 1 arrow named "&dQuitter"
           wait 1 tick
           send "{@Prefix} &aVous avez activé le mode &6Modérateur &a!"

on rightclick with blaze rod:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&aVanish &7[&aON&7]":
           set {vanish.%player%} to false
           remove invisibility from player
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&cOFF&7]"
           wait 1 tick
           send "{@Prefix} &dVanish &cOFF &d!"
       else if name of player's tool is "&aVanish &7[&cOFF&7]":
           set {vanish.%player%} to true
           apply invisibility 250 to player for 999 days
           set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]"
           wait 1 tick
           send "{@Prefix} &dVanish &aON &d!"

on rightclick with 101:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&bFreeze":
           if targeted entity is player:
               if {freeze.%targeted entity%} is true:
                   set {freeze.%targeted entity%} to false
                   wait 1 tick
                   remove jump boost from targeted entity
                   remove slowness from targeted entity
                   remove blindness from targeted entity
                   wait 1 tick
                   send "{@Prefix} &aLe joueur &b%targeted entity% &an'est plus Freeze !"
               else:
                   set {freeze.%targeted entity%} to true
                   wait 1 tick
                   apply jump boost 250 to targeted entity for 999 days
                   apply slowness 250 to targeted entity for 999 days
                   apply blindness 250 to targeted entity for 999 days    
                   wait 1 tick
                   send "{@Prefix} &aLe joueur &b%targeted entity% &aa été Freeze !"
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with chest:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&6Inventaire":
           if targeted entity is a player:
               open the targeted entity's inventory for the player
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with book:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&5CPS":
           if targeted entity is a player:
               make player execute command "/verif %targeted entity%"
           else:
               send "{@Prefix} &cErreur : Vous devez viser un joueur !"

on rightclick with stick:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       if name of player's tool is "&2Random TP":
           loop all players:
               if name of loop-player is not "%player%":
                   add loop-player to {_players::*}
           wait 1 tick
           if size of {_players::*} <= 1:
               send "{@Prefix} &cErreur : Vous êtes seul sur le serveur !"
           else:
               set {_random} to a random element out of {_players::*}
               wait 1 tick
               teleport player to {_random}'s location
               send "{@Prefix} &aVous avez bien été TP !"

on rightclick with arrow:
   if {mod.%player%} is true:
       cancel event
       wait 1 tick
       make player execute command "/mod"

on damage:
   if {mod.%victim%} is true:
       cancel event

on drop:
   if {mod.%player%} is true:
       cancel event

on place:
   if {freeze.%player%} is true:
       cancel event

on break:
   if {freeze.%player%} is true:
       cancel event

on command:
   if {freeze.%player%} is true:
       if player does not have permission "{@Permission}":
           cancel event

on damage:
   if {freeze.%victim%} is true:
       cancel event

on drop:
   if {freeze.%player%} is true:
       cancel event

 

Attention: Il peut y avoir des problèmes de tabulations

 

Il n'y a absolument pas besoin la définir. Je vais t'expliquer, chauffe bien ton cerveau (pour les problèmes de tabulations, c'est juste le forum qui ne supporte pas, c'est pas ma faute :confused:).

 

Alors d'abord, dans la command /mod, à la ligne où on dit "if {mod.%player%} is true:". On vérifie si la condition est sur True. Mais plus bas, se trouve un "Else". Grâce à ce "Else", ça va définir la variable automatiquement, car cela peut exécuter n'importe quelles actions.

 

Si j'aurais pas exemple mis "else if {mod.%player%} is false:" ça n'aurait pas marché.

 

Donc grâce au "else", cela va automatiquement définir la variable directement, et celle-ci pourra être ré-utilisée dans toutes les prochaines utilisations. J'espère ne pas avoir été trop complexe x) !

 

Je sais très bien ce que je dis, le script a été testé et est 100 % fonctionnel :p

 

EDIT : Je suis en train de mettre une vidéo en ligne, pour vous prouver qu'il est fonctionnel. Vous êtes vraiment casse-pieds x) !

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