Resume where you stop
#5

Make a timer to decrease jail time
Example:
Код:
SetTimer("jailTimer", 1000, true);

forward jailTimer();
public jailTimer()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(PlayerInfo[i][jailTime] > 0)
		{
			PlayerInfo[i][jailTime]--;
		}
		if(PlayerInfo[i][jailTime] == 0)
		{
			// Release From jail
		}
	}
}
Reply


Messages In This Thread
Resume where you stop - by bigboy81 - 25.03.2015, 01:28
Re: Resume where you stop - by The__ - 25.03.2015, 01:30
Re: Resume where you stop - by Jefff - 25.03.2015, 01:30
Re: Resume where you stop - by bigboy81 - 25.03.2015, 01:48
Re: Resume where you stop - by X337 - 25.03.2015, 02:36

Forum Jump:


Users browsing this thread: 1 Guest(s)