11.02.2009, 13:26
Код:
//OnGameModeInit SetTimer("AutoRepair",500,1);
Код:
forward AutoRepair(); public AutoRepair(){ for(new i=0; i<GetMaxPlayers(); i++) { if(IsPlayerConnected(i)) if(IsPlayerInAnyVehicle(i) && IsPlayerAdmin(i)){ new Float:fVehicleHealth; GetVehicleHealth(GetPlayerVehicleID(i),fVehicleHealth); if(fVehicleHealth < 400) SetVehicleHealth(GetPlayerVehicleID(i),1000.0); } } }