[Ajuda] para mudar o comando
#1

Bom, to com o FS de rбdio e queria mudar de /radio para /rr ou outro, como faзo isto?
Код:
//Radio System v1.0 Created by GBLTeam
//Me on forum samp: http://forum.sa-mp.com/member.php?u=4818...63//Please dont remove this Credits.. Thanks for using my FS
//------------[UPDATED 15.07.2011]-----------------------------//
#include <a_samp>
#include <audio>
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define RADIO 3000
#define COLOR_YELLOW 0xDABB3EAA
#define COLOR_GREEN 0x9EC73DAA
new Radio[MAX_PLAYERS];
new Radio1[MAX_PLAYERS];
new Radio2[MAX_PLAYERS];
new Radio3[MAX_PLAYERS];
new Radio4[MAX_PLAYERS];
new Radio5[MAX_PLAYERS];
new Radio6[MAX_PLAYERS];
new Radio7[MAX_PLAYERS];
new Radio8[MAX_PLAYERS];
new Radio9[MAX_PLAYERS];
new Radio10[MAX_PLAYERS];
new Radio11[MAX_PLAYERS];
new Radio12[MAX_PLAYERS];
new Radio13[MAX_PLAYERS];
new Radio14[MAX_PLAYERS];
#if defined FILTERSCRIPT
            
            
public OnFilterScriptInit()
{
	print(" ..::: Radio System 1.0 by GBLTeam :::..");
	return 1;
}

#endif
public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	dcmd(radio, 5, cmdtext);
	return 0;
}
dcmd_radio(playerid, params[])
{
            #pragma unused params
		    Audio_SetVolume(playerid, Radio[playerid], 100);
            ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST, "Radio System by GBLTeam", "{FF1400}0-Jazz Radio\n{FFB400}1-.977(Rock)\n{DCDCDC}2-181FM(Rock)\n{19FF00}3-Cinemix(CLassical)\n{FF00D7}4-Reggae141\n{CD0000}5-Infowars(Real talk)\n{2800FF}6-Comedy\n{F5FF00}7-BBC News\n{C800FF}8-HotJamz(Hip Hop)\n{FF6400}9-Xtreme(Metal)\n{FFD200}10-Metal\n{FF3C00}11-Hindi\n{EBFF00}12-Trance\n{007DFF}13- UG Rap\n{00FFF0}14-Urban\n{FF000F}[STOP RADIO]", "Okay", "Exit");
            return SendClientMessage(playerid,COLOR_GREEN,"Chouse some radio station which you want to listen!");
    }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == RADIO) // by Johny_Depp Pro Scripter
	{
		if(response)
		{
			if(listitem == 0)// (1-Jazz Radio)
			{//
           Radio[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674096",false,false,false);
			}
			if(listitem == 1)// (2-.977(Rock))
			{//
           Radio1[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356",false,false,false);
			}
			if(listitem == 2)// (3-181FM(Rock))
			{
           Radio2[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=301250",false,false,false);
			}
			if(listitem == 3)// (4-Cinemix(CLassical))
			{
           Radio3[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=614375",false,false,false);
			}
			if(listitem == 4)// (5-Reggae141)
			{
           Radio4[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280855",false,false,false);
			}
			if(listitem == 5)// (6-Infowars(Real talk))
			{
           Radio5[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1026951",false,false,false);
			}
			if(listitem == 6)// (7-Comedy)
			{
           Radio6[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=9463",false,false,false);
			}
			if(listitem == 7)// (8-BBC News)
			{
           Radio7[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377212",false,false,false);
			}
			if(listitem == 8)// (9-HotJamz(Hip Hop))
			{
           Radio8[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016",false,false,false);
			}
			if(listitem == 9)// (10-Xtreme(Metal))
			{
           Radio9[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275071",false,false,false);
			}
			if(listitem == 10)// (11-Metal)
			{
           Radio10[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280610",false,false,false);
			}
			if(listitem == 11)// (12-Hindi)
			{
           Radio11[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275743",false,false,false);
			}
			if(listitem == 12)// (13-Trance)
			{
           Radio12[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1193516",false,false,false);
			}
			if(listitem == 13)// (14- UG Rap)
			{
           Radio13[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=9054",false,false,false);
			}
			if(listitem == 14)// (14-Urban)
			{
           Radio14[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=702448",false,false,false);
			}
			if(listitem == 15)// (STOP RADIO)
			{
            Audio_Stop(playerid, Radio[playerid]);
            Audio_Stop(playerid, Radio1[playerid]);
            Audio_Stop(playerid, Radio2[playerid]);
            Audio_Stop(playerid, Radio3[playerid]);
            Audio_Stop(playerid, Radio4[playerid]);
            Audio_Stop(playerid, Radio5[playerid]);
            Audio_Stop(playerid, Radio6[playerid]);
            Audio_Stop(playerid, Radio7[playerid]);
            Audio_Stop(playerid, Radio8[playerid]);
            Audio_Stop(playerid, Radio9[playerid]);
            Audio_Stop(playerid, Radio10[playerid]);
            Audio_Stop(playerid, Radio11[playerid]);
            Audio_Stop(playerid, Radio12[playerid]);
            Audio_Stop(playerid, Radio13[playerid]);
            Audio_Stop(playerid, Radio14[playerid]);
            
            }
		}
 	}
	return 1;
}
Reply


Messages In This Thread
[Ajuda] para mudar o comando - by ceesar90 - 28.09.2011, 19:42
Re: Ajuda para mudar o comando - by Jason_King - 28.09.2011, 20:01
Re: Ajuda para mudar o comando - by ceesar90 - 28.09.2011, 20:22
Re: Ajuda para mudar o comando - by Jason_King - 28.09.2011, 20:27
Re: Ajuda para mudar o comando - by ceesar90 - 28.09.2011, 20:44
Re: Ajuda para mudar o comando - by Jason_King - 28.09.2011, 21:12

Forum Jump:


Users browsing this thread: 2 Guest(s)