Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {czat} = true
- {czas.%player%} = false
- command /chat [<text>] [<player>]:
- trigger:
- if player has permission "chat.sharpe":
- if arg 1 is "off":
- set {czat} to false
- message "&2&lCzat zostal wylaczony przez gracza &f&l%player%" to all players
- if arg 1 is "on":
- set {czat} to true
- message "&2&lCzat zostal uruchomiony przez gracza &f&l%player%" to all players
- if arg 1 is "c":
- loop 100 times:
- message " " to all players
- message "&2&lCzat zostal wyczyszony przez &f&l%player%" to all players
- if arg 1 is "pomoc":
- send "&5&l$$$$$$$$$$"
- send "&2&lKomendy:"
- send "&l/chat c , /chat on , /chat off , /chat autor , /chat b nick , chat ub nick"
- send "&5&l$$$$$$$$$$"
- if arg 1 is "autor":
- send "&5&l$$$$$$$$$$"
- send "&2&lAutor to &6&lSharpeeeN"
- send "&5&l$$$$$$$$$$"
- if arg 1 is not set:
- send "&2&lwpisz /chat pomoc"
- if arg 1 is "b":
- if arg 2 is set:
- if {czat} is true or false:
- if player has permission "chat.sharpe":
- set {czat.%arg 2%} to false
- send "&6&lZablokowales czat graczowi &f&l%arg 2%"
- else:
- send "&4&lNiemasz uprawnien"
- if arg 1 is "ub":
- if arg 2 is set:
- if {czat} is true or false:
- if player has permission "chat.sharpe":
- set {czat.%arg 2%} to true
- send "&6&lOdblokowales czat graczowi &f&l%arg 2%"
- else:
- send "&4&lNiemasz uprawnien"
- else:
- send "Niemasz uprawnien"
- command /info [<text>]:
- trigger:
- if player has permission "chat.sharpe":
- if arg is not set:
- send "&lwpisz informacje jaka masz do przekazania."
- else:
- broadcast " "
- broadcast " "
- broadcast " &5&l* &4&lOGLOSZENIE &5&l*"
- broadcast " "
- broadcast "&2&l%player% &6&l >> &c%arg 1%"
- broadcast " "
- else:
- send "&3Brak uprawnien &2&l:("
- on chat:
- player don't have permission "chat.sharpe":
- if {chat} is false:
- cancel event
- stop
- send "&4&lCzat jest off"
- if {chat.%player%} is false:
- cancel event
- stop
- send "&4&lTwoj czat jest zablokowany"
- on chat:
- if player don't have permission "chatspam.sharpe":
- set {_waited} to difference between {chat.%player%.spam} and now
- if {_waited} is less than 3 real seconds:
- send "&4&lNIE SPAM ! &f&lWiadomosci mozesz wysylac co 3 sekundy"
- cancel event
- stop
- else:
- set {chat.%player%.spam} to now
Advertisement
Add Comment
Please, Sign In to add comment