/trunk command help
#3

pawn Код:
C:boot(playerid, params[])
{
    new vehicleid, engine,lights,alarm,doors,bonnet,boot,objective;
    vehicleid = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(!IsPlayerInAnyVehicle(playerid))
        return SendClientMessage(playerid, red, "Error: You are not in a vehicle.");
    if(GetPlayerVehicleSeat(playerid) != 0)
        return SendClientMessage(playerid, red, "Error: You are not in the drivers seat.");
    if(boot == 1)
    {
        SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,0,objective);
    }
    else
    {
        SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,1,objective);
    }
    return 1;
}
Like that?
Reply


Messages In This Thread
/trunk command help - by MichaelWharton101 - 05.05.2013, 01:13
Re: /trunk command help - by MichaelWharton101 - 05.05.2013, 02:41
Re: /trunk command help - by DobbysGamertag - 05.05.2013, 02:50
Re: /trunk command help - by MichaelWharton101 - 05.05.2013, 02:58
Re: /trunk command help - by SimpalK - 05.05.2013, 05:18
Re: /trunk command help - by RaminTurbo - 03.05.2018, 21:00
Re: /trunk command help - by kovac - 03.05.2018, 22:25
Re: /trunk command help - by CrystalGamer - 04.05.2018, 10:57

Forum Jump:


Users browsing this thread: 3 Guest(s)