Car engine works trunk and hood and lights are not working?
#2

Why not change your engine command in such a way that when someone uses it engine starts and also the lights.

Try this cmd.
pawn Код:
CMD:vengine(playerid, params[])
{
    new engine, lights, alarm, doors, bonnet, boot, objective, vehicleid;
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED,"Your not driving any vehicle!");

    vehicleid = GetPlayerVehicleID(playerid);

    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    if(!engine)
    {
        SetVehicleParamsEx(vehicleid, true, true, alarm, doors, bonnet, boot, objective);

    }
    else
    {
        SetVehicleParamsEx(vehicleid, false, false, alarm, doors, bonnet, boot, objective);
    }
    return 1;
}
Reply


Messages In This Thread
Car engine works trunk and hood and lights are not working? - by Mey6155 - 15.11.2013, 15:08
Re: Car engine works trunk and hood and lights are not working? - by Ballu Miaa - 15.11.2013, 15:18
Re: Car engine works trunk and hood and lights are not working? - by Mey6155 - 15.11.2013, 16:14
Re: Car engine works trunk and hood and lights are not working? - by Mey6155 - 15.11.2013, 17:10

Forum Jump:


Users browsing this thread: 2 Guest(s)