05.11.2014, 08:42
Here's all of it 

pawn Код:
CMD:radiostation(playerid, params[])
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new radiostation;
new carID;
new string[256];
carID = GetPlayerVehicleID(playerid);
if(!sscanf(params, "i", radiostation))
{
if(radiostation < 1 || radiostation > 3)
{
SendClientMessage(playerid, COLOR_LIGHTRED, " The radio station must be between 1 and 3!");
return 1;
}
else if(radiostation == 1)
{
Audio_Stop(playerid,1);
Audio_Stop(playerid,2);
Audio_Stop(playerid,3);
Audio_Stop(playerid,4);
Audio_Stop(playerid,5);
Audio_PlayStreamed(playerid, "http://www.hot108.com/hot108.pls", false, false, false);
RadioPlaying[carID] = radiostation;
ShowSubtitle(playerid, "Radio changed, now playing: Hot 108 Jamz!.", 1000, 1);
format(string, sizeof(string), "* %s changed the radio station to Hot 108 Jamz.", PlayerNameEx(playerid));
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ListeningToRadio[playerid] = 1;
return 1;
}

