How to do this?
#4

Make a timer every that runs a function every minute for example

Make a enum for player info and have two values hours,mins then

Код:
PlayerPayDayT[playerid] = SetTimerEx("PlayerPayDay", 60000, true, "d", playerid);
Then do something like this

Код:
forward PlayerPayDay(playerid);
public PlayerPayDay(playerid)
{
	if(PlayerInfo[playerid][MINS] >= 60)
	{
		// PAYCHECK STUFF
		PlayerInfo[playerid][HOURS]++;
	}
	else
	{
		PlayerInfo[playerid][MINS]++;
	}

}
Reply


Messages In This Thread
How to do this? - by Celmir - 08.03.2017, 05:04
Re: How to do this? - by Toroi - 08.03.2017, 05:38
Re: How to do this? - by iLearner - 08.03.2017, 05:38
Re: How to do this? - by JessThompson - 08.03.2017, 05:43
Re: How to do this? - by Celmir - 08.03.2017, 06:27

Forum Jump:


Users browsing this thread: 1 Guest(s)