ArtzifyHD

Freeze

Aug 7th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. #
  2. # Freeze 1.0.0
  3. # Player freeze script made by oskar3123
  4. #
  5. # /freeze <player> | toggles freeze state on the specified player
  6. #
  7.  
  8. variables:
  9. {freeze.maincolor} = "&3"
  10. {freeze.seccolor} = "&b"
  11. {freeze.errorcolor} = "&c"
  12. {freeze.%player%.value} = false
  13.  
  14. on any movement:
  15. {freeze.%player%.value}
  16. cancel the event
  17. set {_checktime} to now
  18. subtract 2 seconds from {_checktime}
  19. {freeze.%player%.lastused} is less than {_checktime}
  20. message "&4&lYou were frozen by %player% for hacks, do not logout or you will be permanently banned"
  21. set {freeze.%player%.lastused} to now
  22.  
  23. on command:
  24. {freeze.%player%.value}
  25. cancel the event
  26. message "&4&lYou were frozen by %player% for hacks, do not logout or you will be permanently banned"
  27.  
  28. command /freeze [<player>]:
  29. trigger:
  30. arg 1 is not set:
  31. message "&cWrong syntax! Usage: /freeze <player>"
  32. stop
  33. {freeze.%arg 1%.value} is not set:
  34. set {freeze.%arg 1%.value} to false
  35. player is arg 1:
  36. player does not have permission "freeze.freeze":
  37. message "&cYou don't have permission to do that"
  38. stop
  39. message "&4&lYou cant freeze yourself"
  40. stop
  41. not {freeze.%arg 1%.value}:
  42. player does not have permission "freeze.freeze":
  43. message "&bYou don't have permission to do that"
  44. stop
  45. set {freeze.%arg 1%.value} to true
  46. set {_templastused} to now
  47. subtract 1 hour from {_templastused}
  48. set {freeze.%arg 1%.lastused} to {_templastused}
  49. message "&bYou froze %{freeze.seccolor}%%arg 1%"
  50. message "&4&lYou were frozen by %player% for hacks, do not logout or you will be permanently banned" to arg 1
  51. stop
  52. player does not have permission "freeze.unfreeze":
  53. message "&aYou don't have permission to do that"
  54. stop
  55. set {freeze.%arg 1%.value} to false
  56. set {_templastused} to now
  57. subtract 1 hour from {_templastused}
  58. set {freeze.%arg 1%.lastused} to {_templastused}
  59. message "&bYou unfroze %{freeze.seccolor}%%arg 1%"
  60. message "&bYou have been unfrozen by %player%" to arg 1
Add Comment
Please, Sign In to add comment