starkraft2001

Untitled

Feb 8th, 2015
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. #####################################
  2. #Autor: PanDiament #
  3. #Wersja: 1.0 #
  4. #Skype jak sa problemy olsson.boss #
  5. #####################################
  6.  
  7. variables:
  8. {chat} = on
  9. on chat:
  10. if {chat} is off:
  11. if player doesn't have permission "admin.chat":
  12. cancel event
  13. send "&6&l[&4&lChat&6&l] &6&lChat zostal Wloczony przez &4&l%player%"
  14. else:
  15. set message to "%message%"
  16. command /chat <text>:
  17. trigger:
  18. if player has permission "admin.chat":
  19. if arg is "on":
  20. if {chat} is off:
  21. set {chat} to on
  22. broadcast "&6&l[&4&lChat&6&l] &6&lChat zostal Wlaczony przez &4&l%player%"
  23. else:
  24. send "&7Chat jest wlaczony wpisz &a/chat off&7, aby go wylaczyc"
  25. if arg is "off":
  26. if {chat} is on:
  27. set {chat} to off
  28. broadcast "&6&l[&4&lChat&6&l] &6&lChat zostal Wloczony przez &4&l%player%"
  29. else:
  30. send "&7Chat jest wylaczony wpisz &a/chat on&7, aby go wlaczyc"
  31. if arg is "cc" or "clear":
  32. loop 100 times:
  33. broadcast ""
  34. broadcast "&6&l[&4&lChat&6&l] &6&lChat zostal Wyczyszczony przez &4&l%player%"
  35. else:
  36. send "&cBrak uprawnien"
Advertisement
Add Comment
Please, Sign In to add comment