VvSB7Y9C
Język: Skript
|
Autor: Anonimowy
on first join: set {ochrona::czas::%player%} to now while player is online: if {ochrona::czas::%player%} is not set: exit loop if difference between {ochrona::czas::%player%} and now is greater than or equal to 3 minutes: clear {ochrona::czas::%player%} remove player from {ochrona::gracze::*} send "&cTwoja poczatkowa ochrona sie skonczyla, miej sie na bacznosci i powodzenia!" to player exit loop wait 1 second on join: if {ochrona::czas::%player%} is not set: stop while player is online: if {ochrona::czas::%player%} is not set: exit loop if difference between {ochrona::czas::%player%} and now is greater than or equal to 3 minutes: remove player from {ochrona::gracze::*} clear {ochrona::czas::%player%} send "&cTwoja poczatkowa ochrona sie skonczyla, miej sie na bacznosci i powodzenia!" to player exit loop wait 1 second command /ochronawylacz: trigger: if {ochrona::czas::%player%} is not set: send "&cNie posiadasz ochrony poczatkowej!" to player stop clear {ochrona::czas::%player%} send "&cWylaczyles swa poczatkowa ochrone, miej sie na bacznosci i powodzenia!" to player on damage of player: if attacker is not a player: stop if {ochrona::czas::%victim%} is not set: stop cancel event send "&cTen gracz posiada poczatkowa ochrone!" to attacker