Sync World Time
#16

full xD

Код:
// top
new Minute=8;
new Second;

// on filterscript/gamemode init
SetTimer("ClockSync", 1000, 1);

// OnPlayerConnect
TogglePlayerClock(playerid, 1);

// function

forward ClockSync();
public ClockSync()
{
  Second++;
  if(Second == 60)
  {
    Minute++;
    Second = 0;
  }
  if(Minute >= 24) Minute = 0;
  for(new i; i<GetMaxPlayers(); i++) SetPlayerTime(i, Minute, Second);
  new string[64];
  format(string, sizeof(string), "The time [%d] [%d]", Minute, Second);
  print(string); // testing only.
  return 1;
}
Reply


Messages In This Thread
Sync World Time - by warlost - 20.01.2008, 07:32
Re: Sync World Time - by warlost - 20.01.2008, 07:49
Re: Sync World Time - by Khaled - 20.01.2008, 07:55
Re: Sync World Time - by warlost - 20.01.2008, 08:00
Re: Sync World Time - by cmg4life - 20.01.2008, 08:29
Re: Sync World Time - by warlost - 20.01.2008, 20:44
Re: Sync World Time - by XGh0stz - 21.01.2008, 02:21
Re: Sync World Time - by Pghpunkid - 21.01.2008, 04:03
Re: Sync World Time - by XGh0stz - 21.01.2008, 18:41
Re: Sync World Time - by cmg4life - 21.01.2008, 18:49
Re: Sync World Time - by XGh0stz - 21.01.2008, 19:17
Re: Sync World Time - by warlost - 22.02.2008, 05:51
Re: Sync World Time - by bonas - 17.10.2008, 19:10
Re: Sync World Time - by Rizard - 31.03.2009, 18:00
Re: Sync World Time - by Vegeta - 05.06.2009, 11:49
Re: Sync World Time - by Jefff - 05.06.2009, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)