4 Questions
#2

first you need to make a forward for the payday

we have it here:
pawn Код:
forward PayDay();
Then on OnGameModeInit() we make a timer on 20min
pawn Код:
SetTimer("PayDay",1200000,1);
Then the forward we made first is now a public, so we fill in the public.
pawn Код:
public PayDay()
{
    for (new i; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {
            new string[64];
            GivePlayerMoney(i,2000);
            format(string, sizeof(string), "You have received your payday on $2000");
            SendClientMessage(i, COLOR, string);
            SetTimer("PayDay",1200000,1);
        }
    }
}
Untested

That should work,

That'll be it, if it dont work try deleting the timer INSIDE the PayDay callback. then it only goes one time after the server startup
Reply


Messages In This Thread
4 Questions - by DeltaAirlines12 - 23.12.2009, 20:47
Re: Questions - by Niixie - 23.12.2009, 21:00
Re: 4 Questions - by DeltaAirlines12 - 23.12.2009, 21:46
Re: 4 Questions - by Niixie - 23.12.2009, 22:10
Re: 4 Questions - by DeltaAirlines12 - 23.12.2009, 22:12
Re: 4 Questions - by DeltaAirlines12 - 24.12.2009, 16:39
Re: 4 Questions - by WThieves - 24.12.2009, 16:47
Re: 4 Questions - by WThieves - 24.12.2009, 17:00
Re: 4 Questions - by mansonh - 24.12.2009, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)