17.11.2010, 11:47
pawn Код:
//at top of script
new minuteTimer;
//OnGameModeInit
minuteTimer = SetTimer("minute", 60000, true);
//OnGameModeExit
KillTimer(minuteTimer);
//Anywhere (near the other publics) - Use foreach if you know it..
forward minute();
public minute(){
for(new i = 0; i<MAX_PLAYERS; i++){
if(minute[i] => 59){
minte[i] = 0;
hour[i]++;
}else{
minute[i]++;
}
}
return 1;
}
EDIT:
sorry for messy code, im at college so i can set it up correctly.. although break it all down and it should work..