/trunk /hood
#5

Quote:
Originally Posted by irinel1996
Посмотреть сообщение
You mean:
-If /trunk is used the boot will be closed.
-If /hood is used the bonnet will be closed. right?
pawn Код:
CMD:hood(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, COLOR_LIGHTRED, "Error: You are not in a vehicle.");
    if(GetPlayerVehicleSeat(playerid) != 0)
        return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: You are not in the drivers seat.");
    if(bonnet == 1)
    {
        SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,0,0,objective);
    }
    else
    {
        SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,1,0,objective);
    }
    return 1;
}

CMD:trunk(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, COLOR_LIGHTRED, "Error: You are not in a vehicle.");
    if(GetPlayerVehicleSeat(playerid) != 0)
        return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: You are not in the drivers seat.");
    if(boot == 1)
    {
        SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,0,0,objective);
    }
    else
    {
        SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,0,1,objective);
    }
    return 1;
}
Thanks for the reply but I need the opposite

If /trunk is used. And I do /hood, the hood will open and the trunk must still be opened too (coz when I do /hood and try to use /trunk the hood automatically close)
Reply


Messages In This Thread
/trunk /hood - by kbalor - 08.08.2012, 19:37
Re: /trunk /hood - by Dawnz - 08.08.2012, 19:49
Re: /trunk /hood - by kbalor - 08.08.2012, 19:54
Respuesta: /trunk /hood - by [DOG]irinel1996 - 08.08.2012, 20:10
Re: Respuesta: /trunk /hood - by kbalor - 08.08.2012, 20:31
Respuesta: /trunk /hood - by [DOG]irinel1996 - 08.08.2012, 20:44
Re: Respuesta: /trunk /hood - by kbalor - 08.08.2012, 20:52
Respuesta: /trunk /hood - by [DOG]irinel1996 - 08.08.2012, 20:56
Re: /trunk /hood - by jeevan - 18.05.2014, 08:51

Forum Jump:


Users browsing this thread: 3 Guest(s)