UiNAy2dW
Język: Skript
|
Autor: Anonimowy
variables: {chat} = "on" command /chat [<text>]: permission: chat.admin permission message: &c&lHej! &7Nie masz uprawnien aby uzyc tej komendy! trigger: arg-1 is "on": {chat} isn't "on": set {chat} to "on" send all players title "&8&l> &a&lCHAT &8&l<" with subtitle "&aChat zostal wlaczony przez &6%player%" for 2 second else: send "&4Blad: &cChat jest juz wlaczony!" else if arg-1 is "off": {chat} isn't "off": set {chat} to "off" send all players title "&8&l> &c&lCHAT &8&l<" with subtitle "&cChat zostal wylaczony przez &6%player%" for 2 second else: send "&4Blad: &cChat jest juz wylaczony!" else if arg-1 is "ogranicz": {chat} isn't "ogranicz": set {chat} to "ogranicz" send all players title "&8&l> &6&lCHAT &8&l<" with subtitle "&6Chat zostal wlaczony tylko dla graczy &6&lPREMIUM" for 3 second else: send "&4Blad: &cChat jest juz ograniczony!" else if arg-1 is "cc": loop 99 times: broadcast "" send all players title "&8&l> &b&lCHAT &8&l<" with subtitle "&bChat zostal wyczyszczony przez &6%player%" for 2 second broadcast "" broadcast " &e&lMAX&6&lDROP.PL" broadcast "" broadcast "" broadcast "" broadcast "" else: send "&cPoprawne uzycie: &4/chat ogranicz/off/on/cc" on chat: {chat} = "ogranicz": player don't have permission "chat.ogranicz": cancel event send player title "&8&l> &6&lCHAT &8&l<" with subtitle "&6Aby moc teraz pisac zakup range &6&lPREMIUM" for 5 second send "&7Range &6&lPREMIUM &7zakupisz na strone &6&lMAXDROP.PL" stop on chat: {chat} = "off": player don't have permission "chat.admin": cancel event send player title "&8&l> &c&lCHAT &8&l<" with subtitle "&cChat aktualnie jest wylaczony!" for 1 second stop {slowmode::%player%} is set: cancel event send player title "&8&l> &c&lCHAT &8&l<" with subtitle "&cNastepna wiadomosc mozesz wyslac za &6%{slowmode::%player%}% sekund" for 2 second stop player don't have permission "chat.slowmode": set {slowmode::%player%} to 3 loop 3 times: wait 1 second remove 1 from {slowmode::%player%} delete {slowmode::%player%} on join: delete {slowmode::%player%}