02.07.2016, 13:34
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 hour, min, sec;
gettime(hour, min, sec);;
if(min== 0 && sec== 0)
{
SetWorldTime(hour);
}
return 1;
}