PayDay system
#3

i did something like that:
every one minute it will add
checkpdtimer = SetTimer("CheckPayDay", 60000, 1);

Код:
forward CheckPayDay();

public CheckPayDay()
{
	for(new i=0;i<MAX_PLAYERS;i++)
	{
		if(IsPlayerConnected(i))
       	{
			PlayerInfo[i][pPayDayTime] += 1;
			if(PlayerInfo[i][pPayDayTime] == 60)
			{
				SendClientMessage(i, COLOR_WHITE, "Pay Check test!");
			}
		}
	}
return 1;
}
Reply


Messages In This Thread
PayDay system - by PaulDinam - 26.09.2012, 18:11
Re: PayDay system - by Cypress - 26.09.2012, 18:28
Re: PayDay system - by PaulDinam - 26.09.2012, 18:30
Re: PayDay system - by Cypress - 26.09.2012, 18:35
Re: PayDay system - by PaulDinam - 26.09.2012, 18:44
Re: PayDay system - by Cypress - 26.09.2012, 18:45
Re: PayDay system - by PaulDinam - 26.09.2012, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)