Player In Vehicle
#1

Quote:

if (strcmp("/radio", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Notice", "You must be in a vehicle.", "Close", "");

ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Radio", "Pulse87 NY \n", "Play", "Close");
return 1;
}

i want only the driver can use /radio and when u exit the vehicle the radio stops nd when u re enter the vehicle radio starts again also i want the other players in the vehicle to hear the radio but if they are not the driver and they write /radio it will say u must be the driver to use this command
Reply


Messages In This Thread
Player In Vehicle - by CurlyPwn - 13.05.2013, 08:36
Re: Player In Vehicle - by RajatPawar - 13.05.2013, 08:52
Re: Player In Vehicle - by CNRLIFE - 13.05.2013, 10:27
Re: Player In Vehicle - by CurlyPwn - 13.05.2013, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)