Version de Minecraft : 1.8.8 Version de Skript : 2.1.2
Addons utilisés:SkRayFall, Umbaska, SkQuery
Type du skript : Freeze
Description du script :
Je voudrais utiliser un baton quand on click droit sur un joueur sa execute la commande /freeze (joueur visé). Or lorsque j'utilise le baton ca marche que sur les personnes op savez vous pourquoi voici mon code.
on right click with stick:
if name of tool is "&bFreeze":
if player's target is a player:
make player execute command "/freeze %targeted player% Passe Discord"
else:
send "&c&lVeuillez viser un joueur" to sender
else:
stop
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.
Question
LQF_ByNow_
Version de Minecraft : 1.8.8
Version de Skript : 2.1.2
Addons utilisés: SkRayFall, Umbaska, SkQuery
Type du skript : Freeze
Description du script :
Je voudrais utiliser un baton quand on click droit sur un joueur sa execute la commande /freeze (joueur visé). Or lorsque j'utilise le baton ca marche que sur les personnes op savez vous pourquoi voici mon code.
command /freeze [<offline player>] [<text>]:
trigger:
if player has permission "{@permission}":
if arg 1 is not online:
send "{@prefix} &cCe joueur n'est pas en ligne actuellement !" to player
stop
if arg 1 is not set:
if arg 2 is not set:
send "{@prefix} &cVeuillez mettre le pseudo du joueur à &bFreeze &cet une raison !" to player
stop
if arg 1 is set:
if arg 2 is not set:
if {status.freeze.%arg 1%} is false:
set {status.freeze.%arg 1%} to true
wait 3 ticks
send "&3&m--|----------------------------------------------|--" to arg 1
send " " to arg 1
send " &cVous venez de vous faire &bFreeze &c!" to arg 1
send " " to arg 1
send "&5Par &8» &6%player%" to arg 1
send "&5Raison &8» &cAucune raison n'a été donnée" to arg 1
send " " to arg 1
send "&4&lATTENTION &8: &cSi vous vous déconnecter pendant que vous êtes &bFREEZE &cvous vous ferez automatiquement bannir !" to arg 1
send "&3&m--|----------------------------------------------|--" to arg 1
wait 3 ticks
apply jump boost 250 to arg 1 for 999 days
apply slowness 250 to arg 1 for 999 days
apply blindness 250 to arg 1 for 999 days
stop
if {status.freeze.%arg 1%} is true:
set {status.freeze.%arg 1%} to false
wait 3 ticks
send "&3&m--|----------------------------------------------|--" to arg 1
send " " to arg 1
send " &cVous avez été &3Un&bFreeze &cpar &6%player% &c!" to arg 1
send " " to arg 1
send "&3&m--|----------------------------------------------|--" to arg 1
wait 3 ticks
make console execute command "/effect %arg 1% clear"
stop
if arg 2 is set:
if {status.freeze.%arg 1%} is false:
set {status.freeze.%arg 1%} to true
wait 3 ticks
send "&3&m--|----------------------------------------------|--" to arg 1
send " " to arg 1
send " &cVous venez de vous faire &bFreeze &c!" to arg 1
send " " to arg 1
send "&5Par &8» &6%player%" to arg 1
send "&5Raison &8» &c%arg 2%" to arg 1
send " " to arg 1
send "&4&lATTENTION &8» &cSi vous vous déconnecter pendant que vous êtes &bFREEZE &cvous vous ferez automatiquement bannir !" to arg 1
send "&3&m--|----------------------------------------------|--" to arg 1
wait 3 ticks
apply jump boost 250 to arg 1 for 999 days
apply slowness 250 to arg 1 for 999 days
apply blindness 250 to arg 1 for 999 days
stop
if {status.freeze.%arg 1%} is true:
set {status.freeze.%arg 1%} to false
wait 3 ticks
send "&3&m--|----------------------------------------------|--" to arg 1
send " " to arg 1
send " &cVous avez été &3Un&bFreeze &cpar &6%player% &c!" to arg 1
send " " to arg 1
send "&3&m--|----------------------------------------------|--" to arg 1
wait 3 ticks
make console execute command "/effect %arg 1% clear"
stop
else:
send "{@prefix} &cVous n'avez pas la permission d'utiliser ceci !"
stop
on right click with stick:
if name of tool is "&bFreeze":
if player's target is a player:
make player execute command "/freeze %targeted player% Passe Discord"
else:
send "&c&lVeuillez viser un joueur" to sender
else:
stop
7 réponses à cette question
Messages recommandés