Timer...
#2

Well no its the wrong way of doing it
You gotta set timer at the time the wanted level is increased
pawn Код:
timid[MAX_PLAYERS];//on top
/*===================================*/

//this when player wanted level is increased
KillTimer(timid[playerid]);
timid[playerid]= SetTimerEx("ReduceWantedLevel", 60000, false, "i", playerid);

/*=====================================*/

//the public function to reduce it
forward ReduceWantedLevel(playerid);
public ReduceWantedLevel(playerid)
{
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)-1);
return 1;
}
Reply


Messages In This Thread
Timer... - by Johnson_Brooks - 03.06.2014, 05:25
Re: Timer... - by BroZeus - 03.06.2014, 05:32
Re: Timer... - by Dignity - 03.06.2014, 05:33
Re: Timer... - by kamiliuxliuxliux - 03.06.2014, 05:35
Re: Timer... - by BroZeus - 03.06.2014, 05:36
Re: Timer... - by Dignity - 03.06.2014, 05:41
Re: Timer... - by Johnson_Brooks - 03.06.2014, 05:43

Forum Jump:


Users browsing this thread: 1 Guest(s)