Same time for all
#1

How can i make it so all players see the same world time. I have the clock on but one player sees 12:00 and another see 21:12
Reply
#2

pawn Код:
SetWorldTime(12);
You can read in wiki(https://sampwiki.blast.hk/wiki/SetWorldTime)
Reply
#3

Will this make the time keep going from day to day with everyone seeing the same time?
Reply
#4

Checkout "gl_realtime.pwn" in samp server package, filsterscripts folder.
Reply
#5

Quote:
Originally Posted by googamalugafoo
Посмотреть сообщение
Will this make the time keep going from day to day with everyone seeing the same time?
not,
you can use this:

pawn Код:
public OnGameModeInit()
{
    SetTimer("Hor", 60000*60, true);
    return 1;
}


forward Hor();
public Hor()
{

     static h, m, s;
     gettime(h, m,s);
     #pragma unused m,s
     SetWorldTime(h);
     return 1;
}
Reply
#6

Quote:
Originally Posted by =WoR=Varth
Посмотреть сообщение
Checkout "gl_realtime.pwn" in samp server package, filsterscripts folder.
Will that make it show the same time for all players
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)