The Death Timer!!
#4

Hobod provided a better solution than you did.

Working from his solution:
pawn Код:
forward Death(playerid);
public Death(playerid)
{
       new Float:Health;
       GetPlayerHealth(playerid, Health);
       SetPlayerHealth(playerid, Health-5)
       if(Health-5 <= 0) KillTimer(GetPVarInt(playerid, "timerDeath"));
}
Then to set the timer in action:
pawn Код:
SetTimerEx("Death", 1000, true, "i", playerid);
Reply


Messages In This Thread
The Death Timer!! - by Swiftz - 13.05.2011, 15:42
Re: The Death Timer!! - by Hobod - 13.05.2011, 15:44
Re: The Death Timer!! - by [SU]Balli - 13.05.2011, 15:51
Re: The Death Timer!! - by __ - 13.05.2011, 15:54
Re: The Death Timer!! - by Laronic - 13.05.2011, 15:59
Re: The Death Timer!! - by __ - 13.05.2011, 16:01
Re: The Death Timer!! - by Laronic - 13.05.2011, 16:03
Re: The Death Timer!! - by Swiftz - 13.05.2011, 16:12
Re: The Death Timer!! - by Laronic - 13.05.2011, 16:14
Re: The Death Timer!! - by Swiftz - 13.05.2011, 16:19

Forum Jump:


Users browsing this thread: 1 Guest(s)