Jailtimer
#1

Код:
new jailtimer;
Код:
KillTimer(jailtimer);
Код:
jailtimer = SetTimer("JailTi", 1000, 1);
Код:
forward JailTi();
Код:
public JailTi()
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
  	if (PlayerInfo[i][pJailed] == 1)
  	{
    	new string[128];
    	format(string, sizeof(string),"~n~~n~~n~~n~~n~~n~~n~~h~~h~Jail Time: ~h~~h~%d seconds",PlayerInfo[i][pJailTime] - 1);
    	GameTextForPlayer(i, string, 5000000, 3);
		}
	}
}
the gametext doesen't appear when I'm in jail.
Reply


Messages In This Thread
Jailtimer - by Razvann - 09.01.2010, 15:45
Re: Jailtimer - by SiJ - 09.01.2010, 15:47
Re: Jailtimer - by Razvann - 09.01.2010, 15:53
Re: Jailtimer - by SiJ - 09.01.2010, 15:56
Re: Jailtimer - by Razvann - 09.01.2010, 16:07
Re: Jailtimer - by x-unit - 21.01.2010, 18:13
Re: Jailtimer - by Razvann - 21.01.2010, 18:52

Forum Jump:


Users browsing this thread: 1 Guest(s)