/jail command help
#5

Under OnPlayerSpawn
pawn Code:
if(JailTimer[playerid] > 0) //do your jail timer here if > 0
    {
     PInfo[playerid][pJail] = 1; //send player to jail
    }
that if you already save jail timer when player quit

else

pawn Code:
if(PInfo[playerid][pJail] == 1)
{
   SetPlayerPos(playerid, -1346.5848,1323.8483,2.4516); //set player post in LS jail
   JailTimer[playerid] = SetTimerEx("Unjail",second*1000, false, "i", playerid); //start the timer to unjail
}
Don't forget to save if player jailed in OnPlayerDisconnect
Reply


Messages In This Thread
/jail command help - by 9noober - 04.11.2014, 14:35
Re: /jail command help - by Runn3R - 04.11.2014, 14:37
Re: /jail command help - by HY - 04.11.2014, 14:39
Re: /jail command help - by Runn3R - 04.11.2014, 14:43
Re: /jail command help - by AmirRFCNR - 04.11.2014, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)