Aller au contenu

Skript | Mode Modérateur


Messages recommandés

Posté(e)

Sujet » Mode Modérateur

Version de minecraft / skript » 1.7.10

 

Description :

 

Bonjour/Bonsoir, les skripteurs,

 

J'aimerais avoir un skript pour faire un Mode Modérateur.

C'est à dire qu'en faisant la commande /mm, cela mettrai directement le modérateur en vanish et dans sa barre d'outils, il y aurai l'objet " Houe en Pierre " qui permettrai de pouvoir se vanish et se dévanish, il y aurai aussi un outil (n'importe) qui afficherai les membres du staff connectés. (Avoir la permission pour être affiché dans la liste des staff /mm)

 

Commandes :

  • /mm | mm.mod | Pour pouvoir se mettre en vanish etc...
  • /stafflist | stafflist.mod | Pour pouvoir afficher les membres du staff connectés (Avoir la perm. " stafflist.mod " pour être affiché.

 

 

Cordialement,

WaiZeer

  • 2 semaines après...
Posté(e)
command /mod:
permission: mm.mod
trigger:
if {staff.mode.%player%} isn't set:
wait 2 ticks
set {staff.mode.%player%} to true
send "&c(&4!&c) &3Tu est maintenant en staff mode !"
set {staffinv.%player%} to player's serialized inventory
set {staff.%player%::casque} to helmet of player
set {staff.%player%::plastron} to chestplate of player
set {staff.%player%::pantalon} to leggings of player
set {staff.%player%::bottes} to boots of player 
wait 2 ticks
clear player's inventory
make player execute command "/vanish" 
make player execute command "/fly on"
set slot 0 of player to music disc named "&cTP Random Player"
set slot 1 of player to 160:11 named "&aModeration"
set slot 2 of player to wooden sword of knockback 10 named "&6Test-AntiKB"
set slot 3 of player to stick of Unbreaking 2 named "&cKick"
set slot 4 of player to packed ice named "&bFreeze"
set slot 5 of player to book named "&aInventaire"
set slot 6 of player to 351:10 named "&6Vanish &f[&aON&f]"
set slot 7 of player to 160:11 named "&aModeration"
set slot 8 of player to 76 named "&cQuitter"
else if {staff.mode.%player%} is true:
wait 2 ticks
clear player's inventory
restore inventory of player from {staffinv.%player%}
set helmet of player to {staff.%player%::casque}
set chestplate of player to {staff.%player%::plastron}
set leggings of player to {staff.%player%::pantalon}
set boots of player to {staff.%player%::bottes}
delete {staff.mode.%player%}
wait 2 ticks
make player execute command "/vanish"
send "&c(&4!&c) &3Tu as quitter le staff mode !" to player

on drop:
if {staff.mode.%player%} is true:
send "&8[&6Server&8] &eTu ne peus pas drop d'items &7!"
cancel event
on break:
if {staff.mode.%player%} is true:
send "&8[&6Server&8] &eTu ne peus pas casser de block &7!" 
cancel event
on place:
if {staff.mode.%player%} is true:
send "&8[&6Server&8] &eTu ne peus pas poser de block &7!" 
cancel event
on pickup:
if {staff.mode.%player%} is true:
cancel event
On hunger meter change:
if {staff.mode.%player%} is true:
cancel event

on rightclick with dye:
if name of player's tool is "&6Vanish &f[&aON&f]":
make player execute command "/vanish off"
send "&c(&4!&c) &bTu n'est plus vanish !"
set slot 6 of player to 351:8 named "&6Vanish &f[&cOff&f]"
stop
if name of player's tool is "&6Vanish &f[&cOff&f]":
send "&c(&4!&c) &bTu est maintenant en vanish !" 
make player execute command "/vanish on"
set slot 6 of player to 351:10 named "&6Vanish &f[&aON&f]"

on rightclick with stick:
if name of player's tool is "&cKick":
if targeted entity is a player:
make player execute command "/kick %targeted entity% Vous êtes suspecter des cheat."
else:
send "&cVise un joueur !" to player
stop
on rightclick with book:
if name of player's tool is "&aInventaire":
if targeted entity is a player:
make player execute command "/invsee %targeted entity%"
else:
send "&cVise un joueur !" to player
stop
on rightclick with redstone torch:
if name of player's tool is "&cQuitter":
make player execute command "/mod"
stop
on rightclick with stick:
if name of player's tool is "&cKill":
if targeted entity is a player:
make player execute command "/kill %targeted entity%"
else:
send "&cVise un joueur !" to player
stop
on rightclick with blaze rod:
if name of player's tool is "&bFreeze":
if targeted entity is a player:
make player execute command "/freeze %targeted entity%"
else:
send "&cVise un joueur !" to player
stop
on rightclick with music disc:
if name of player's tool is "&cTP Random Player":
if world is not "MONDE":
send "&8[&6Server&8] &eVous ne vous situé pas au bon monde"
else:
loop all players:
add loop-player to {joueur.tp::*}
set {player.tp.%player%} to a random element out of {joueur.tp::*}
teleport player to {player.tp.%player%}
delete {joueur.tp::*}
send "&8[&6Server&8] &eTu as été téléporté en direction de &7: &a%{player.tp.%player%}%"

Posté(e)

J'ai un skript tout fais pour sa tiens c'est gratuit mais attention j'utilise un plugin de freeze et un plugin de ban et essentials avec

#----------[Modérateur]----------#

command /mod:
   aliases: Mod, modérateur, Modérateur
   trigger:
       if player has permission "moderateur.mod":
           if {moderateur.mod.%player%} is false:
               set {moderateur.mod.%player%} to true
               set {inventory.%player%} to player's serialized inventory
               clear player's inventory
               clear effects of player
               set player's hunger bar to 10
               set the player's fly mode to true
               set {inv} to true
               set slot 0 of player to 1 arrow named "&3Téléportation aléatoire"
               set slot 1 of player to 1 351:10 named "&aVanish"
               set slot 2 of player to 1 blaze rod named "&bFreeze"
               set slot 4 of player to 1 gold sword of knockback 5, Unbreaking 10 named "&5Knockback 5"
               set slot 6 of player to 1 Clock named "&2Cps"
               set slot 7 of player to 1 Chest named "&eInformations"
               set slot 8 of player to 1 redstone block named "&4Sanctionner"
               message "&6&l[Mod]&f Vous êtes maintenant en mode &bModérateur"
           else:
               set {moderateur.mod.%player%} to false
               restore inventory of player from {inventory.%player%}
               set {inv} to false
               wait 3 ticks
               clear effects of player
               set player's hunger bar to 10
               set the player's fly mode to false
               make console execute command "gm 0 %player%"
               message "&6&l[Mod]&f Vous n'êtes plus en mode &bModérateur"
               if {vanish.%player%} is set:
                   make player execute command "vanish"
               else:
                   stop

on inventory click:
   if {inv} is true:
       cancel event
   else:
       stop
on join:
   set {inv} to false
   if player has permissions "moderateur.mod":
       if {moderateur.mod.%player%} = true:
           restore inventory of player from {inventory.%player%}
           set {moderateur.mod.%player%} to false

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

#----------[Vanish]----------#

on rightclick:
   if name of tool of player is "&aVanish":
       if player has permissions "vanish.mod":
           make player execute command "vanish"

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

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

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


command /vanish [<offline player>]:
   aliases: v, Vanish
   trigger:
       if arg 1 is not set:
           if {vanish.%player%} is not set:
               hide the player from all players
               send "&6&l[Vanish]&f Vous êtes désormais &ainvisible par les joueurs" to player
               broadcast "&7[&c-&7] %player%"
               set {vanish.%player%} to true
           else:
               reveal the player from all players
               send "&6&l[Vanish]&f Vous êtes désormais &cvisible&f par les joueurs" to player
               broadcast "&7[&a+&7] %player%"
               delete {vanish.%player%}
       if arg 1 is set:
           if {vanish.%arg 1%} is not set:
               hide the arg 1 from all players
               send "&6&l[Vanish] &b%arg 1% &fest désormais &ainvisible&f pour les joueurs" to player
               send "&6&l[Vanish] &fVous êtes désormais &ainvisible&f par les joueurs" to arg 1
               broadcast "&7[&c-&7] %arg 1%"
               set {vanish.%arg 1%} to true
           else:
               reveal the arg 1 from all players
               send "&6&l[Vanish]&f &b%arg 1% &fest désormais &cvisible&f pour les joueurs" to player
               send "&6&l[Vanish]&f Vous êtes désormais &cvisible&f par les joueurs" to arg 1
               broadcast "&7[&a+&7] %arg 1%"
               delete {vanish.%arg 1%}

on quit:
   if {vanish.%player%} is set:
       delete {vanish.%player%}

#----------[Freeze]----------#

on rightclick on a player:
   if name of tool of player is "&bFreeze":
       if tool of player is blaze rod:
           if player has permissions "freeze.rod":
               if {freeze.%targeted entity%} is false:
                   make player execute command "freeze %targeted entity%"
                   set {freeze.%targeted entity%} to true
               else:
                   make player execute command "freeze %targeted entity%"
                   set {freeze.%targeted entity%} to false

#-----------[informations]----------#

on rightclick on a player:
   if name of tool of player is "&eInformations":
       if tool of player is chest:
           if player has permissions "infos.chs":
               make player execute command "pss_§akopsxn %targeted player%"

command /pss_§akopsxn [<offline player>]:
   trigger: 
       if arg 1 has permissions "Slawnien":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bSlawnien" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Paysan":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &f! ||&a&l> &bPaysan" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Apprenti":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bApprenti" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Maitre":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bMaitre" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Roi":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bRoi" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Empereur":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bEmpereur" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

command /pss_§oawjec [<offline player>]:
   trigger:
       wait 3 ticks
       make player execute command "invsee %arg 1%"

on rightclick on a player:
   if name of tool of player is "&4Sanctionner":
       if tool of player is redstone block:
           if player has permissions "sanctionner.blo":
               make player execute command "sanction %targeted entity%"
on rightclick on a player:
   if name of tool of player is "&2Cps":
       if tool of player is Clock:
           if player has permissions "Cps.clock":
               clear {cps.results.%clicked entity%}
               set {cps.check.%clicked entity%} to true
               send "&6&l[CPS]&f Lancement du processus en cours.." to player
               wait 10 seconds
               if {cps.results.%clicked entity%} is not set:
                   set {cps.results.%clicked entity%} to 0
               send "&6&l[CPS]&b %clicked entity%&f a fait %{cps.results.%clicked entity%}% Cps !" to player
               set {cps.check.%clicked entity%} to false


on leftclick:
   if {cps.check.%player%} is true:
       add 1 to {cps.results.%player%}
command /pss_§!eijwqiu:
   trigger:
       set {tprdm.loc.%player%} to location of player
       teleport player to (random player out of all players)
       if random player out of all players is player:
           if {number.player} is less than 2:
               send "&6&l[Téléportation]&c Désolé,&f tu es seul sur le serveur" to player
               stop
           else:
               send "&6&l[Téléportation]&c Désolé,&f Le hasard vous a choisi" to player
               stop
       else if random player out of all players is not player:
           loop all players in radius 3 around player:
               set {_lol} to "%loop-player%"
               send "&6&l[Téléportation]&f Vous avez été téléporté à &b%loop-player%&f !" to player
on rightclick:
   if name of tool of player is "&3Téléportation aléatoire":
       if player has permissions "tprdm":
           make player execute command "pss_§!eijwqiu"

on join:
   add 1 to {number.player}

on quit:
   remove 1 from {number.player}

Posté(e)
J'ai un skript tout fais pour sa tiens c'est gratuit mais attention j'utilise un plugin de freeze et un plugin de ban et essentials avec

#----------[Modérateur]----------#

command /mod:
   aliases: Mod, modérateur, Modérateur
   trigger:
       if player has permission "moderateur.mod":
           if {moderateur.mod.%player%} is false:
               set {moderateur.mod.%player%} to true
               set {inventory.%player%} to player's serialized inventory
               clear player's inventory
               clear effects of player
               set player's hunger bar to 10
               set the player's fly mode to true
               set {inv} to true
               set slot 0 of player to 1 arrow named "&3Téléportation aléatoire"
               set slot 1 of player to 1 351:10 named "&aVanish"
               set slot 2 of player to 1 blaze rod named "&bFreeze"
               set slot 4 of player to 1 gold sword of knockback 5, Unbreaking 10 named "&5Knockback 5"
               set slot 6 of player to 1 Clock named "&2Cps"
               set slot 7 of player to 1 Chest named "&eInformations"
               set slot 8 of player to 1 redstone block named "&4Sanctionner"
               message "&6&l[Mod]&f Vous êtes maintenant en mode &bModérateur"
           else:
               set {moderateur.mod.%player%} to false
               restore inventory of player from {inventory.%player%}
               set {inv} to false
               wait 3 ticks
               clear effects of player
               set player's hunger bar to 10
               set the player's fly mode to false
               make console execute command "gm 0 %player%"
               message "&6&l[Mod]&f Vous n'êtes plus en mode &bModérateur"
               if {vanish.%player%} is set:
                   make player execute command "vanish"
               else:
                   stop

on inventory click:
   if {inv} is true:
       cancel event
   else:
       stop
on join:
   set {inv} to false
   if player has permissions "moderateur.mod":
       if {moderateur.mod.%player%} = true:
           restore inventory of player from {inventory.%player%}
           set {moderateur.mod.%player%} to false

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

#----------[Vanish]----------#

on rightclick:
   if name of tool of player is "&aVanish":
       if player has permissions "vanish.mod":
           make player execute command "vanish"

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

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

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


command /vanish [<offline player>]:
   aliases: v, Vanish
   trigger:
       if arg 1 is not set:
           if {vanish.%player%} is not set:
               hide the player from all players
               send "&6&l[Vanish]&f Vous êtes désormais &ainvisible par les joueurs" to player
               broadcast "&7[&c-&7] %player%"
               set {vanish.%player%} to true
           else:
               reveal the player from all players
               send "&6&l[Vanish]&f Vous êtes désormais &cvisible&f par les joueurs" to player
               broadcast "&7[&a+&7] %player%"
               delete {vanish.%player%}
       if arg 1 is set:
           if {vanish.%arg 1%} is not set:
               hide the arg 1 from all players
               send "&6&l[Vanish] &b%arg 1% &fest désormais &ainvisible&f pour les joueurs" to player
               send "&6&l[Vanish] &fVous êtes désormais &ainvisible&f par les joueurs" to arg 1
               broadcast "&7[&c-&7] %arg 1%"
               set {vanish.%arg 1%} to true
           else:
               reveal the arg 1 from all players
               send "&6&l[Vanish]&f &b%arg 1% &fest désormais &cvisible&f pour les joueurs" to player
               send "&6&l[Vanish]&f Vous êtes désormais &cvisible&f par les joueurs" to arg 1
               broadcast "&7[&a+&7] %arg 1%"
               delete {vanish.%arg 1%}

on quit:
   if {vanish.%player%} is set:
       delete {vanish.%player%}

#----------[Freeze]----------#

on rightclick on a player:
   if name of tool of player is "&bFreeze":
       if tool of player is blaze rod:
           if player has permissions "freeze.rod":
               if {freeze.%targeted entity%} is false:
                   make player execute command "freeze %targeted entity%"
                   set {freeze.%targeted entity%} to true
               else:
                   make player execute command "freeze %targeted entity%"
                   set {freeze.%targeted entity%} to false

#-----------[informations]----------#

on rightclick on a player:
   if name of tool of player is "&eInformations":
       if tool of player is chest:
           if player has permissions "infos.chs":
               make player execute command "pss_§akopsxn %targeted player%"

command /pss_§akopsxn [<offline player>]:
   trigger:
       if arg 1 has permissions "Slawnien":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bSlawnien" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Paysan":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &f! ||&a&l> &bPaysan" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Apprenti":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bApprenti" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Maitre":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bMaitre" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Roi":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bRoi" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

       else if arg 1 has permissions "Empereur":
           wait 3 ticks
           open chest with 3 rows named "&eInformations" to player
           wait 3 ticks
           format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bEmpereur" to be unstealable
           format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
           format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
           format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]

command /pss_§oawjec [<offline player>]:
   trigger:
       wait 3 ticks
       make player execute command "invsee %arg 1%"

on rightclick on a player:
   if name of tool of player is "&4Sanctionner":
       if tool of player is redstone block:
           if player has permissions "sanctionner.blo":
               make player execute command "sanction %targeted entity%"
on rightclick on a player:
   if name of tool of player is "&2Cps":
       if tool of player is Clock:
           if player has permissions "Cps.clock":
               clear {cps.results.%clicked entity%}
               set {cps.check.%clicked entity%} to true
               send "&6&l[CPS]&f Lancement du processus en cours.." to player
               wait 10 seconds
               if {cps.results.%clicked entity%} is not set:
                   set {cps.results.%clicked entity%} to 0
               send "&6&l[CPS]&b %clicked entity%&f a fait %{cps.results.%clicked entity%}% Cps !" to player
               set {cps.check.%clicked entity%} to false


on leftclick:
   if {cps.check.%player%} is true:
       add 1 to {cps.results.%player%}
command /pss_§!eijwqiu:
   trigger:
       set {tprdm.loc.%player%} to location of player
       teleport player to (random player out of all players)
       if random player out of all players is player:
           if {number.player} is less than 2:
               send "&6&l[Téléportation]&c Désolé,&f tu es seul sur le serveur" to player
               stop
           else:
               send "&6&l[Téléportation]&c Désolé,&f Le hasard vous a choisi" to player
               stop
       else if random player out of all players is not player:
           loop all players in radius 3 around player:
               set {_lol} to "%loop-player%"
               send "&6&l[Téléportation]&f Vous avez été téléporté à &b%loop-player%&f !" to player
on rightclick:
   if name of tool of player is "&3Téléportation aléatoire":
       if player has permissions "tprdm":
           make player execute command "pss_§!eijwqiu"

on join:
   add 1 to {number.player}

on quit:
   remove 1 from {number.player}

 

 

(Les droits sur le skript me reviennent ..) En espérant t'avoir aider

Posté(e)

Alors là je t’en tire mon chapeau. Un nombre incalculable de skript comme tu le veux existe dans les ressources et tu demandes ca ? Fait l’effort de chercher un petit peu avant de demander !

Je ferme le sujet et je le déplace en résolu.

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.