if(cmd == "heal")
{
local hp = player.Health;
if(hp == 100) MessagePlayer("[#FF3636]Error - [#8181FF]Use this command when you have less than 100% hp !", player);
else {
player.Health = 100.0;
EMessage("[#FFFF81]---> " + player.Name + " have been healed !");
}
}
i wanna add here 5 sec timer plus player not move for 5 sec
{
local hp = player.Health;
if(hp == 100) MessagePlayer("[#FF3636]Error - [#8181FF]Use this command when you have less than 100% hp !", player);
else {
player.Health = 100.0;
EMessage("[#FFFF81]---> " + player.Name + " have been healed !");
}
}
i wanna add here 5 sec timer plus player not move for 5 sec