Winter__

Untitled

Jul 30th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /pcc <player>:
  2. trigger:
  3. if {Pickpocket.%player%} is true:
  4. if {Teams.InTeam::%player%} is equal to {Teams.InTeam::%command sender%}:
  5. if {PPTime::%player%} is false:
  6. set {PPTime::%player%} to true
  7. open arg 1's inventory to the player
  8. if {Pickpocket.%player%} is false:
  9. message "{@PM}" to the command sender
  10. stop
  11. else:
  12. message "{@P} You cannot open another inventory for another %{PPTime::%player%}% minutes!"
  13.  
  14. every second:
  15. loop-players:
  16. if {PPTime.%player%} is not set:
  17. set {PPTime::%player%} to now
  18. if {PPTime::%player%} was more than 3 minutes:
  19. delete {PPTime::%player%}
Advertisement
Add Comment
Please, Sign In to add comment