09.07.2011, 13:47
However, the /heal command checks the players life. If he had more than 99 HP, you cant heal him as a medic.
The command then triggers the timer "HealStep1" from which in turn triggers "HealStep2" from, as in a loop. But he heals continues indefinitely.
These are the lines that are not raised any:
He don't check, whether the player has more life than 99, only if he has less than 100.(it's in a timer)
You know what i mean now?
The command then triggers the timer "HealStep1" from which in turn triggers "HealStep2" from, as in a loop. But he heals continues indefinitely.
These are the lines that are not raised any:
pawn Код:
if (health > 99.0)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"* You were fully healed");
KillTimer(HealStep1(playerid));
KillTimer(HealStep2(playerid));
return 1;
}
You know what i mean now?