need help
#10

Quote:
Originally Posted by [EuG]ZeRoGoD
Посмотреть сообщение
Код:
if(strcmp(cmd, "/punemuzica", true) == 0 )
	{
	    if(PlayerInfo[playerid][pJob] == 17)
	    {
 		new r_nr[256];
   		r_nr = strtok(cmdtext, idx);
      		new Float:X, Float:Y, Float:Z, Float:Distance = 50.0;
     		if(!strlen(r_nr))
      		{
       			SendClientMessage(playerid, COLOR_RED, "PRO-B / 2GB /FizzFM / PlayCs / Inferno / endparty");
        	 	return 1;
       		}
        	else if(strcmp(r_nr,"PRO-B",true) == 0)
        	{
                        new Float:X, Float:Y, Float:Z, Float:Distance = 50.0;
        		GetPlayerPos(playerid, X, Y, Z);
       			SendClientMessage(playerid, COLOR_RED, "Ai inceput mixul in ritmurile radio Pro-B");
       			PlayAudioStreamForPlayer(i, "http://176.97.226.36:9999", X, Y, Z, 50.0, 1);
       			return 1;

			}
    		else if(strcmp(r_nr,"2GB",true) == 0)
     		{
                        new Float:X, Float:Y, Float:Z, Float:Distance = 50.0;
     			GetPlayerPos(playerid, X, Y, Z);
     			SendClientMessage(playerid, COLOR_RED, "Ai inceput mixul in ritmurile radio 2GB");
     			PlayAudioStreamForPlayer(playerid, "http://46.102.252.60/tunein.php/radio/playlist.pls", X, Y, Z, 50.0, 1);
     			return 1;
   			}
    		else if(strcmp(r_nr,"FizzFM",true) == 0)
     		{
                        new Float:X, Float:Y, Float:Z, Float:Distance = 50.0;
     			GetPlayerPos(playerid, X, Y, Z);
     			SendClientMessage(playerid, COLOR_RED, "Ai inceput mixul in ritmurile radio Fizz FM");
     			PlayAudioStreamForPlayer(i, "http://s2.freeshoutcast.com:33568/", X, Y, Z, 50.0, 1);
     			return 1;
   			}
    		else if(strcmp(r_nr,"FizzFM",true) == 0)
     		{
                        new Float:X, Float:Y, Float:Z, Float:Distance = 50.0;
			GetPlayerPos(playerid, X, Y, Z);
			SendClientMessage(playerid, COLOR_RED, "Ai inceput mixul in ritmurile radio PlayCs");
     			PlayAudioStreamForPlayer(i, "http://31.215.210.4:2909/listen.pls", X, Y, Z, 50.0, 1);
     			return 1;
   			}
    		else if(strcmp(r_nr,"Inferno",true) == 0)
     		{
                        new Float:X, Float:Y, Float:Z, Float:Distance = 50.0;
     			GetPlayerPos(playerid, X, Y, Z);
     			SendClientMessage(playerid, COLOR_RED, "Ai inceput mixul in ritmurile radio Inferno");
     			PlayAudioStreamForPlayer(i, "http://radioinferno.no-ip.biz:7200", X, Y, Z, 50.0, 1);
     			return 1;
   			}
   			else if(strcmp(r_nr,"endparty",true) == 0)
   			{
   			    SendClientMessage(playerid, COLOR_RED, "Ai incheiat petrecerea!");
   			    PlayAudioStreamForPlayer(i, "http://176.97.226.36:9999", 0, 0, 0, 1, 1);
   			    return 1;
		    }
   			    
	  	}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "Nu esti DJ!");
	 		return 1;
 		}
	}
Full code incase you didnt understand
if i use PlayAudioStreamForPlayer(playerid, "http://46.102.252.60/tunein.php/radio/playlist.pls", X, Y, Z, 50.0, 1); with playerid, just DJ hear the radio
Reply


Messages In This Thread
need help - by SpeedyRO - 22.08.2012, 19:37
Re: need help - by Akira297 - 22.08.2012, 19:39
Re: need help - by SpeedyRO - 22.08.2012, 19:40
Re: need help - by Akira297 - 22.08.2012, 19:41
Re: need help - by Akira297 - 22.08.2012, 19:43
Re: need help - by [EuG]ZeRoGoD - 22.08.2012, 19:43
Re: need help - by SpeedyRO - 22.08.2012, 19:44
Re: need help - by SpeedyRO - 22.08.2012, 19:48
Re: need help - by [EuG]ZeRoGoD - 22.08.2012, 19:48
Re: need help - by SpeedyRO - 22.08.2012, 19:50

Forum Jump:


Users browsing this thread: 3 Guest(s)