07.01.2011, 19:37
Код:
forward energytimer(); public energytimer() { for(new i; i<MAX_PLAYERS; i++) { GetPlayerHealth(i,energy[i]); if(energy[i]>=5) { SetPlayerHealth(i,energy[i]-5); TextDrawShowForPlayer(i,noenergy[0]); TextDrawShowForPlayer(i,noenergy[1]); } else { TogglePlayerControllable(i,0); TextDrawShowForPlayer(i,noenergy[1]); } } return 1; }