payday didn't work ...
#8

You can't expect your timer to be synced with the minutes change! If you want the player to receive his exp every time the server's minutes change this is what you do:
pawn Код:
public OnGameModeInit()
{
    SetTimer("PayDay", 10, true);
}

forward PayDay();

public PayDay()
{
    new hh, mm, ss;
    gettime( hh, mm, ss );
    if(mm == 00)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            PlayerInfo[i][Exp] += 3;
        }
    }
    return 1;
}
EDIT: TOO LATE.
Reply


Messages In This Thread
payday didn't work ... - by MrTinder - 03.04.2013, 18:50
Re: payday didn't work ... - by L.Hudson - 03.04.2013, 19:01
Re: payday didn't work ... - by MrTinder - 03.04.2013, 19:04
Re: payday didn't work ... - by L.Hudson - 03.04.2013, 19:08
Re: payday didn't work ... - by MrTinder - 03.04.2013, 19:10
Re: payday didn't work ... - by L.Hudson - 03.04.2013, 19:14
Re: payday didn't work ... - by MrTinder - 03.04.2013, 19:15
Re: payday didn't work ... - by HurtLocker - 03.04.2013, 19:16

Forum Jump:


Users browsing this thread: 1 Guest(s)