Aller au contenu
  • 0

Freeze Inventory Besoin d'aide


Question

Posté(e)

Salut donc je suis entrain de faire un skript de Inventaire en freeze sauf que j'ai un petit soucis que je ne sait pas comment raisoudre donc je vous explique

Juste avant voici quelque infos:

Server en 1.7.10 Spigot

Addon : WildSkript , SkQuery

 

donc en gros je utilise un plugin java pour freeze sauf que dedans il n'y a pas de inventaire donc j'aimerai en rajouter un et donc voici le code :

 

on command "/ss %player%":
   if player has permission "mod.use":
       open chest with 1 row named "&b&lYou are frozen" to arg-1
       wait 1 tick
       format slot 0 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 1 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 2 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 3 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 4 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 5 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 6 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 7 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 8 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable

 

et le probleme est que je n'arrive pas a faire que le skript prennent en compte le pseudo du joueur

 

Juste si vous pourriez trouver un moyen de faire que il est impossible de fermer l'inventaire merci

15 réponses à cette question

Messages recommandés

  • 0
Posté(e)

variables:
   {freeze.%player%} = false



on command "/ss <player>":
   if player has permission "mod.use":
       set {freeze.%arg 1%} to true
       open chest with 1 row named "&b&lYou are frozen" to arg 1
       wait 1 tick
       format slot 0 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 1 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 2 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 3 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 4 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 5 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 6 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 7 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 8 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable

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

 

 

pas sur pour qu'il puisse pas fermer son inventaire

  • 0
Posté(e)

11 erreurs (en enlevant certaine chose) le code :

on command "/ss <player>":
   if player has permission "mod.use":
       set {freeze.%arg 1%} to true
       open chest with 1 row named "&b&lYou are frozen" to arg-1
       wait 1 tick
       format slot 0 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 1 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 2 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 3 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 4 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 5 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 6 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 7 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 8 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable

  • 0
Posté(e)

variables:
   {freeze.%player%} = false


command /unfreeze <player>:
   trigger:
       set {freeze.%arg 1%} to false

command /ss <player>:
   trigger:
       if player has permission "mod.use":
           set {freeze.%arg 1%} to true
           wait 2 ticks
           open chest with 1 row named "&b&lYou are frozen" to arg 1
           wait 2 ticks
           format slot 0 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
           format slot 1 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
           format slot 2 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
           format slot 3 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
           format slot 4 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
           format slot 5 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
           format slot 6 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
           format slot 7 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
           format slot 8 of arg 1 with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable

on inventory close:
   if {freeze.%player%} is true:
       wait 2 ticks
       open chest with 1 row named "&b&lYou are frozen" to player
       wait 2 ticks
       format slot 0 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 1 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 2 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 3 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 4 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 5 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 6 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 7 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable
       format slot 8 of player with ice named "&bJoin TeamSpeak : &ldelay.ts.io" to be unstealable

 

 

essaye avec cela mais se qui serai bien c'est d'envoyer les screen pour les erreurs mais bon essaye a nouveau avec se code ^^

  • 0
Posté(e)
Comment sa les doubles postes?

Tu avais dis "Juste si vous pourriez trouver un moyen de faire que il est impossible de fermer l'inventaire merci" dans le message suivant (je l'ai fusionné avec celui au dessus, tu ne peux donc plus le voir). Dis moi si tu n'as pas compris, je ne sais pas trop commencer expliquer 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.