16.12.2012, 23:15
Hello guys today i need help with this basically i want all the vehicles that are the same model lets say LSPD Car have 5000 Health When they are spawned or if they are already spanwned
if( GetVehicleModel( vehicleid ) == 596 ) //if the model of the vehicle spawned is in fact the LSPD
{
SetVehicleHealth( vehicleid, 5000 );
}
public OnGameModeInit()
{
//code
AllVehSetHealth();
return 1;
}
AllVehSetHealth()
{
for(new v; v<MAX_VEHICLES;v++)
{
SetVehicleHealth(v, 5000);
}
}