Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {zl.%player%} = false
- command /okradnij:
- trigger:
- loop all players in radius 5 of the player:
- if {zl.%loop-player%} is true:
- send "&6Ten gracz sie rusza! Nie mozesz go okraść!" to player
- stop
- else:
- send "&cUwaga okradasz gracza %loop-player% ! Poczekaj 10 sekund!" to player
- wait 10 seconds
- if {zl.%loop-players%} is true:
- send "&6Gracz %loop-player% sie poruszyl, okradanie nie udane!" to player
- stop
- else:
- restore inventory of loop-player from {stuff.%loop-player%}
- set {_inv} to chest with 6 rows named "&c%loop-player%"
- set {_inv}'s serialized contents to {stuff.%loop-player%}
- send "&cUwaga okradasz gracza!" to player
- open {_inv} to player
- set {zl.%loop-player%} to false
- on any movement:
- set {zl.%player%} to true
- on join:
- wait 2 ticks
- set {zl.%player%} to false
- stop
- every 15 seconds:
- loop all players:
- wait 2 ticks
- set {zl.%loop-player%} to false
- stop
- every 5 seconds:
- wait 2 ticks
- set {stuff} to player's serialized inventory
Advertisement
Add Comment
Please, Sign In to add comment