CREAMPAN0408

Untitled

Apr 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. on rightclick with compass:
  2. if name of player's tool is "&a&lHide All Players":
  3. if {cd::%player%} is not set:
  4. wait 1 tick
  5. hide players from player
  6. send "&6All players hide."
  7. play sound "ENTITY_GUARDIAN_FLOP" for player
  8. set the name of the player's tool to "&6&lShow All Players"
  9. set {cd::%player%} to true
  10. wait 3 seconds
  11. delete {cd::%player%}
  12. stop
  13. else:
  14. send "&aWait a bit."
  15. if name of player's tool is "&6&lShow All Players":
  16. if {cd::%player%} is not set:
  17. wait 1 tick
  18. reveal players to player
  19. send "&6You can see all players."
  20. play sound "ENTITY_GUARDIAN_HURT" for player
  21. set the name of the player's tool to "&a&lHide All Players"
  22. set {cd::%player%} to true
  23. wait 3 seconds
  24. delete {cd::%player%}
  25. stop
  26. else:
  27. send "&aWait a bit."
  28.  
  29. on join:
  30. if {cd::%player%} is set:
  31. delete {cd::%player%}
  32.  
  33. on chat:
  34. set {_waited} to difference between {spam.%player%.lastused} and now
  35. if {_waited} is less than 1 seconds:
  36. message "&cPlease do not spam!"
  37. cancel event
  38. stop
  39. set {spam.%player%.lastused} to now
Add Comment
Please, Sign In to add comment