04.07.2012, 05:48
Sorry, I forgot to mention that the function's name and variable name would conflict with each other and it has to be a global variable so having "new Jail[MAX_PLAYERS];" then "Jail[targetid] = SetTimerEx(..." would work. Also make sure you kill the timer with that ID. Another thing, go to your OnPlayerDisconnect and put this:
So if the player disconnects while in jail, it would automatically kill the timer.
pawn Код:
if(jailed[playerid] == 1)KillTimer(Jail[playerid]);