26.01.2011, 01:51
My gamemode does not have a clock in it or a day, does anyone have a script for this? Or a solution. Much appreciated.
forward TimeUpdate();
new worldTime;
public OnPlayerConnect(playerid)
{
SetTimer("TimeUpdate",65009, 1);
TogglePlayerClock(playerid, 1);
return 1;
}
public TimeUpdate()
{
worldTime++;
worldTime%=24;
SetWorldTime(worldTime);
}
public OnPlayerSpawn( playerid )
{
TogglePlayerClock( playerid, 1 );
return 1;
}