Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #czas, po jakim można się wylogować (w sekundach)
- time: 10
- #czas bana (w minutach)
- bantime: 0
- #nazwa regionu spawn
- region: spawn
- #nazwa zmiennej, ktora przechowuje lokacje spawna
- variable: {spawn}
- on damage of player:
- if attacker is a player
- if {walka.%victim%} is not set:
- send "&cJestes podczas walki! Nie mozesz sie wylogowac." to victim
- if {walka.%attacker%} is not set:
- send "&cJestes podczas walki! Nie mozesz sie wylogowac." to attacker
- set {walka.%victim%} to true
- set {walka.%attacker%} to true
- wait {@time} seconds
- send "&aNie jestes juz w walce! Mozesz sie spokojnie wylogowac." to victim
- send "&aNie jestes juz w walce! &fMozesz sie wylogowac." to attacker
- delete {walka.%victim%}
- delete {walka.%attacker%}
- on quit:
- if {walka.%player%} is set:
- kill player
- kick player due to "&cWylogowales sie podczas walki! &cDostales bana na {@bantime} min."
- set {bantime.%player%} to now
- delete {walka.%player%}
- on join:
- if {bantime.%player%} is set:
- if difference between {bantime.%player%} and now is less than {@bantime} minutes:
- kick player due to "&cWylogowales sie podczas walki! &cAby moc wejsc odczekaj jeszcze %difference between {bantime.%player%} and now% min."
- stop
- else:
- delete {bantime.%player%}
- on entering of region "{@region}"
- if {walka.%player%} is set:
- push player from {{@variable}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement