TheU5erPL

Warn

Apr 21st, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. command /warn [<player>] [<text>]:
  2. trigger:
  3. if player don't have permission "admin.warn":
  4. send "&cNie masz dostepu do tej komendy."
  5. stop
  6. if arg 1 is not set:
  7. send "&cPoprawne uzycie - &4/warn <player> <powod>"
  8. stop
  9. if arg 2 is not set:
  10. send "&cPoprawne uzycie - &4/warn <player> <powod>"
  11. stop
  12. arg 2 is "cheaty"
  13. if {warn::cheaty::%arg 1%} < 3:
  14. add 1 to {warn::cheaty::%arg 1%}
  15. if {warn::cheaty::%arg 1%} is 1:
  16. broadcast "{@cheaty1}"
  17. kick arg 1 due to "&cDostales Ostrzezenie &4[1/3]&c. Powod: &4Cheaty&c."
  18. stop
  19. if {warn::cheaty::%arg 1%} is 2:
  20. broadcast "{@cheaty2}"
  21. kick arg 1 due to "&cDostales Ostrzezenie &4[2/3]&c. Powod: &4Cheaty&c."
  22. stop
  23. set {warn::cheaty::%arg 1%} to 0
  24. broadcast "{@cheaty3}"
  25. set {warn::ban::%arg 1%} to now
  26. set {warn::ilejeszczebana::%arg 1%} to now
  27. add 7 days to {warn::ilejeszczebana::%arg 1%}
  28. set {_zaile} to difference between {warn::ilejeszczebana::%arg 1%} and now
  29. kick arg 1 due to "&cDostales Ostrzezenie &4[3/3]&c. Powod: &4Cheaty&c. Zostales zbanowany na &47 dni&c!"
  30. stop
  31.  
  32. on connect:
  33. {warn::ban::%player%} was less than 7 days ago
  34. set {_zaile} to difference between {warn::ilejeszczebana::%player%} and now
  35. kick player due to "&cZostales zbanowany na &47 dni&c! Powod: &4Cheaty&c. &8Unbana otrzymasz za: &7%{_zaile}%&8."
  36. stop
Advertisement
Add Comment
Please, Sign In to add comment