simple engine command.
#6

pawn Код:
CMD:engine(playerid)
{
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessae(playerid, -1, "You need to be the driver!");
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
    if(engine == 1)
        SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, lights, alarm, doors, bonnet, boot, objective);
    else SetVehicleParamsEx(GetPlayerVehicleID(playerid), 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)