11.08.2012, 19:11
PHP код:
public SyncTime()
{
new string[64];
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
{
format(string, sizeof(string), "Este ora Fix Ceasul acuma este: %d:00 Succes incontinuare!",tmphour);
BroadCast(COLOR_WHITE,string);
ghour = tmphour;
PayDay();
if (realtime)
{
SetWorldTime(tmphour);
}
for(new i=0; i<MAX_PLAYERS; i++)
{
SendClientMessage( i, YELLOW, "• In 20 secunde toate masinile se vor respawna ! •");
SetTimer("ScheduledRespawn",20000,false);
}
}
}