every 1 second:
set {_p} to player
if {cooldowntime::%{_p}%} is not 0:
remove 1 from {cooldowntime::%{_p}%}
command /kocham [<player>]:
trigger:
if arg 1 is set:
set {_p} to player
if {cooldowntime::%{_p}%} is 0:
send "Gracz %player% kocha gracza %arg-1%" to all players
set {cooldowntime::%{_p}%} to 60
send "Musisz poczekac jeszcze %{cooldowntime::%{_p}%}% sekund"
if arg 1 is player's nickname:
send "Nie mozesz kochac samego siebie"
if arg 1 is not set:
send "Podaj osobe ktora kochasz"