Guest User

zlodziej.sk

a guest
May 23rd, 2019
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. variables:
  2. {zl.%player%} = false
  3.  
  4. command /okradnij:
  5. trigger:
  6. loop all players in radius 5 of the player:
  7. if {zl.%loop-player%} is true:
  8. send "&6Ten gracz sie rusza! Nie mozesz go okraść!" to player
  9. stop
  10. else:
  11. send "&cUwaga okradasz gracza %loop-player% ! Poczekaj 10 sekund!" to player
  12. wait 10 seconds
  13. if {zl.%loop-players%} is true:
  14. send "&6Gracz %loop-player% sie poruszyl, okradanie nie udane!" to player
  15. stop
  16.  
  17. else:
  18. restore inventory of loop-player from {stuff.%loop-player%}
  19. set {_inv} to chest with 6 rows named "&c%loop-player%"
  20. set {_inv}'s serialized contents to {stuff.%loop-player%}
  21. send "&cUwaga okradasz gracza!" to player
  22. open {_inv} to player
  23. set {zl.%loop-player%} to false
  24.  
  25. on any movement:
  26. set {zl.%player%} to true
  27.  
  28.  
  29. on join:
  30. wait 2 ticks
  31. set {zl.%player%} to false
  32. stop
  33.  
  34.  
  35. every 15 seconds:
  36. loop all players:
  37. wait 2 ticks
  38. set {zl.%loop-player%} to false
  39. stop
  40.  
  41. every 5 seconds:
  42. wait 2 ticks
  43. set {stuff} to player's serialized inventory
Advertisement
Add Comment
Please, Sign In to add comment