Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /warn [<player>] [<text>]:
- trigger:
- if player don't have permission "admin.warn":
- send "&cNie masz dostepu do tej komendy."
- stop
- if arg 1 is not set:
- send "&cPoprawne uzycie - &4/warn <player> <powod>"
- stop
- if arg 2 is not set:
- send "&cPoprawne uzycie - &4/warn <player> <powod>"
- stop
- arg 2 is "cheaty"
- if {warn::cheaty::%arg 1%} < 3:
- add 1 to {warn::cheaty::%arg 1%}
- if {warn::cheaty::%arg 1%} is 1:
- broadcast "{@cheaty1}"
- kick arg 1 due to "&cDostales Ostrzezenie &4[1/3]&c. Powod: &4Cheaty&c."
- stop
- if {warn::cheaty::%arg 1%} is 2:
- broadcast "{@cheaty2}"
- kick arg 1 due to "&cDostales Ostrzezenie &4[2/3]&c. Powod: &4Cheaty&c."
- stop
- set {warn::cheaty::%arg 1%} to 0
- broadcast "{@cheaty3}"
- set {warn::ban::%arg 1%} to now
- set {warn::ilejeszczebana::%arg 1%} to now
- add 7 days to {warn::ilejeszczebana::%arg 1%}
- set {_zaile} to difference between {warn::ilejeszczebana::%arg 1%} and now
- kick arg 1 due to "&cDostales Ostrzezenie &4[3/3]&c. Powod: &4Cheaty&c. Zostales zbanowany na &47 dni&c!"
- stop
- on connect:
- {warn::ban::%player%} was less than 7 days ago
- set {_zaile} to difference between {warn::ilejeszczebana::%player%} and now
- kick player due to "&cZostales zbanowany na &47 dni&c! Powod: &4Cheaty&c. &8Unbana otrzymasz za: &7%{_zaile}%&8."
- stop
Advertisement
Add Comment
Please, Sign In to add comment