06.09.2013, 10:46
Hi there, I've been trying to add "if(IsTrailerAttachedToVehicle(vehicleid) == 403)" into this command, but I'm not having much luck. To state the obvious, I want the command to only work if the player is inside vehicle id 403 pulling a trailer.
Thanks in advance to anyone able to help.
Thanks in advance to anyone able to help.
Код:
CMD:tduty(playerid, params[])//Trucker-duty dialog { new vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(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; }