20.04.2015, 14:10
Hi everyone,i would like to know how to make an decrease wanted,wich will decrease 1 star every 10 minutes,here it is what i tried,but it have a bug,it gives to all server after the timer it's finishing wanted 6..
Код:
new myTimer[MAX_PLAYERS]; On Player Connect myTimer[playerid] = SetTimerEx("Wanted", 1000 * 60 * 10, true, "i", playerid); On Player Disonnect KillTimer(myTimer[playerid]); forward Wanted(playerid); public Wanted(playerid) { SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) - 1); }