23.02.2010, 09:37
Ok, I want my clock to have a automatic day/night loop (I think it is by default)
When i spawn, my clock shows 0, when it should show something else because i dont spawn directly after the server starts >_>
And when i die, then spawn again, the clock has gone forward by 12 hours, how to prevent this?
When i spawn, my clock shows 0, when it should show something else because i dont spawn directly after the server starts >_>
And when i die, then spawn again, the clock has gone forward by 12 hours, how to prevent this?
pawn Код:
public OnGameModeInit()
{
SetWorldTime(0);
}
public OnPlayerSpawn(playerid)
{
TogglePlayerClock(playerid, true);
return 1;
}