06.09.2013, 11:00
Quote:
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; } |
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.