Aller au contenu

[Mod/Staff] Skript de Freeze


Messages recommandés

Posté(e)

Version de minecraft / skript : 1.7.X > 1.8.X

Type du skript : Skript de Freeze | Catégorie Modération

Description du script :

Bonjour/Bonsoir,

J'ai essayé de trouver un script de ce genre, hélas rien.

J'ai essayé de faire un script de ce genre, hélas pas mal de soucis et rien des masses concrets !

Alors je fais appel à vous, développeur script.

 

J'aurais aimé un script de freeze via la commande /sfreeze [joueur] et utilisable via une permission sfreeze.use !

Ensuite, une fois la commande faites, cela averti le modérateur que le joueur sélectionné est bien freeze.

Le joueur freeze ne peut donc plus bouger > un inventaire s'ouvre comme ceci (http://prntscr.com/ija7iz) ! Le verre marron autour représente la délimitation du GUI qui s'ouvre.

 

Le block vert de verre se nommera ainsi : (http://prntscr.com/ija7e8) "J'avoue avoir cheaté" et une fois que le joueur freeze aura cliqué dessus, il se fera bannir pendant 30 jours avec la raison de ban : "Avoeux de cheat"

Mon plugin de ban (MaxBans)

 

Le block rouge de verre se nommera ainsi : (http://prntscr.com/ija8mi) "J'arrive teamspeak pour" et en description (lore) : "me faire vérif" et une fois que le joueur freeze aura cliqué dessus, ca enverra un message au modérateur qui l'a freeze/ça envoie dans le tchat "J'arrive sur teamspeak".

 

La nether star sera configurable et on pourra y mettre le message que l'on veut ! ^^

 

PS: Les items ne peuvent pas être récupérés dans l'inventaire.

 

Commandes éventuelles avec les permissions :

  • Une permission sfreeze.use | Permet d'utiliser le /sfreeze [joueur]

Autres précisions (bout de skript déjà fait, systèmes actuellement utilisés, etc.) :

J'utilise actuellement SkQuery, SkUtilities, TuSke. J'ai essayé de faire ce système mais rien de convainquant.. :/

 

En plus :

  • Les messages des blocks de verre peuvent être modifiés ;
  • Le script doit en partie être propre et optimisé tout de même (sauf si vous n'arrivez pas à l'optimiser c'est pas grave)

Je recherche cela gratuitement !

Je n'ai hélas pas encore de moyen pour financer des développeurs.

Posté(e)

Oh quel dommage je suis payant.

Aurevoir.

 

 

T'auras besoin de Skellett,SkQuery et TuSKE

Ah et dernière info, je ne l'ai absolument pas test :confused:

# It's just a prank !
# uhhuhuhuhuhuhuhuhu
#CONFIG
options:
   vertname: J'avoue avoir cheat
   rougename: J'arrive teamspeak pour
   rougelore: me faire vérif
   netherstar: Vous êtes suspecté de cheat !

   msgfreeze: Vous avez freeze <player> !

   nomgui: &bVerification

function Aveux(p: player):
   clear {freeze.%{_p}%}
   milk {_p}
   make console execute "/tempipban %{_p}% 30 days Aveux de cheat"

function Ts(modo: player, suspect: player):
   send "%{_suspect}%" to {_modo}
   clear {freeze.%{_suspect}%}
   close {_suspect}'s inventory

command /sfreeze <player>:
   trigger:
       if player has permission "sfreeze.use":
           do [set {_waw} to "{@msgfreeze}"] -> [replace all "<player>" with "%arg-1%" in {_waw}]
           send "%{_waw}%"
           set {freeze.%arg-1%} to true
           apply slowness 255 to arg 1 for 30 days
           open virtual chest inventory with size 5 named "{@nomgui}" to arg 1
           set {_lignemarron1} to 0
           loop 9 times:
               format gui slot {_lignemarron1} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_lignemarron1}
           set {_lignemarron2} to 36
           loop 9 times:
               format gui slot {_lignemarron2} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_lignemarron2}
           format gui slot 9 of arg 1 with brown stained glass pane named " " to do nothing
           set {_trololol} to 17
           loop 2 times:
               format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_trololol}
               format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
               add 7 to {_trololol}
           format gui slot 35 of arg 1 with brown stained glass pane named " " to do nothing
           format gui slot 20 of arg 1 with green glass block named "{@vertname}" to close then run function Aveux(arg-1)
           format gui slot 22 of arg 1 with nether star named "{@netherstar}" to do nothing
           format gui slot 24 of arg 1 with red glass block named "{@rougename}" with lore "{@rougelore}" to close then run function Ts(player, arg-1)

