18.08.2012, 06:53
ok i have this code under public ONVEHICLESPAWN
what i want it to do every vehicle in the server with thos ID's have their set HP but once i restart the server and go into it i have to /respawncars 50000 to make the HP the correct amounts please help
pawn Код:
if(GetVehicleModel(vehicleid) == 596 || GetVehicleModel(vehicleid) == 597 || GetVehicleModel(vehicleid) == 598) SetVehicleHealth(vehicleid,1500.0);
if(GetVehicleModel(vehicleid) == 407 || GetVehicleModel(vehicleid) == 470) SetVehicleHealth(vehicleid,2000.0);
if(GetVehicleModel(vehicleid) == 428 || GetVehicleModel(vehicleid) == 433 || (vehicleid) == 482) SetVehicleHealth(vehicleid,3000.0);
if(GetVehicleModel(vehicleid) == 601 || GetVehicleModel(vehicleid) == 528) SetVehicleHealth(vehicleid,4000.0);
if(GetVehicleModel(vehicleid) == 432) SetVehicleHealth(vehicleid,5000.0);