Ubgu5Qa1
Język: Skript
|
Autor: MaTrIS
variables: {cooldown::%player%} = false options: wiadomosc: %argument 1% command /helpop [<text>]: trigger: if arg 1 is set: if {cooldown::%player%} is false: send "" send " &2&lHelpOP &7(%{_ccolrang}%%{_p}'s prefix% %{_ccolnicku}%%{_p}%&7)" send " &e{@wiadomosc}" send " &fjesli nie otrzymasz odpowiedzi, zglos na forum: &b&nhttps://meris.pl/ send "" loop all players: if loop-player has permission "nte.admin" or "nte.owner" or "nte.pomocnik" or "nte.pomocnik+" or "nte.budowniczy": send "" send " &2&lHelpOP &7(%{_ccolrang}%%{_p}'s prefix% %{_ccolnicku}%%{_p}%&7)" to loop-player send " &e{@wiadomosc}" send "" wait 2 real seconds: set {cooldown::%player%} to true wait 60 real second set {cooldown::%player%} to false else: helpop_timehelpop(player) send "&cMusisz odczekac &c%{_timehelpop}% &csek od nastepnej wiadomosci!" if arg 1 is not set: send "" to player send " &2&lHelpOP &7(%{_ccolrang}%%{_p}'s prefix% %{_ccolnicku}%%{_p}%&7)" to player send " &fPrawidlowa komenda &b&n/helpop [wiadomosc]" to player send "" to player on join: set {cooldown::%player%} to false function helpop_timehelpop(p: player): if {_timehelpop} is not set: set {_timehelpop} to 120 loop 2 times: wait 1 real seconds: delete {_timehelpop} to 1 return %{_timehelpop}%