Would this work?
#4

Try this:

pawn Код:
CMD:engine(playerid,params[])
{
    new vid;
    vid = GetPlayerVehicleID(playerid);
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);

    if (engine) {
        SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
        SCM(playerid,COLOR_LIGHTRED,"Engine shut down!");
    } else {
        SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective);
        SCM(playerid,COLOR_LIGHTRED,"The Vehicle Has Started!");
    }

    return 1;
}
Reply


Messages In This Thread
Would this work? - by Shockey HD - 11.08.2011, 22:40
Re: Would this work? - by antonio112 - 11.08.2011, 22:43
Re: Would this work? - by Shockey HD - 11.08.2011, 23:24
Re: Would this work? - by Onyewu - 11.08.2011, 23:28
Re: Would this work? - by Shockey HD - 11.08.2011, 23:40
Re: Would this work? - by PrawkC - 11.08.2011, 23:43
Re: Would this work? - by antonio112 - 11.08.2011, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)