29.01.2011, 16:27
holy just do
That will sync the time for all players and sets the world time to the time on the clock
And I dont know where the f****** problem was with that
pawn Код:
new hour, minute;
pawn Код:
//OnGameModeInit
SetTimer("UpdateTime", 60 * 1000, true);
pawn Код:
//OnPlayerConnect
TogglePlayerClock(playerid, true);
SetPlayerTime(playerid, hour, minute);
pawn Код:
//OnPlayerSpawn
SetPlayerTime(playerid, hour, minute);
pawn Код:
forward UpdateTime();
public UpdateTime()
{
gettime(hour, minute);
for(new i; i != MAX_PLAYERS; i++) SetPlayerTime(i, hour, minute);
SetWorldTime(hour);
}
And I dont know where the f****** problem was with that