Clock problem
#3

If you're using a Gamemode, use OnGameModeInit(), otherwise use OnFilterScriptInit()
This is your first code:
pawn Код:
public OnGameModeInit() //Or OnFilterScriptInit() if you're using a filterscript.
{
    SetTimer("RenewTime", 1000, true);
    return 1;
}
Place this at the bottom of your script. (Preferably)
pawn Код:
forward RenewTime();
public RenewTime()
{
    new hour, minute, second;
    gettime(hour, minute, second);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            SetPlayerTime(i, hour, minute);
        }
    }
    return 1;
}
I'm assuming this is what you're looking for, but I can't be too sure, because you haven't explained very well.
Reply


Messages In This Thread
Clock problem - by AwP_sTyLE - 11.09.2012, 06:55
Re: Clock problem - by Audiophr3ak - 11.09.2012, 07:00
Re: Clock problem - by clarencecuzz - 11.09.2012, 07:09
Re: Clock problem - by AwP_sTyLE - 11.09.2012, 07:34
Re: Clock problem - by AwP_sTyLE - 11.09.2012, 07:49
Re: Clock problem - by clarencecuzz - 11.09.2012, 07:56
Re: Clock problem - by AwP_sTyLE - 11.09.2012, 08:07
Re: Clock problem - by clarencecuzz - 11.09.2012, 08:20
Re: Clock problem - by AwP_sTyLE - 11.09.2012, 08:40
Re: Clock problem - by clarencecuzz - 11.09.2012, 08:48

Forum Jump:


Users browsing this thread: 1 Guest(s)