Quote:
Originally Posted by Cypress
Right exact there is just an example for you out there
https://sampwiki.blast.hk/wiki/Function:IsPlayerInVehicle
so
pawn Код:
if(IsPlayerInVehicle(playerid, 403))
pawn Код:
CMD:tduty(playerid, params[])//Trucker-duty dialog { if(IsPlayerInVehicle(playerid, 403)) { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Choose a route.", "Blueberry packaging.\nMainstreet ammunation.\nOff-duty (Removes the CP)", "Confirm", "Close list"); } else return SendClientMessage(playerid, -1, "You are not in a truck!"); return 1; }
|
It stops the command working in other vehicles and on foot like I wanted, but it doesn't work in vehicle 403 either. Any ideas why?