Guest User

Chat by LordziaK

a guest
Apr 23rd, 2016
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. options: #<<<< nie ruszaj :D
  2.  
  3. #Skript by LordziaK.
  4. #Prosze nie podszywac sie pod skript.
  5. #
  6. #PERMISSIE:
  7. # - lchat.* - permissia do wszystkiego
  8. # - lchat.pisz - pozwala pisac gdy chat jest off
  9.  
  10.  
  11. #\/ \/ \/
  12. #OPCJE
  13. #\/ \/ \/
  14.  
  15. off: &6Chat zostal &cWYLACZONY
  16. on: &6Chat zostal &aWLACZONY
  17. clear: &6Chat zostal &eWYCZYSZCZONY
  18. nochat: &cChat jest wylaczony.
  19. nopermission: &cNie masz permissi &7(lchat.*)
  20. chat-jest-juz-off: &c&nChat jest juz &4wylaczony&c&n.
  21. chat-jest-juz-on: &c&nChat jest juz&a wlaczony&c&n.
  22.  
  23. #/\ /\ /\
  24. #OPCJE
  25. #/\ /\ /\
  26.  
  27.  
  28. command /chat [<text>]:
  29. description: Skript na chat. :)
  30. aliases: lchat
  31. permission: lchat.*
  32. permission message: {@nopermission}
  33. trigger:
  34. if executor is player:
  35. if arg 1 is not set:
  36. open chest with 1 rows named "LChat" to player
  37. wait 2 ticks
  38. format slot 0 of player with 1 of 131 named "&4OFF" to run [execute player command "chat wylacz"]
  39. format slot 1 of player with 1 of 131 named "&aON" to run [execute player command "chat wlacz"]
  40. format slot 2 of player with 1 of 131 named "&6CLEAR" to run [execute player command "chat wyczysc"]
  41. format slot 8 of player with 1 of 131 named "&c&nSkript reload" to run [execute player command "sk reload chat"]
  42. if arg 1 is "wylacz":
  43. if {chat.stan} is false:
  44. send "{@chat-jest-juz-off}"
  45. stop
  46. set {chat.stan} to false
  47. broadcast "{@off}"
  48. stop
  49. if arg 1 is "wlacz":
  50. if {chat.stan} is true:
  51. send "{@chat-jest-juz-on}"
  52. stop
  53. set {chat.stan} to true
  54. broadcast "{@on}"
  55. stop
  56. if arg 1 is "wyczysc":
  57. loop 100 times:
  58. broadcast ""
  59. broadcast "{@clear}"
  60. stop
  61. on chat:
  62. if {chat.stan} is false:
  63. if player has permission "lchat.pisz" or "lchat.*":
  64. stop trigger
  65. else:
  66. cancel event
  67. send "{@nochat}"
  68. stop trigger
Advertisement
Add Comment
Please, Sign In to add comment