Ingame world time
#4

Don't use TogglePlayerClock.
Код:
Time is not synced with other players! Time can be synced using SetPlayerTime.
Код:
//OnGameModeInit...
new hour, min, sec;
gettime(hour, min, sec);
SetWorldTime(hour);
SetTimer("TimeUp", 1000, true);
PHP код:
public TimeUp()
{
    new 
hourminsec;
    
gettime(hourminsec);;
    if(
min== && sec== 0)
    {
        
SetWorldTime(hour);
    }
    return 
1;

Reply


Messages In This Thread
Ingame world time - by fuckingcruse - 02.07.2016, 13:00
Re: Ingame world time - by Nero_3D - 02.07.2016, 13:07
Re: Ingame world time - by fuckingcruse - 02.07.2016, 13:15
Re: Ingame world time - by Dayrion - 02.07.2016, 13:34
Re: Ingame world time - by Nero_3D - 02.07.2016, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)