Advertisement
Winter__

Untitled

Jul 29th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. command /pcc <player>:
  2. trigger:
  3. if {_PickPocketer} is true:
  4. set {_timepassed} to 0
  5. set {_timeleft} to 3
  6. on right click of player:
  7. if {_timeleft} is 0:
  8. if {_timepassed} is 3:
  9. if {cannot.open:%player%} is false:
  10. set {cannot.open:%player%} to true
  11. open arg 1's inventory for the player
  12. while {_timeleft} is greater than 0:
  13. wait 1 minute
  14. add 1 to {_timepassed}
  15. subtract 1 from {_timeleft}
  16. stop
  17. if {_timepassed} is 3:
  18. set {cannot.open:%player%} to false
  19. open arg 1's inventory for the player
  20. else:
  21. message "{@P} You cannot open a player's inventory for another %{_timeleft}% minutes!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement