Advertisement
Guest User

Czat

a guest
Apr 18th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 KB | None | 0 0
  1. #-------------------------#
  2. # Polski Skript - By Enny #
  3. #-------------------------#
  4. # czat.on - komenda /czat on
  5. # czat.off - komenda /czat off
  6. # czat.czysc - komenda /czat czysc
  7. # czat.pisanie1 - pozwala na pisanie przy wylaczonym czacie
  8. # czat.pisanie2 - pozwala na pisanie zawsze i ciągle
  9. # czat.komendy - jakie sa komendy
  10.  
  11. options:
  12. tag: &3&lSkript&7&lCrafters
  13. ilesekund: 10
  14.  
  15. variables:
  16. {czat} = true
  17.  
  18. command /czat [<text>]:
  19. trigger:
  20. if arg 1 is "on":
  21. if {czat} is false:
  22. if player has permission "czat.on":
  23. set {czat} to true
  24. broadcast ""
  25. broadcast " {@tag}"
  26. broadcast " &9Chat zostal &7Wlaczony"
  27. broadcast ""
  28. stop
  29. else:
  30. send "&4Brak: &cUprawnien"
  31. stop
  32. else:
  33. send "&7&l > &r&3Chat jest juz &r&7Wlaczony."
  34. stop
  35. if arg 1 is "off":
  36. if {czat} is true:
  37. if player has permission "czat.off":
  38. set {czat} to false
  39. broadcast ""
  40. broadcast " {@tag}"
  41. broadcast " &9Chat zostal &7Wylaczony"
  42. broadcast ""
  43. stop
  44. else:
  45. send "&4Brak: &cUprawnien"
  46. stop
  47. else:
  48. send "&7&l > &r&3Chat jest juz &r&7Wylaczony."
  49. stop
  50. if arg 1 is "czysc":
  51. if player has permission "czat.czysc":
  52. loop 98 times:
  53. broadcast " "
  54. wait 1 second
  55. broadcast " {@tag}"
  56. broadcast " &9Chat zostal &7Wyczyszczony"
  57. broadcast ""
  58. stop
  59. else:
  60. send "&4Brak: &cUprawnien"
  61. stop
  62. on chat:
  63. if {czat} is false:
  64. if player has permission "czat.pisanie1":
  65. stop
  66. else:
  67. cancel event
  68. send "&7&l > &r&3Chat jest aktualnie &r&7Wylaczony."
  69. stop
  70. else:
  71. if player has permission "czat.pisanie2":
  72. stop
  73. set {_waited} to difference between {czat.%player%.spam} and now
  74. if {_waited} is less than 5 real seconds seconds:
  75. send "&7&l > &r&3Mozesz pisac za &r&7{@ilesekund} &r&3sekund."
  76. cancel event
  77. stop
  78. set {czat.%player%.spam} to now
  79. stop
  80. on chat:
  81. replace all "kurwa" with "***" in the message
  82. replace all "kurwy" with "***" in the message
  83. replace all "chuje" with "***" in the message
  84. replace all "chuja" with "***" in the message
  85. replace all "chuj" with "***" in the message
  86. replace all "pierdolony" with "***" in the message
  87. replace all "pedal" with "***" in the message
  88. replace all "gej" with "***" in the message
  89. replace all "suka" with "***" in the message
  90. replace all "cipa" with "***" in the message
  91. replace all "pierdolona" with "***" in the message
  92. replace all "pojebalo" with "***" in the message
  93. replace all "zajebe" with "***" in the message
  94. replace all "debil" with "***" in the message
  95. replace all "zapierdole" with "***" in the message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement