Payday/Paycheck system ?
#2

Top of script

Код:
forward Paycheck(); // setting a timer for paycheck
OnGameModeInit:

Код:
SetTimer("Paycheck", 3600000, true); // activating a timer
Now public for it:

Код:
public Paycheck()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
		if(IsPlayerConnected(i))
		{
			new rand = random(1000);
			GivePlayerMoney(i, rand);
        	        SendClientMessage(i, -1, "You get your paycheck");
    	}
	}
	return 1;
}
That's it
Reply


Messages In This Thread
Payday/Paycheck system ? - by anou1 - 01.02.2014, 17:29
Re: Payday/Paycheck system ? - by SpaMaster - 01.02.2014, 17:42
Re: Payday/Paycheck system ? - by anou1 - 01.02.2014, 17:48
Re: Payday/Paycheck system ? - by anou1 - 01.02.2014, 21:10
Re: Payday/Paycheck system ? - by erminpr0 - 01.02.2014, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)