OnVehicle
#9

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
Although you get the engine parameter so the array for toggling the engine is kind of pointless.
Do the same for AddStaticVehicle and AddStaticVehicleEx functions.
Reply


Messages In This Thread
OnVehicle - by ChristianIvann09 - 24.04.2014, 11:24
Re: OnVehicle - by arakuta - 24.04.2014, 12:31
Re: OnVehicle - by ChristianIvann09 - 24.04.2014, 13:19
Re: OnVehicle - by Konstantinos - 24.04.2014, 13:23
Re: OnVehicle - by ChristianIvann09 - 24.04.2014, 13:24
Re: OnVehicle - by Konstantinos - 24.04.2014, 13:26
Re: OnVehicle - by ChristianIvann09 - 24.04.2014, 13:29
Re: OnVehicle - by arakuta - 24.04.2014, 13:31
Re: OnVehicle - by Konstantinos - 24.04.2014, 13:34
Re: OnVehicle - by blackeagle1122 - 24.04.2014, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)