Guest User

Untitled

a guest
May 25th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 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. open the loop-player's inventory for the player
  19. send "&cUwaga okradasz gracza!" to player
  20. set {zl.%loop-player%} to false
  21.  
  22. on any movement:
  23. if {zl.%player%} is true:
  24. stop
  25. else:
  26. set {zl.%player%} to true
  27.  
  28. on join:
  29. wait 2 ticks
  30. set {zl.%player%} to false
  31. stop
  32.  
  33.  
  34. every 15 seconds:
  35. loop all players:
  36. if {zl.%loop-player%} is true:
  37. wait 2 ticks
  38. set {zl.%loop-player%} to false
  39. stop
  40. else:
  41. stop
Advertisement
Add Comment
Please, Sign In to add comment