on quit:
   if {freeze.%player%} is set:
       clear {freeze.%player%}
       milk player

on inventory close:
   if {freeze.%player%} is set:
       cancel event

 

  • J'aime 2
Posté(e)
Version de minecraft / skript : 1.7.X > 1.8.X

Type du skript : Skript de Freeze | Catégorie Modération

Description du script :

Bonjour/Bonsoir,

J'ai essayé de trouver un script de ce genre, hélas rien.

J'ai essayé de faire un script de ce genre, hélas pas mal de soucis et rien des masses concrets !

Alors je fais appel à vous, développeur script.

 

J'aurais aimé un script de freeze via la commande /sfreeze [joueur] et utilisable via une permission sfreeze.use !

Ensuite, une fois la commande faites, cela averti le modérateur que le joueur sélectionné est bien freeze.

Le joueur freeze ne peut donc plus bouger > un inventaire s'ouvre comme ceci (http://prntscr.com/ija7iz) ! Le verre marron autour représente la délimitation du GUI qui s'ouvre.

 

Le block vert de verre se nommera ainsi : (http://prntscr.com/ija7e8) "J'avoue avoir cheaté" et une fois que le joueur freeze aura cliqué dessus, il se fera bannir pendant 30 jours avec la raison de ban : "Avoeux de cheat"

Mon plugin de ban (MaxBans)

 

Le block rouge de verre se nommera ainsi : (http://prntscr.com/ija8mi) "J'arrive teamspeak pour" et en description (lore) : "me faire vérif" et une fois que le joueur freeze aura cliqué dessus, ca enverra un message au modérateur qui l'a freeze/ça envoie dans le tchat "J'arrive sur teamspeak".

 

La nether star sera configurable et on pourra y mettre le message que l'on veut ! ^^

 

PS: Les items ne peuvent pas être récupérés dans l'inventaire.

 

Commandes éventuelles avec les permissions :

  • Une permission sfreeze.use | Permet d'utiliser le /sfreeze [joueur]

Autres précisions (bout de skript déjà fait, systèmes actuellement utilisés, etc.) :

J'utilise actuellement SkQuery, SkUtilities, TuSke. J'ai essayé de faire ce système mais rien de convainquant.. :/

 

En plus :

  • Les messages des blocks de verre peuvent être modifiés ;
  • Le script doit en partie être propre et optimisé tout de même (sauf si vous n'arrivez pas à l'optimiser c'est pas grave)

Je recherche cela gratuitement !

Je n'ai hélas pas encore de moyen pour financer des développeurs.

 

 

Donne moi ton discord ... Et je t'aide volontier

Posté(e)
Oh quel dommage je suis payant.

Aurevoir.

 

 

T'auras besoin de Skellett,SkQuery et TuSKE

Ah et dernière info, je ne l'ai absolument pas test :confused:

# It's just a prank !
# uhhuhuhuhuhuhuhuhu
#CONFIG
options:
   vertname: J'avoue avoir cheat
   rougename: J'arrive teamspeak pour
   rougelore: me faire vérif
   netherstar: Vous êtes suspecté de cheat !

   msgfreeze: Vous avez freeze <player> !

   nomgui: &bVerification

function Aveux(p: player):
   clear {freeze.%{_p}%}
   milk {_p}
   make console execute "/tempipban %{_p}% 30 days Aveux de cheat"

function Ts(modo: player, suspect: player):
   send "%{_suspect}%" to {_modo}
   clear {freeze.%{_suspect}%}
   close {_suspect}'s inventory

command /sfreeze <player>:
   trigger:
       if player has permission "sfreeze.use":
           do [set {_waw} to "{@msgfreeze}"] -> [replace all "<player>" with "%arg-1%" in {_waw}]
           send "%{_waw}%"
           set {freeze.%arg-1%} to true
           apply slowness 255 to arg 1 for 30 days
           open virtual chest inventory with size 5 named "{@nomgui}" to arg 1
           set {_lignemarron1} to 0
           loop 9 times:
               format gui slot {_lignemarron1} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_lignemarron1}
           set {_lignemarron2} to 36
           loop 9 times:
               format gui slot {_lignemarron2} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_lignemarron2}
           format gui slot 9 of arg 1 with brown stained glass pane named " " to do nothing
           set {_trololol} to 17
           loop 2 times:
               format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_trololol}
               format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
               add 7 to {_trololol}
           format gui slot 35 of arg 1 with brown stained glass pane named " " to do nothing
           format gui slot 20 of arg 1 with green glass block named "{@vertname}" to close then run function Aveux(arg-1)
           format gui slot 22 of arg 1 with nether star named "{@netherstar}" to do nothing
           format gui slot 24 of arg 1 with red glass block named "{@rougename}" with lore "{@rougelore}" to close then run function Ts(player, arg-1)

