Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on entering of region "bparena":
- set {wgrze::%player%} to true
- on exiting of region "pbarena":
- set {wgrze::%player%} to false
- every 4 seconds:
- if {wgrze::%player%} is true:
- loop all players:
- execute console command "/detector %loop-player%"
- stop
- command detector <player>:
- trigger:
- if sender is console:
- if {wgrze::%player%} is true:
- if {skan::%player-argument%} is true:
- #send "test2-1" to player-argument
- #send "%x-location of player-argument%" to player-argument
- stop
- else:
- set {skan::%player-argument%} to true
- set {_locx%player-argument%} to x-location of player-argument
- set {_licznik%player-argument%} to 0
- #send "%{_locx%player-argument%}%" to player-argument
- loop every 1 second:
- if {wgrze::%player} is true
- if {_locx%player-argument%} is x-location of player-argument:
- if {_locx%player-argument%} is x-location of player-argument:
- if {_licznik%player-argument%} <= 10:
- #send "test" to player-argument
- add 1 to {_licznik%player-argument%}
- if {_licznik%player-argument%} = 5:
- send "&4&lTańcz! Inaczej zostaniesz usunięty z areny!" to player-argument
- wait 28 ticks
- else:
- delete {skan::%player-argument%}
- wait 1 tick
- kick player-argument due to "&4&lDziwne zachowanie na parkiecie (Cheaty?)"
- stop
- #make player-argument execute command "bp leave"
- #wait 20 tick
- #make player-argument execute command "bp join arena1"
- #send "&4&lZostałeś wyrzucony z BlockParty za dziwne zachowanie (Cheaty?)" to player-argument
- else:
- delete {skan::%player-argument%}
- stop
- delete {skan::%player-argument%}
- stop
- on quit:
- delete {skan::%player%}
- on script load:
- delete {skan::*}
- clear {skan::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement