05.09.2013, 21:05
Right exact there is just an example for you out there
https://sampwiki.blast.hk/wiki/Function:IsPlayerInVehicle
so
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;
}