on quit:
   if {freeze.%player%} is set:
       clear {freeze.%player%}
       milk player

on inventory close:
   if {freeze.%player%} is set:
       cancel event

Merci bien !

Je vais le tester et je te redis ça !

Super sympa de me l'avoir fais gratuitement :)

 

--------------

EDIT:

La commande sFreeze marche, le joueur est en slowness et le gui s'ouvre.

Le problème, les boutons ne sont pas fonctionnels, en cliquant sur "J'avoue avoir cheat" rien ne se passe et de même pour "J'arrive sur teamspeak"..

 

Y'aurait aussi moyen que quand le joueur quitte l'inventaire, ça lui re-ouvre ?

Et y'a une erreur dans le skript : http://prntscr.com/ijio8y

Posté(e)
# It's just a prank !
# uhhuhuhuhuhuhuhuhu
#CONFIG
options:
   vertname: J'avoue avoir cheat
   rougename: J'arrive teamspeak pour
   rougelore: me faire vérif
   netherstar: Vous êtes suspecté de cheat !

   msgfreeze: Vous avez freeze <player> !

   nomgui: &bVerification

function Aveux(p: player):
   clear {freeze.%{_p}%}
   milk {_p}
   make console execute "/tempipban %{_p}% 30 days Aveux de cheat"

function Ts(modo: player, suspect: player):
   send "%{_suspect}%" to {_modo}
   clear {freeze.%{_suspect}%}
   close {_suspect}'s inventory

command /sfreeze <player>:
   trigger:
       if player has permission "sfreeze.use":
           do [set {_waw} to "{@msgfreeze}"] -> [replace all "<player>" with "%arg-1%" in {_waw}]
           send "%{_waw}%"
           set {freeze.%arg-1%} to true
           apply slowness 255 to arg 1 for 30 days
           open virtual chest inventory with size 5 named "{@nomgui}" to arg 1
           set {_lignemarron1} to 0
           loop 9 times:
               format gui slot {_lignemarron1} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_lignemarron1}
           set {_lignemarron2} to 36
           loop 9 times:
               format gui slot {_lignemarron2} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_lignemarron2}
           format gui slot 9 of arg 1 with brown stained glass pane named " " to do nothing
           set {_trololol} to 17
           loop 2 times:
               format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_trololol}
               format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
               add 7 to {_trololol}
           format gui slot 35 of arg 1 with brown stained glass pane named " " to do nothing
           format slot 20 of arg 1 with green glass block named "{@vertname}" to close then run [Aveux(arg-1)]
           format gui slot 22 of arg 1 with nether star named "{@netherstar}" to do nothing
           format slot 24 of arg 1 with red glass block named "{@rougename}" with lore "{@rougelore}" to close then run [Ts(player, arg-1)]

