Advertisement
Guest User

Kamax

a guest
Feb 22nd, 2020
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. on join:
  2. if {%player%::tecza} is not set:
  3. set {%player%::tecza} to false
  4.  
  5. on chat:
  6. if {%player%::tecza} is true:
  7. set {_n} to "%player's name%"
  8. set {_l} to length of {_n}
  9. set {_s} to ""
  10. loop {_l} times:
  11. set {_i} to {_l} - (loop-number)
  12. set {_i} to {_i} + 1
  13. set {_k::%{_i}%} to last character of {_n}
  14. set {_n} to {_i}-1 first characters of {_n}
  15. loop {_l} times:
  16. set {_r} to "&a" or "&b" or "&c" or "&d" or "&e" or "&3" or "&5" or "&6" or "&9"
  17. set {_s::%loop-number%} to colored "%{_r}%%{_k::%loop-number%}%"
  18. set {_s} to "%{_s}%%{_s::%loop-number%}%"
  19. set {_d} to "%player's display name%"
  20. replace all "%player's name%" with {_s} in {_d}
  21. set player's display name to {_d}
  22.  
  23. command /teczowy:
  24. trigger:
  25. if player has permission "teczowy.nick":
  26. if {%player%::tecza} is true:
  27. set {%player%::tecza} to false
  28. send "&9CHAT &8> &7Wylaczyles &ateczowy nick&7!"
  29. else:
  30. set {%player%::tecza} to true
  31. send "&9CHAT &8> &7Wlaczyles &ateczowy nick&7!"
  32. else:
  33. send "&cNie masz dostepu do tej komendy!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement