How to make a player slowly loose health?
#9

You would need to assign the timer to a variable in order to kill it.

Example:
pawn Код:
new MyTimer; //At the top of your script.

public OnGameModeInit()
{
    MyTimer = SetTimerEx("LooseHealth", 3000, true, "i", playerid);
    //OTher stuff...
    return 1;
}

//Where you want to kill the timer...
KillTimer(MyTimer);
//Other stuff...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)