on quit:
   if {freeze.%player%} is set:
       clear {freeze.%player%}
       milk player

on inventory close:
   if {freeze.%player%} is set:
       do [set {_waw} to "{@msgfreeze}"] -> [replace all "<player>" with "%arg-1%" in {_waw}]
       send "%{_waw}%"
       set {freeze.%arg-1%} to true
       apply slowness 255 to arg 1 for 30 days
       open virtual chest inventory with size 5 named "{@nomgui}" to arg 1
       set {_lignemarron1} to 0
       loop 9 times:
           format gui slot {_lignemarron1} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_lignemarron1}
       set {_lignemarron2} to 36
       loop 9 times:
           format gui slot {_lignemarron2} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_lignemarron2}
       format gui slot 9 of arg 1 with brown stained glass pane named " " to do nothing
       set {_trololol} to 17
       loop 2 times:
           format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_trololol}
           format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
           add 7 to {_trololol}
       format gui slot 35 of arg 1 with brown stained glass pane named " " to do nothing
       format slot 20 of arg 1 with green glass block named "{@vertname}" to close then run [Aveux(arg-1)]
       format gui slot 22 of arg 1 with nether star named "{@netherstar}" to do nothing
       format slot 24 of arg 1 with red glass block named "{@rougename}" with lore "{@rougelore}" to close then run [Ts(player, arg-1)]

Posté(e)
# It's just a prank !
# uhhuhuhuhuhuhuhuhu
#CONFIG
options:
   vertname: J'avoue avoir cheat
   rougename: J'arrive teamspeak pour
   rougelore: me faire vérif
   netherstar: Vous êtes suspecté de cheat !

   msgfreeze: Vous avez freeze <player> !

   nomgui: &bVerification

function Aveux(p: player):
   clear {freeze.%{_p}%}
   milk {_p}
   make console execute "/tempipban %{_p}% 30 days Aveux de cheat"

function Ts(modo: player, suspect: player):
   send "%{_suspect}%" to {_modo}
   clear {freeze.%{_suspect}%}
   close {_suspect}'s inventory

command /sfreeze <player>:
   trigger:
       if player has permission "sfreeze.use":
           do [set {_waw} to "{@msgfreeze}"] -> [replace all "<player>" with "%arg-1%" in {_waw}]
           send "%{_waw}%"
           set {freeze.%arg-1%} to true
           apply slowness 255 to arg 1 for 30 days
           open virtual chest inventory with size 5 named "{@nomgui}" to arg 1
           set {_lignemarron1} to 0
           loop 9 times:
               format gui slot {_lignemarron1} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_lignemarron1}
           set {_lignemarron2} to 36
           loop 9 times:
               format gui slot {_lignemarron2} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_lignemarron2}
           format gui slot 9 of arg 1 with brown stained glass pane named " " to do nothing
           set {_trololol} to 17
           loop 2 times:
               format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
               add 1 to {_trololol}
               format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
               add 7 to {_trololol}
           format gui slot 35 of arg 1 with brown stained glass pane named " " to do nothing
           format slot 20 of arg 1 with green glass block named "{@vertname}" to close then run [Aveux(arg-1)]
           format gui slot 22 of arg 1 with nether star named "{@netherstar}" to do nothing
           format slot 24 of arg 1 with red glass block named "{@rougename}" with lore "{@rougelore}" to close then run [Ts(player, arg-1)]

on quit:
   if {freeze.%player%} is set:
       clear {freeze.%player%}
       milk player

