Guest User

Untitled

a guest
Jun 13th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. #Nazwa: WERTSKRIPT_CHAT
  2. #Wersja: 1.0 BETA
  3. #Autor: WERTEŁ
  4. #Regulamin:
  5. #Zakaz podszywania się pod autora
  6. #Zakaz sprzedawania skryptu
  7. #Zakaz edycji kodu skryptu (NIE DOTYCZY WIADOMOŚCI)
  8.  
  9. variables: #Nie ruszaj
  10. {slowmode} = true
  11. {spam.%player%} = true
  12.  
  13.  
  14. #Wiadomości i ustawienia czasu
  15. options:
  16. Join: &7%player% &cWbil na serwer #Wiadomosc przy wejsciu na serwer
  17. Leave: &7%player% &cOpuscil nasz serwer #Wiadomosc przy wyjsciu z serwera
  18. slowmodetime: 5 #Co ile sekund gracz moze pisac ustaw 0 jesli bez limitu
  19. chatc: &7Chat zostal wyczyszczony przez: &c%player%
  20. bc: &7[&cTwojSerwer.pl&7] #Tag bc (ogloszenia)
  21.  
  22. on join:
  23. set join message to "{@Join}"
  24.  
  25. on quit:
  26. set leave message to "{@Leave}"
  27.  
  28. command /bc [<text>]:
  29. permission: WERTSKRIPT.CHAT
  30. trigger:
  31. broadcast "{@bc} &7%coloured arg%"
  32.  
  33. on chat:
  34. replace all "A" with "a" in the message
  35. replace all "B" with "b" in the message
  36. replace all "C" with "c" in the message
  37. replace all "D" with "d" in the message
  38. replace all "E" with "e" in the message
  39. replace all "F" with "f" in the message
  40. replace all "G" with "g" in the message
  41. replace all "H" with "h" in the message
  42. replace all "I" with "i" in the message
  43. replace all "J" with "j" in the message
  44. replace all "K" with "k" in the message
  45. replace all "I" with "i" in the message
  46. replace all "L" with "l" in the message
  47. replace all "M" with "m" in the message
  48. replace all "N" with "n" in the message
  49. replace all "O" with "o" in the message
  50. replace all "P" with "p" in the message
  51. replace all "R" with "r" in the message
  52. replace all "S" with "s" in the message
  53. replace all "T" with "t" in the message
  54. replace all "U" with "u" in the message
  55. replace all "W" with "w" in the message
  56. replace all "Y" with "y" in the message
  57. replace all "Z" with "z" in the message
  58. replace all "X" with "x" in the message
  59. stop
  60.  
  61. on chat:
  62. if {slowmode} is true:
  63. if player don't have permission "WERTSKRIPT.CHAT":
  64. if {spam.%player%} is true:
  65. cancel event
  66. send "&7Nastepna wiadomosc bedziesz mogl wyslac za: &c{@slowmodetime} &7sekund!"
  67. set {spam.%player%} to true
  68. wait {@slowmodetime} seconds
  69. set {spam.%player%} to false
  70. stop
  71.  
  72. command /chat [<text>]:
  73. permission: WERTSKRIPT.CHAT
  74. permission message: &cNie masz dostepu do tej komendy
  75. trigger:
  76. if arg 1 is not set:
  77. send "&7Wszyskie komendy znajdziesz pod: &c/chat pomoc"
  78. stop
  79. if arg 1 is "pomoc":
  80. send "&7/chat c &8- &cCzysci chat."
  81. send "&7/chat info &8- &cInformacje o skripcie."
  82. stop
  83. if arg 1 is "c" or "wyczysc":
  84. loop 100 times:
  85. broadcast ""
  86. broadcast "{@chatc}"
  87. stop
  88. if arg 1 is "info":
  89. send "&7Nazwa: &cWERTSKRIPT_CHAT"
  90. send "&7Wersja: &c1.0 BETA"
  91. send "&7Autor: &cWERTEL"
  92. stop
Advertisement
Add Comment
Please, Sign In to add comment