need help with jailtimer
#4

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);
Reply


Messages In This Thread
need help with jailtimer - by MarkNelson - 26.07.2018, 19:26
Re: need help with jailtimer - by Florin48 - 26.07.2018, 19:42
Re: need help with jailtimer - by MarkNelson - 26.07.2018, 19:45
Re: need help with jailtimer - by Florin48 - 26.07.2018, 19:51
Re: need help with jailtimer - by MarkNelson - 26.07.2018, 19:59
Re: need help with jailtimer - by Florin48 - 26.07.2018, 20:04
Re: need help with jailtimer - by MarkNelson - 26.07.2018, 20:07
Re: need help with jailtimer - by LazzyBoy - 27.07.2018, 00:59
Re: need help with jailtimer - by MarkNelson - 27.07.2018, 01:29
Re: need help with jailtimer - by LazzyBoy - 27.07.2018, 01:57

Forum Jump:


Users browsing this thread: 2 Guest(s)