29.06.2011, 16:06
This is what I meant:
PHP код:
forward hungerTimer();
public OnGameModeInit() {
SetTimer("hungerTimer", 120000, 1);
return 0;
}
public hungerTimer() {
for(new i; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
Thirsty[i]++;
Hungry[i]++;
}
}
return 0;
}