on chat:
set {_w} to difference between {chat.%player%.wait} and now
if {_w} is less than {chat.waittime} parsed as time span:
if the player has the permission "chatdelay.admin":
stop
cancel event
send "&c[CD] &fVous devez attendre &c%{chat.waittime}%&fpour parler!" to player
stop
if {_w} is more than {chat.waittime} parsed as time span:
set {chat.%player%.wait} to now
stop
command /slow [<text>]:
trigger:
if the player has the permission "chatdelay.admin":
if arg is set:
if arg is "off":
set {_t} to "0 seconds"
send "&c[CD] &fSlow mode supprimé" to player
set {chat.waittime} to {_t}
stop
if arg is not "off":
set {_t} to "%arg parsed as number% secondes"
send "&c[CD] &fSlow mode mis sur %{_t}%" to player
set {chat.waittime} to {_t}
stop
on quit:
delete {chat.%player%.wait}
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
Cub4tomik
J'ai des problèmes de TAB ! Possible de m'aider ?
on chat: set {_w} to difference between {chat.%player%.wait} and now if {_w} is less than {chat.waittime} parsed as time span: if the player has the permission "chatdelay.admin": stop cancel event send "&c[CD] &fVous devez attendre &c%{chat.waittime}%&fpour parler!" to player stop if {_w} is more than {chat.waittime} parsed as time span: set {chat.%player%.wait} to now stop command /slow [<text>]: trigger: if the player has the permission "chatdelay.admin": if arg is set: if arg is "off": set {_t} to "0 seconds" send "&c[CD] &fSlow mode supprimé" to player set {chat.waittime} to {_t} stop if arg is not "off": set {_t} to "%arg parsed as number% secondes" send "&c[CD] &fSlow mode mis sur %{_t}%" to player set {chat.waittime} to {_t} stop on quit: delete {chat.%player%.wait}4 réponses à cette question
Messages recommandés