15.02.2015, 20:03
Hi there, basically under OnPlayerTakeDamage I set a timer for the bleedout system, but of course, each time they're hit the timer starts again. What would be the simplest way to make sure it only runs once? I don't mean repeating, I mean that if they're hit once and they continue to be hit, I'd like the timer to not restart.
I did it like this and never thought it through, didn't quite work.
I did it like this and never thought it through, didn't quite work.
pawn Код:
if(TorsoBl[playerid] > 0 || GroinBl[playerid] > 0 || LArmBl[playerid] > 0 || RArmBl[playerid] > 0 || LLegBl[playerid] > 0|| LLegBl[playerid] > 0)
{
BleedingTime[playerid] = SetTimerEx("BleedingTimer", 120000, true, "i", playerid);
}