variables:
granica = 1500
every 300 tick:
loop all players:
set {_x} to x coordinate of loop-player
set {_y} to y coordinate of loop-player
set {_z} to z coordinate of loop-player
if {_x} is more than {granica}:
set {_x} to {granica}
set {_tp} to true
if {_x} is less than {granica}*-1:
set {_x} to {granica}*-1
set {_tp} to true
if {_z} is more than {granica}:
set {_z} to {granica}
set {_tp} to true
if {_z} is less than {granica}*-1:
set {_z} to {granica}*-1
set {_tp} to true
if {_tp} is true:
set {_xyz} to the location at {_x}, {_y}, {_z} in loop-player's world
teleport loop-player to {_xyz}
command /border [<number>]:
permission: border.command
trigger:
if argument is set:
set {granica} to argument
send "&aUstawiono granice"
else:
send "&c/border <liczba> - &8(&3Nayamo.border.command&8)"
send "&c/border <liczba> - &8(&3Nayamo.border.command&8)"
variables:
{chat} = true
command /chat [<text>]:
trigger:
if arg 1 is not set:
if player has permission "chat.pomoc":
send "&3Dostepne komendy:"
send " &6/chat on &2- Wlacza chat"
send " &6/chat off &2- Wylacza chat"
send " &6/chat cc &2- Czysci chat"
send "&8-----------------------------"
stop
else:
send " &6&lDUDI&e&lMC &7» &cNie masz dostepu do tej komendy!"
stop
if arg 1 is "on":
if {chat} is false:
if player has permission "chat.on":
set {chat} to true
broadcast " &6&lDUDI&e&lMC &7» &9Chat zostal wlaczony przez: &6%player%"
stop
else:
send " &6&lDUDI&e&lMC &7» &cNie masz dostepu do tej komendy!"
stop
else:
send " &6&lDUDI&e&lMC &7» Chat jest juz wlaczony!"
stop
if arg 1 is "off":
if {chat} is true:
if player has permission "chat.off":
set {chat} to false
broadcast " &8> &9Chat zostal wylaczony przez: &6%player%"
stop
else:
send " &8> &cNie masz dostepu do tej komendy!"
stop
else:
send " &6&lDUDI&e&lMC &7» &cChat jest juz wylaczony!"
stop
if arg 1 is "cc" or "clear":
if player has permission "chat.cc":
loop 128 times:
broadcast ""
broadcast " &6&lDUDI&e&lMC &7» &9Chat zostal wyczyszczony przez: &6%player%"
loop all players:
send loop-player title "[CHAT]" with subtitle "" for 10 seconds
stop
else:
send " &6&lDUDI&e&lMC &7» &cNie masz dostepu do tej komendy!"
stop
on chat:
if {chat} is false:
if player has permission "chat.pisanie":
stop
else:
cancel event
send " &6&lDUDI&e&lMC &7» &cChat jest aktualnie wylaczony!"
stop
else:
if player has permission "chat.antyslow":
stop
set {_waited} to difference between {chat.%player%.spam} and now
if {_waited} is less than 4 real seconds seconds:
send " &6&lDUDI&e&lMC &7» &cWiadomosci mozesz wysylac co &a4 &csekund!"
cancel event
stop
set {chat.%player%.spam} to now
cancel event
stop
Pytanie
Gość dudimsp2
Odnośnik do komentarza
https://skript.pl/temat/31943-poprawa-bled%C3%B3w/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.