IsPlayerInVehicle
#2

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;
}
Reply


Messages In This Thread
IsPlayerInVehicle - by JonesyFoCoTDM - 05.09.2013, 21:03
Re: IsPlayerInVehicle - by Cypress - 05.09.2013, 21:05
Re: IsPlayerInVehicle - by JonesyFoCoTDM - 05.09.2013, 21:16
Re : IsPlayerInVehicle - by Matnix - 05.09.2013, 21:20
Re: Re : IsPlayerInVehicle - by JonesyFoCoTDM - 05.09.2013, 21:28
Re : IsPlayerInVehicle - by Matnix - 05.09.2013, 21:31
Re: Re : IsPlayerInVehicle - by JonesyFoCoTDM - 05.09.2013, 21:35
Re: IsPlayerInVehicle - by kaisersouse - 05.09.2013, 22:18

Forum Jump:


Users browsing this thread: 2 Guest(s)