simple engine command.
#2

pawn Код:
//ongamemodeinit
ManualVehicleEngineAndLights();


CMD:engine(playerid)//or if(!strcmp(cmd, "/engine", true))
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    if(engine == 1)
        SetVehicleParamsEx(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);
    else SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
}
Reply


Messages In This Thread
simple engine command. - by Jordiee - 15.11.2011, 16:12
Re: simple engine command. - by Pharrel - 15.11.2011, 16:16
Re: simple engine command. - by Jordiee - 15.11.2011, 16:26
Re: simple engine command. - by Qur - 15.11.2011, 16:27
Re: simple engine command. - by Jordiee - 15.11.2011, 16:29
Re: simple engine command. - by Pharrel - 15.11.2011, 16:32
Re: simple engine command. - by Jordiee - 15.11.2011, 16:35
Re: simple engine command. - by park4bmx - 15.11.2011, 16:35
Re: simple engine command. - by Jordiee - 15.11.2011, 16:37
Re: simple engine command. - by Devilxz97 - 12.05.2012, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)