18.07.2012, 09:06
pawn Код:
CMD:playradio(playerid, params [])
{
if(!IsPlayerInAnyVehicle(playerid)) // You can remove this if you want, this means the radio won't start If you're not inside a vehicle.
{
SendClientMessageEx(playerid, COLOR_BLUE, "In-case you want to turn the radio on, you have to be in a vehicle!");
}
else
{
ShowPlayerDialog(playerid, 9312, DIALOG_STYLE_LIST, "Radio Station", "Radio Channels\nTurn the music off", "Select", "Cancel"); // Now, we're using the first dialog, you can add any options you want, for example, I've added 'Radio Channels, and turn the music off.
return 1;
}