bo miales to zrobic tylko w miejscu jakie ci pokazalem, z jednego bledu teraz zrobiles 2
function dajCD(p: player, v: text, t: text, s: timespan) :: boolean:
if difference between {cooldown::%{_v}%::%{_p}%} and now is smaller than {_s}:
remove difference between now and {cooldown::%{_v}%::%{_p}%} from {_s}
set {_s} to "%{_s}%"
replace all "seconds" and "second" with "s" in {_s}
replace all "minute" and "minutes" with "m" in {_s}
send "%{_t}% %{_s}%" to {_p}
return false
else:
set {cooldown::%{_v}%::%{_p}%} to now
return true
on death of player:
victim is in region "wiosna"
attacker is a player
dajCD(attacker, "%victim%", "&8 Przed następnym zabójstwem tego gracza poczekaj&7", 5 minutes) = true
give attacker 1 slime ball named "&aᴡɪᴏsᴇɴɴʏ &fᴏᴅʟᴀᴍᴇᴋ"