30.03.2009, 05:58
OnGameModeInit
It should be right. If you donґt understand to something, just write. Note: It just repair engine of car, so it wonґt explode or something, but you canґt repair carґs body, just in PayґnґSpray/ModShop. 
Yours sincerely
NtCat
Код:
SetTimer("CheckBrokenCars",1000,true);
Код:
forward CheckBrokenCars();
public CheckBrokenCars()
{
for(new i;i<MAX_PLAYERS;i++) // i am not absolutely sure about this cycle for controlling all players, i donґt have pawno here, so I canґt control it, so i want someone else to do it ;)
{
if(IsPlayerConnected && IsPlayerInAnyVehicle)
{
new car = GetPlayerVehicleID(i);
if(GetVehicleHealth(car) < 1000) SetVehicleHealth(car,1000.0);
}
}
}

Yours sincerely
NtCat

