[Help] Change World time.
#5

What still can not? you need to add a timer.

If you have 1 second timer running already then add this:

On top of script;
Код:
new changedtime, Time;
In the function which is ran with a timer of 1 second

Код:
if(gettime() - changedtime > 6000)
{
     foreach(Player, i)
     {
          if(Time > 24) Time = 1;
          else Time++;
          SetPlayerTime(i, Time, 0);
          changedtime = gettime();
     }
}
Reply


Messages In This Thread
[Help] Change World time. - by Elanggg - 02.04.2014, 04:41
Re: [Help] Change World time. - by LocMax - 02.04.2014, 04:53
Re: [Help] Change World time. - by Elanggg - 02.04.2014, 05:09
Re: [Help] Change World time. - by Elanggg - 02.04.2014, 05:18
Re: [Help] Change World time. - by LocMax - 02.04.2014, 06:03
Re: [Help] Change World time. - by Elanggg - 02.04.2014, 07:06

Forum Jump:


Users browsing this thread: 2 Guest(s)