Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #============================#
- #Autor skryptu: RaiZeN #
- #Drugi nick autora: Hardcor23#
- #Wersja skryptu: 0.2 #
- #============================#
- variables:
- {walka.%player%} = false
- {ban.%player%} = false
- options:
- #Tag skryptu, ktory bedzie wyswietlal sie przed wiadomosciami
- tag: &8[&4Anti&6Relog&8]&6
- #Czas w sekundach po ktorych gracz bedzie mogl sie bezpiecznie wylogowac
- czas_walki: 30
- on damage of player:
- if {walka.%victim%} is false:
- set {walka.%attacker%} to true
- set {walka.%victim%} to true
- send "{@tag} Jestes w walce! Lepiej sie nie wylogowywuj!" to attacker
- send "{@tag} Jestes w walce! Lepiej sie nie wylogowywuj!" to victim
- wait {@czas_walki} seconds
- set {walka.%attacker%} to false
- set {walka.%victim%} to false
- send "{@tag} Juz nie jestes w walce. Mozesz sie wylogowac." to attacker
- send "{@tag} Juz nie jestes w walce. Mozesz sie wylogowac." to victim
- on quit:
- if {walka.%player%} is true:
- clear the player's inventory
- set {walka.%player%} to false
- kill player
- on command:
- if {walka.%player%} is true:
- cancel event
- send "{@tag} Nie mozesz uzywac komend podczas walki!"
Advertisement
Add Comment
Please, Sign In to add comment