OnPlayerUpdate or not
#8

Ah that's what you meant then assign a variable that says that the 5 minutes timer has started in your addicted check. Let me write you an example..
pawn Код:
new addictedtimercalled = 0; // dont assign this to MAX_PLAYERS because it's checking if the timer has been called or not
forward Addicted(playerid);
forward hpreduction(playerid);
public Addicted(playerid)
{
    if(addictedtimercalled == 1) return 0;
    if(isAddict[playerid] == 1)
    {
        SetTimerEx(); // your new timer here.
        addictedtimercalled = 1;
    }
}
public hpreduction(playerid)
{
    // your health decreasing code goes here(?)
    addictedtimercalled = 0;
}
Reply


Messages In This Thread
OnPlayerUpdate or not - by Lajko1 - 30.07.2014, 10:39
Re: OnPlayerUpdate or not - by HeLiOn_PrImE - 30.07.2014, 10:42
Re: OnPlayerUpdate or not - by AIped - 30.07.2014, 10:43
Re: OnPlayerUpdate or not - by Clad - 30.07.2014, 10:44
Re: OnPlayerUpdate or not - by Lajko1 - 30.07.2014, 11:18
Re: OnPlayerUpdate or not - by DaniceMcHarley - 30.07.2014, 11:28
Re: OnPlayerUpdate or not - by Lajko1 - 30.07.2014, 11:30
Re: OnPlayerUpdate or not - by DaniceMcHarley - 30.07.2014, 11:35
Re: OnPlayerUpdate or not - by Lajko1 - 30.07.2014, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)