jan_kk

SGM

Jan 30th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. command /sgm [<text>]:
  2. trigger:
  3. if player has permission "skript.sgm":
  4. if arg 1 is not set:
  5. if player's gamemode is survival:
  6. set player's gamemode to creative
  7. send "&9&l>> &7Ustawiono tryb &4Kreatywny &7dla &4%player%" to all ops
  8. stop
  9. if player's gamemode is creative:
  10. set player's gamemode to survival
  11. send "&9&l>> &7Ustawiono tryb &4Przetrwanie &7dla &4%player%" to all ops
  12. stop
  13. if player's gamemode is adventure:
  14. set player's gamemode to creative
  15. send "&9&l>> &7Ustawiono tryb &4Kreatywny &7dla &4%player%" to all ops
  16. stop
  17. else:
  18. set {_} to "%arg 1%" parsed as player
  19. if {_} is offline:
  20. send "&4Nie ma takiego gracza!"
  21. stop
  22. if {_}'s gamemode is survival:
  23. set {_}'s gamemode to creative
  24. send "&9&l>> &7Ustawiono tryb &4Kreatywny &7dla &4%{_}%" to all ops
  25. stop
  26. if {_}'s gamemode is creative:
  27. set {_}'s gamemode to survival
  28. send "&9&l>> &7Ustawiono tryb &4Przetrwanie &7dla &4%{_}%" to all ops
  29. stop
  30. if {_}'s gamemode is adventure:
  31. set {_}'s gamemode to creative
  32. send "&9&l>> &7Ustawiono tryb &4Kreatywny &7dla &4%{_}%" to all ops
  33. stop
  34. else:
  35. send "&4Nie masz uprawnien!"
Advertisement
Add Comment
Please, Sign In to add comment