if(IsTrailerAttachedToVehicle(vehicleid) == 403)
#3

Quote:
Originally Posted by Ahrim
Посмотреть сообщение
And what does it do for now, if I may ask?

Try This.

Код:
CMD:tduty(playerid, params[])//Trucker-duty dialog
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(vehicleid == 403)
    {
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Choose a route.", "Blueberry Packaging.\nMainstreet Ammunation.\nFlint Food Factory.\nOff-duty (Removes the CP)", "Confirm", "Close list");
    }
    else return SendClientMessage(playerid, 0xE64D51FF, "[*]Message: You need to be in a truck with a trailer to use this command!");
    return 1;
}
You were trying to get the vehicle's model ID, not Vehicle's ID.
The command works, at the moment it only allows me to use the command whilst being in the truck. But, I need it to be pulling a trailer too. If the truck isn't pulling a trailer, I don't want the command to work basically.

EDIT: That code is no good for be by the way, the one I currently have works fine. It has to be the vehicle mode ID for it to work on all vehicle id's "403", if I did it with your code, it would only work on the 403rd spawned car I beleive.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)