05.06.2009, 12:45
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; }