SetWorldTime is not working [HELP]
#4

Quote:
Originally Posted by admantis
Посмотреть сообщение
Ye but im working on 0.3b now not 0.3c
ow...try this...
pawn Код:
public OnGameModeInit()
{
    WorldTime = SetWorldTime(random(24));// this before the timer
    SetTimer("SetHour", 5000, 1); // 3600000 = 1 hour in ms - Time was set to 5000 ms for testing purposes.
}
forward SetHour()
public SetHour()
{
    if (WorldTime == 24) WorldTime = 0;
    SetWorldTime((WorldTime)+1);
    return SetTimer(SetHour,"5000",false); // if its doesn't work remove this line and try again...
    // + i don't this its gonna work cuz i think that OnGameModeInit() is only when its loads the GM...
   //just use gl_realtime that comes with the server files... this is will change the time every one hour(in game)
}
Reply


Messages In This Thread
SetWorldTime is not working [HELP] - by admantis - 15.12.2010, 01:47
Re: SetWorldTime is not working [HELP] - by XePloiT - 15.12.2010, 02:05
Re: SetWorldTime is not working [HELP] - by admantis - 15.12.2010, 02:06
Re: SetWorldTime is not working [HELP] - by XePloiT - 15.12.2010, 02:16
Respuesta: SetWorldTime is not working [HELP] - by MaRcOsWeB - 15.12.2010, 02:18
Re: Respuesta: SetWorldTime is not working [HELP] - by XePloiT - 15.12.2010, 02:27
Re: SetWorldTime is not working [HELP] - by Scenario - 15.12.2010, 02:56
Re: SetWorldTime is not working [HELP] - by Joe Staff - 15.12.2010, 04:10

Forum Jump:


Users browsing this thread: 1 Guest(s)