Hello there,
I want to create a system on my server, which supports german AND english.
But I have problems with it.
So here is a problem with a chatclear command.
I want that the players who got the language "english" get the english message
and "german" the german message.
Here is my Skript:
Now all players get both messages. Thank you for your help!
regards, Allesco | Timon
I want to create a system on my server, which supports german AND english.
But I have problems with it.
So here is a problem with a chatclear command.
I want that the players who got the language "english" get the english message
and "german" the german message.
Here is my Skript:
code_language.skript:
command /cc:
aliases: /clearchat,/chatclear
permission: command.cc
permission message: &8» &cDazu hast du keine Rechte!
trigger:
loop 200 times:
broadcast ""
loop all players:
network variable {language.%loop-player%} is "german":
broadcast "&8«&7&m----------&8» &2MatrixMC&7.&aDE &8«&7&m----------&8»"
broadcast ""
broadcast "&7Der Chat wurde von &e%player%&r &7geleert!"
broadcast ""
broadcast "&8«&7&m----------&8» &2MatrixMC&7.&aDE &8«&7&m----------&8»"
network variable {language.%loop-player%} is "english":
broadcast "&8«&7&m----------&8» &2MatrixMC&7.&aDE &8«&7&m----------&8»"
broadcast ""
broadcast "&7The chat has been cleared by &e%player%&7!"
broadcast ""
broadcast "&8«&7&m----------&8» &2MatrixMC&7.&aDE &8«&7&m----------&8»"
Now all players get both messages. Thank you for your help!
regards, Allesco | Timon