11.11.2010, 14:45
pawn Code:
public OnGameModeInit()
{
SetTimer("OnVehicleUpdate", 1000, true);
return 1;
}
forward OnVehicleUpdate();
public OnVehicleUpdate()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
new Float: vHealth;
GetVehicleHealth(i, vHealth);
if(vHealth < 250)
{
SetVehicleHealth(i, 300.0);
}
}
return 1;
}