08.04.2011, 07:44
Код:
new chour; new cminutes; //ongminit() SetTimer("Clock",1000,true); //somewhere forward Clock(); public clock() { cminutes++; if(cminutes == 60) { cminutes=0; chour++; if(chour == 24) { chour=0; } } SetWorldTime(chour); for(new i;i<MAX_PLAYERS;i++) { SetPlayerTime(i,chour,cminutes); } return 1; }