30.07.2014, 11:35
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;
}