24.04.2014, 13:34
pawn Код:
stock HF_CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
{
new vehicleid = CreateVehicle(modelid, x, y, z, angle, color1, color2, respawn_delay);
if (vehicleid != INVALID_VEHICLE_ID) // not invalid modelid or full
{
Engine[vehicleid] = 0;
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);
}
return 1;
}
#if defined _ALS_CreateVehicle
#undef CreateVehicle
#else
#define _ALS_CreateVehicle
#endif
#define CreateVehicle HF_CreateVehicle
Do the same for AddStaticVehicle and AddStaticVehicleEx functions.