on inventory close:
   if {freeze.%player%} is set:
       do [set {_waw} to "{@msgfreeze}"] -> [replace all "<player>" with "%arg-1%" in {_waw}]
       send "%{_waw}%"
       set {freeze.%arg-1%} to true
       apply slowness 255 to arg 1 for 30 days
       open virtual chest inventory with size 5 named "{@nomgui}" to arg 1
       set {_lignemarron1} to 0
       loop 9 times:
           format gui slot {_lignemarron1} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_lignemarron1}
       set {_lignemarron2} to 36
       loop 9 times:
           format gui slot {_lignemarron2} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_lignemarron2}
       format gui slot 9 of arg 1 with brown stained glass pane named " " to do nothing
       set {_trololol} to 17
       loop 2 times:
           format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_trololol}
           format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
           add 7 to {_trololol}
       format gui slot 35 of arg 1 with brown stained glass pane named " " to do nothing
       format slot 20 of arg 1 with green glass block named "{@vertname}" to close then run [Aveux(arg-1)]
       format gui slot 22 of arg 1 with nether star named "{@netherstar}" to do nothing
       format slot 24 of arg 1 with red glass block named "{@rougename}" with lore "{@rougelore}" to close then run [Ts(player, arg-1)]

Quand je ferme mon inventaire en étant freeze : http://prntscr.com/ijiwyc

Quand je clique sur "J'arrive sur teamspeak" : http://prntscr.com/ijix6r

Quand je clique sur "J'avoue avoir cheat" : le GUI se ferme et je suis unfreeze <- EDIT : Je suis banni !

Posté(e)

J'arrive sur teamspeak >> Je me suis trompé je vais pas remettre tt le code la mais dans la fonction "Ts",c'est écrit "send "%{_suspect}%" to {_modo}" bah tu peux mettre le message que tu veux, par exemple "%{_suspect}% arrive sur le teamspeak !"

 

Pour le inventory close essaie de remplacer l'event par ça:

on inventory close:
   if {freeze.%player%} is set:
       close player's inventory
       open virtual chest inventory with size 5 named "{@nomgui}" to arg 1
       set {_lignemarron1} to 0
       loop 9 times:
           format gui slot {_lignemarron1} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_lignemarron1}
       set {_lignemarron2} to 36
       loop 9 times:
           format gui slot {_lignemarron2} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_lignemarron2}
       format gui slot 9 of arg 1 with brown stained glass pane named " " to do nothing
       set {_trololol} to 17
       loop 2 times:
           format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_trololol}
           format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
           add 7 to {_trololol}
       format gui slot 35 of arg 1 with brown stained glass pane named " " to do nothing
       format slot 20 of arg 1 with green glass block named "{@vertname}" to close then run [Aveux(arg-1)]
       format gui slot 22 of arg 1 with nether star named "{@netherstar}" to do nothing
       format slot 24 of arg 1 with red glass block named "{@rougename}" with lore "{@rougelore}" to close then run [Ts(player, arg-1)]

Posté(e)
J'arrive sur teamspeak >> Je me suis trompé je vais pas remettre tt le code la mais dans la fonction "Ts",c'est écrit "send "%{_suspect}%" to {_modo}" bah tu peux mettre le message que tu veux, par exemple "%{_suspect}% arrive sur le teamspeak !"

 

Pour le inventory close essaie de remplacer l'event par ça:

on inventory close:
   if {freeze.%player%} is set:
       close player's inventory
       open virtual chest inventory with size 5 named "{@nomgui}" to arg 1
       set {_lignemarron1} to 0
       loop 9 times:
           format gui slot {_lignemarron1} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_lignemarron1}
       set {_lignemarron2} to 36
       loop 9 times:
           format gui slot {_lignemarron2} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_lignemarron2}
       format gui slot 9 of arg 1 with brown stained glass pane named " " to do nothing
       set {_trololol} to 17
       loop 2 times:
           format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
           add 1 to {_trololol}
           format gui slot {_trololol} of arg 1 with brown stained glass pane named " " to do nothing
           add 7 to {_trololol}
       format gui slot 35 of arg 1 with brown stained glass pane named " " to do nothing
       format slot 20 of arg 1 with green glass block named "{@vertname}" to close then run [Aveux(arg-1)]
       format gui slot 22 of arg 1 with nether star named "{@netherstar}" to do nothing
       format slot 24 of arg 1 with red glass block named "{@rougename}" with lore "{@rougelore}" to close then run [Ts(player, arg-1)]

Tout marche, sauf le close de l'inventaire qui fais ça : http://prntscr.com/ijlxt1 ! :/

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.