06.07.2011, 19:49
How can i make that example all cop cars spawn with 2000.0 health ?
new COPCAR;
public OnGameModeInit()
{
COPCAR = CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
if(vehicleid == COPCAR) { SetVehicleHealth(vehicleid, 2000.0); }
return 1;
}
public OnVehicleSpawn(vehicleid)
{
new model = GetVehicleModel(vehicleid);
if(model > 595 && model < 600)
{
SetVehicleHealth(vehicleid, 2000);
}
return 1;
}
https://sampwiki.blast.hk/wiki/SetVehicleHealth
Edit: Too late =(. Btw that is a Hydra not a cop car. |