01.11.2015, 14:57
This is my Script for Autorepair:
So if the VehicleHealth is under 900 my Vehicle has again 1000 but it is not repaired.
I want to add this in the Script : RepairVehicle
Код:
public AutoRepair(){
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i)) if(IsPlayerInAnyVehicle(i)){
new Float:fVehicleHealth;
GetVehicleHealth(GetPlayerVehicleID(i),fVehicleHealth);
if(fVehicleHealth < 900) SetVehicleHealth(GetPlayerVehicleID(i),1000.0);
}
}
}
I want to add this in the Script : RepairVehicle


[REP+]