03.06.2014, 05:32
Well no its the wrong way of doing it
You gotta set timer at the time the wanted level is increased
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;
}