Hello , Im working on a jail stick and unable to get it work , there are no errors aswell.
Code:
on damage of a player:
if attacker's tool is {@jailstick}:
if victim is a player:
if attacker has permission "police.use":
set {%attacker%.usedstick} to now
set {%attacker%jailstick.waited} to difference between {%attacker%.usedstick} and now
if {%attacker%jailstick.waited} is more than 60 seconds:
execute console command "/jail %victim% jail1 10m"
else:
message "&0[&1POLICE&0]&a You have to wait %%difference between 60 seconds and {%attacker%jailstick.waited}%% before you can use the Jail stick again"