Jail timer command problem.
#5

Put this OnPlayerUpdate public
Код:
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(JailTime[i] > 1)
{
	            //Timer
	            format(string,sizeof(string),"Total Jailtime: %d",JailTime[i]);
	            GameTextForPlayer(playerid,JailTime[i],5);
	            
	            JailTime[i] --;
}
			if(JailTime[i] == 1)
			{
			    format(string,sizeof(string),"[JAIL] {FFFFFF}%s(%d) has been released from jail. {00FF00}[Served his time]",pname,i);
			    SendClientMessageToAll(COLOR_YELLOW,string);

				TotalJailTime[i] =0;
				JailTime[i] =0;
				
				SetPlayerPos(i,225.8451,112.8976,1003.2188);
				SetPlayerFacingAngle(i,1.0816);
				SetCameraBehindPlayer(i);
				SetPlayerHealth(i,100);
				SetPlayerInterior(i,10);
				
			}
}
Hope it works for you
feel free to edit it
Reply


Messages In This Thread
Jail timer command problem. - by efrim123 - 08.10.2013, 19:45
Re: Jail timer command problem. - by efrim123 - 08.10.2013, 20:06
Re: Jail timer command problem. - by Jefff - 08.10.2013, 20:10
Re: Jail timer command problem. - by efrim123 - 08.10.2013, 20:16
Re: Jail timer command problem. - by iFiras - 08.10.2013, 20:28
Re: Jail timer command problem. - by efrim123 - 08.10.2013, 20:34
Re: Jail timer command problem. - by efrim123 - 08.10.2013, 20:41
Re: Jail timer command problem. - by efrim123 - 08.10.2013, 21:12
Re: Jail timer command problem. - by -Prodigy- - 08.10.2013, 21:17
Re: Jail timer command problem. - by efrim123 - 08.10.2013, 22:02

Forum Jump:


Users browsing this thread: 1 Guest(s)