26.07.2018, 19:51
try not to create timers when you put it in jail and when seconds are greater than -1.
Код:
if(AccData[playerid][JailDuration] > -1) { if( killedbypd[playerid] ) // Didn't evade, Already in jail { killedbypd[playerid] = false; } else { // Jail the player injail[playerid] = 1; SendClientMessage(playerid, COLOR_FREEROAM, "You'll have to finish your jail time"); SetPlayerWantedLevel(playerid, 0); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid, 264.3227,81.6192,1001.0391); SetPlayerFacingAngle(playerid, 296.0341); new string[80]; format(string, sizeof(string), "Anti-Evade: %s has been jailed for %d seconds!", GetName(playerid), AccData[playerid][JailDuration]); SendClientMessageToAll(COLOR_POLICE, string); jailtimer[playerid] = SetTimerEx("jail", 1000, true, "i", playerid);