[Ajuda] sistema de som
#1

gente eu to amontano um sistema de som so que quando ligo so eu q ouvo a musica por que ?

esse sistema e pra adm quando ele vai dar festa me ajuda e ver por que e so eu q ouvo a musica por favor

PHP Code:
//-------------------------------------------------
new Float:XFloat:YFloat:ZFloat:Distance 50.0;
new 
NaoFloda[MAX_PLAYERS];
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/ligarsom"true))
    {
        {
            {
            
ShowPlayerDialog(playeridRadiosDIALOG_STYLE_LIST,
            
"Web Radios By:[FFC]Twister",
            
"{ADFF2F} Stronda \n{CAE1FF}Nova Web\n{7B68EE}Radio FFC\nRadio Extremo Mix\n{912CEE}Radio Mantiquera\n{CD5C5C}Click Mix\nWeb Radio Virtual Dj\n{F900E0}Radio Vto Mix\nRadio Team Expert\nWeb Radio Relax\nRadio Novo Milenio\nRadio Total Dance\nRadio Sound Pop\nRadio Fusion\nRadio Funk Brasil\nRadio Jovem Pan\nRadio Atlantita\nRadio Dubstep\nRadio Overdose\nRadio Sertanejo\nRadio Hunter\nRadio Pure DJ\nRadio Relax",
            
"Sintonizar""Nao Sintoniza");
            }
        }
        return 
true;
    }
    if(!
strcmp(cmdtext"/desligarsom"true))
    {
        for(new 
0MAX_PLAYERSi++)
        {
            
GetPlayerPos(playeridXYZ);
            if(!
IsPlayerInRangeOfPoint(i50.0XYZ))
            {
                
GameTextForPlayer(playerid,"~w~Radio Desligada Com Sucesso!",5000,3);
                
StopAudioStreamForPlayer(playerid);
                
NaoFloda[playerid] = 0;
            }
        }
        return 
true;
        }
    return 
false;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
        if(
dialogid ==Radios)
        {
        if(
response)
        {
//Radio Stronda
        
if(listitem == 0)
          {
          if(
NaoFloda[playerid] == 0)
             {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio Stronda Sintonizada");
               
GameTextForPlayer(playerid,"~w~Radio Stronda Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://65.60.15.180:8080/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Nova Web
        
if(listitem == 1)
          {
          if(
NaoFloda[playerid] == 0)
             {
             for(new 
0MAX_PLAYERSi++)
                {
                
GetPlayerPos(playeridXYZ);
                if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                {
                
NaoFloda[playerid] = 1;
                
SendClientMessage(playeridAMARELO_FFC"Radio Nova Web Sintonizada");
                
GameTextForPlayer(playerid,"~y~Radio NovaWeb Sintonizada",5000,3);
                
PlayAudioStreamForPlayer(playerid"http://69.162.90.148:7080/"XYZDistance1);
                return 
1;
               }
            }
          }
        }
        
//Radio FFC
        
if(listitem == 2)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio FFC Sintonizada");
               
GameTextForPlayer(playerid,"~Y~Radio FFC Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://184.154.37.136:8087/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Extremo Mix
        
if(listitem == 3)
          {
          if(
NaoFloda[playerid] == 0)
             {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                 {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio Extremo Mix Sintonizada");
               
GameTextForPlayer(playerid,"~w~Radio Extremo Mix Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://184.154.37.136:8083/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Mantiquera
        
if(listitem == 4)
          {
          if(
NaoFloda[playerid] == 0)
               {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio Mantiquera Sintonizada");
               
GameTextForPlayer(playerid,"~w~Radio Mantiquera Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://184.154.37.136:8081/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Click Mix
        
if(listitem == 5)
          {
          if(
NaoFloda[playerid] == 0)
             {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio Click mix Sintonizada");
               
GameTextForPlayer(playerid,"~w~Radio Click Mix Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://50.30.33.114:9998"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Web Radio Virtual Dj
        
if(listitem == 6)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio Virtual Dj Sintonizada");
               
GameTextForPlayer(playerid,"~w~Radio Virtual Dj Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://173.212.197.233:7800"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Vto Mix
        
if(listitem == 7)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio Vto Mix Sintonizada");
               
GameTextForPlayer(playerid,"~w~Radio Vto Mix Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://s3.voscast.com:7554/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Team Expert
        
if(listitem == 8)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio Team Expert Sintonizada");
               
GameTextForPlayer(playerid,"~w~Radio Team Expert Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://64.31.30.91:9980"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Relax
        
if(listitem == 9)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio Relax Sintonizada");
               
GameTextForPlayer(playerid,"~w~Radio Relax Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://streaming18.brlogic.com:8204/live"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Novo Milenio
        
if(listitem == 10)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Radio Novo Milenio Sintonizada");
               
GameTextForPlayer(playerid,"~w~Radio Novo Milenio Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://174.142.79.66:8110"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 11)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Total Dance!");
               
GameTextForPlayer(playerid,"~w~Radio Total Dance Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://streaming.vibepositive.net:8022/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 12)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Sound Pop");
               
GameTextForPlayer(playerid,"~w~Radio Sound Pop Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://46.165.221.218:80/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 13)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Fusion");
               
GameTextForPlayer(playerid,"~w~Radio Fusion Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://65.60.25.242:8004/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 14)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Funk Brasil");
               
GameTextForPlayer(playerid,"~w~Radio Funk Brasil Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://64.56.64.84:9908"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 15)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Jovem Pan");
               
GameTextForPlayer(playerid,"~w~Radio Jovem Pan Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://64.15.147.220:8042/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 16)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Atlantita");
               
GameTextForPlayer(playerid,"~w~Radio Atlantita Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://189.76.158.143:50002/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 17)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Dubstep");
               
GameTextForPlayer(playerid,"~w~Radio Dubstep Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://72.232.40.182:80"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 18)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Overdose");
               
GameTextForPlayer(playerid,"~w~Radio Overdose Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://64.15.155.206:8888/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 19)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Sertanejo");
               
GameTextForPlayer(playerid,"~w~Radio Sertanejo Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid"http://64.15.147.221:9026/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 20)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                 {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Hunter");
               
GameTextForPlayer(playerid,"~w~Radio Hunter Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid,"http://stream.radiohunter.com.br:7070/listen.pls"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 21)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Pure DJ");
               
GameTextForPlayer(playerid,"~w~Radio Pure DJ Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid,"http://66.90.101.54:8120"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 22)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(playeridXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(playeridAMARELO_FFC"Vocк selecionou a Radio Relax");
               
GameTextForPlayer(playerid,"~w~Radio Relax Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(playerid,"http://streaming18.brlogic.com:8204/live"XYZDistance1);
               return 
1;
               }
               return 
1;
               }
            return 
1;
            }
          return 
1;
          }
        return 
1;
        }
        return 
1;
        }
        return 
1;
        } 
Reply
#2

me ajuda alguem por favor
Reply
#3

Clique Aqui
Reply
#4

mano isso nao ajuda muito,ja estudei issos varias vezes e nd nao sei o q eu fasso mais

mais vlw por tentar ajudar
Reply
#5

Amigo, vocк tem que entender, que vocк fez um LOOP utilizando "i", entгo, paga pegar em todos deve ser utilizado o "i" e nгo playerid .

PHP Code:
new Float:XFloat:YFloat:ZFloat:Distance 50.0;

new 
NaoFloda[MAX_PLAYERS];

public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/ligarsom"true))
    {
        {
            {
            
ShowPlayerDialog(playeridRadiosDIALOG_STYLE_LIST,
            
"Web Radios By:[FFC]Twister",
            
"{ADFF2F} Stronda \n{CAE1FF}Nova Web\n{7B68EE}Radio FFC\nRadio Extremo Mix\n{912CEE}Radio Mantiquera\n{CD5C5C}Click Mix\nWeb Radio Virtual Dj\n{F900E0}Radio Vto Mix\nRadio Team Expert\nWeb Radio Relax\nRadio Novo Milenio\nRadio Total Dance\nRadio Sound Pop\nRadio Fusion\nRadio Funk Brasil\nRadio Jovem Pan\nRadio Atlantita\nRadio Dubstep\nRadio Overdose\nRadio Sertanejo\nRadio Hunter\nRadio Pure DJ\nRadio Relax",
            
"Sintonizar""Nao Sintoniza");
            }
        }
        return 
true;
    }
    if(!
strcmp(cmdtext"/desligarsom"true))
    {
        for(new 
0MAX_PLAYERSi++)
        {
            
GameTextForPlayer(i,"~w~Radio Desligada Com Sucesso!",5000,3);
            
StopAudioStreamForPlayer(i);
            
NaoFloda[i] = 0;
        }
        return 
true;
      }
      return 
false;
}

public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
        if(
dialogid ==Radios)
        {
        if(
response)
        {
//Radio Stronda
        
if(listitem == 0)
          {
          if(
NaoFloda[playerid] == 0)
             {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Stronda Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Stronda Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://65.60.15.180:8080/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Nova Web
        
if(listitem == 1)
          {
          if(
NaoFloda[playerid] == 0)
             {
             for(new 
0MAX_PLAYERSi++)
                {
                
GetPlayerPos(iXYZ);
                if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                {
                
NaoFloda[i] = 1;
                
SendClientMessage(iAMARELO_FFC"Radio Nova Web Sintonizada");
                
GameTextForPlayer(i,"~y~Radio NovaWeb Sintonizada",5000,3);
                
PlayAudioStreamForPlayer(i"http://69.162.90.148:7080/"XYZDistance1);
                return 
1;
               }
            }
          }
        }
        
//Radio FFC
        
if(listitem == 2)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio FFC Sintonizada");
               
GameTextForPlayer(i,"~Y~Radio FFC Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://184.154.37.136:8087/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Extremo Mix
        
if(listitem == 3)
          {
          if(
NaoFloda[playerid] == 0)
             {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                 {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Extremo Mix Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Extremo Mix Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://184.154.37.136:8083/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Mantiquera
        
if(listitem == 4)
          {
          if(
NaoFloda[playerid] == 0)
               {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Mantiquera Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Mantiquera Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://184.154.37.136:8081/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Click Mix
        
if(listitem == 5)
          {
          if(
NaoFloda[playerid] == 0)
             {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Click mix Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Click Mix Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://50.30.33.114:9998"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Web Radio Virtual Dj
        
if(listitem == 6)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Virtual Dj Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Virtual Dj Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://173.212.197.233:7800"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Vto Mix
        
if(listitem == 7)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Vto Mix Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Vto Mix Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://s3.voscast.com:7554/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Team Expert
        
if(listitem == 8)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Team Expert Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Team Expert Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.31.30.91:9980"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Relax
        
if(listitem == 9)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Relax Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Relax Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://streaming18.brlogic.com:8204/live"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Novo Milenio
        
if(listitem == 10)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Novo Milenio Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Novo Milenio Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://174.142.79.66:8110"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 11)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Total Dance!");
               
GameTextForPlayer(i,"~w~Radio Total Dance Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://streaming.vibepositive.net:8022/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 12)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Sound Pop");
               
GameTextForPlayer(i,"~w~Radio Sound Pop Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://46.165.221.218:80/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 13)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Fusion");
               
GameTextForPlayer(i,"~w~Radio Fusion Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://65.60.25.242:8004/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 14)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Funk Brasil");
               
GameTextForPlayer(i,"~w~Radio Funk Brasil Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.56.64.84:9908"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 15)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Jovem Pan");
               
GameTextForPlayer(i,"~w~Radio Jovem Pan Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.15.147.220:8042/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 16)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Atlantita");
               
GameTextForPlayer(i,"~w~Radio Atlantita Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://189.76.158.143:50002/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 17)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Dubstep");
               
GameTextForPlayer(i,"~w~Radio Dubstep Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://72.232.40.182:80"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 18)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Overdose");
               
GameTextForPlayer(i,"~w~Radio Overdose Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.15.155.206:8888/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 19)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Sertanejo");
               
GameTextForPlayer(i,"~w~Radio Sertanejo Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.15.147.221:9026/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 20)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                 {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Hunter");
               
GameTextForPlayer(i,"~w~Radio Hunter Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i,"http://stream.radiohunter.com.br:7070/listen.pls"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 21)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Pure DJ");
               
GameTextForPlayer(i,"~w~Radio Pure DJ Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i,"http://66.90.101.54:8120"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 22)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Relax");
               
GameTextForPlayer(i,"~w~Radio Relax Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i,"http://streaming18.brlogic.com:8204/live"XYZDistance1);
               return 
1;
               }
               return 
1;
               }
            return 
1;
            }
          return 
1;
          }
        return 
1;
        }
        return 
1;
        }
        return 
1;
        } 
Reply
#6

Quote:
Originally Posted by yNexus
View Post
Amigo, vocк tem que entender, que vocк fez um LOOP utilizando "i", entгo, paga pegar em todos deve ser utilizado o "i" e nгo playerid .

PHP Code:
new Float:XFloat:YFloat:ZFloat:Distance 50.0;
new 
NaoFloda[MAX_PLAYERS];
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/ligarsom"true))
    {
        {
            {
            
ShowPlayerDialog(playeridRadiosDIALOG_STYLE_LIST,
            
"Web Radios By:[FFC]Twister",
            
"{ADFF2F} Stronda \n{CAE1FF}Nova Web\n{7B68EE}Radio FFC\nRadio Extremo Mix\n{912CEE}Radio Mantiquera\n{CD5C5C}Click Mix\nWeb Radio Virtual Dj\n{F900E0}Radio Vto Mix\nRadio Team Expert\nWeb Radio Relax\nRadio Novo Milenio\nRadio Total Dance\nRadio Sound Pop\nRadio Fusion\nRadio Funk Brasil\nRadio Jovem Pan\nRadio Atlantita\nRadio Dubstep\nRadio Overdose\nRadio Sertanejo\nRadio Hunter\nRadio Pure DJ\nRadio Relax",
            
"Sintonizar""Nao Sintoniza");
            }
        }
        return 
true;
    }
    if(!
strcmp(cmdtext"/desligarsom"true))
    {
        for(new 
0MAX_PLAYERSi++)
        {
            
GameTextForPlayer(i,"~w~Radio Desligada Com Sucesso!",5000,3);
            
StopAudioStreamForPlayer(i);
            
NaoFloda[i] = 0;
        }
        return 
true;
      }
      return 
false;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
        if(
dialogid ==Radios)
        {
        if(
response)
        {
//Radio Stronda
        
if(listitem == 0)
          {
          if(
NaoFloda[playerid] == 0)
             {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Stronda Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Stronda Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://65.60.15.180:8080/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Nova Web
        
if(listitem == 1)
          {
          if(
NaoFloda[playerid] == 0)
             {
             for(new 
0MAX_PLAYERSi++)
                {
                
GetPlayerPos(iXYZ);
                if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                {
                
NaoFloda[i] = 1;
                
SendClientMessage(iAMARELO_FFC"Radio Nova Web Sintonizada");
                
GameTextForPlayer(i,"~y~Radio NovaWeb Sintonizada",5000,3);
                
PlayAudioStreamForPlayer(i"http://69.162.90.148:7080/"XYZDistance1);
                return 
1;
               }
            }
          }
        }
        
//Radio FFC
        
if(listitem == 2)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio FFC Sintonizada");
               
GameTextForPlayer(i,"~Y~Radio FFC Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://184.154.37.136:8087/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Extremo Mix
        
if(listitem == 3)
          {
          if(
NaoFloda[playerid] == 0)
             {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                 {
               
NaoFloda[playerid] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Extremo Mix Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Extremo Mix Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://184.154.37.136:8083/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Mantiquera
        
if(listitem == 4)
          {
          if(
NaoFloda[playerid] == 0)
               {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Mantiquera Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Mantiquera Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://184.154.37.136:8081/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Click Mix
        
if(listitem == 5)
          {
          if(
NaoFloda[playerid] == 0)
             {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Click mix Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Click Mix Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://50.30.33.114:9998"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Web Radio Virtual Dj
        
if(listitem == 6)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Virtual Dj Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Virtual Dj Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://173.212.197.233:7800"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Vto Mix
        
if(listitem == 7)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Vto Mix Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Vto Mix Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://s3.voscast.com:7554/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Team Expert
        
if(listitem == 8)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Team Expert Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Team Expert Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.31.30.91:9980"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Relax
        
if(listitem == 9)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Relax Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Relax Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://streaming18.brlogic.com:8204/live"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        
//Radio Novo Milenio
        
if(listitem == 10)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Radio Novo Milenio Sintonizada");
               
GameTextForPlayer(i,"~w~Radio Novo Milenio Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://174.142.79.66:8110"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 11)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Total Dance!");
               
GameTextForPlayer(i,"~w~Radio Total Dance Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://streaming.vibepositive.net:8022/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 12)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Sound Pop");
               
GameTextForPlayer(i,"~w~Radio Sound Pop Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://46.165.221.218:80/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 13)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Fusion");
               
GameTextForPlayer(i,"~w~Radio Fusion Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://65.60.25.242:8004/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 14)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Funk Brasil");
               
GameTextForPlayer(i,"~w~Radio Funk Brasil Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.56.64.84:9908"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 15)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Jovem Pan");
               
GameTextForPlayer(i,"~w~Radio Jovem Pan Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.15.147.220:8042/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 16)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Atlantita");
               
GameTextForPlayer(i,"~w~Radio Atlantita Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://189.76.158.143:50002/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 17)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                  {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Dubstep");
               
GameTextForPlayer(i,"~w~Radio Dubstep Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://72.232.40.182:80"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 18)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Overdose");
               
GameTextForPlayer(i,"~w~Radio Overdose Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.15.155.206:8888/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 19)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Sertanejo");
               
GameTextForPlayer(i,"~w~Radio Sertanejo Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i"http://64.15.147.221:9026/"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 20)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
                 {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Hunter");
               
GameTextForPlayer(i,"~w~Radio Hunter Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i,"http://stream.radiohunter.com.br:7070/listen.pls"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 21)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Pure DJ");
               
GameTextForPlayer(i,"~w~Radio Pure DJ Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i,"http://66.90.101.54:8120"XYZDistance1);
               return 
1;
               }
            }
          }
        }
        if(
listitem == 22)
          {
          if(
NaoFloda[playerid] == 0)
            {
            for(new 
0MAX_PLAYERSi++)
               {
               
GetPlayerPos(iXYZ);
               if(
IsPlayerInRangeOfPoint(i50.0XYZ))
               {
               
NaoFloda[i] = 1;
               
SendClientMessage(iAMARELO_FFC"Vocк selecionou a Radio Relax");
               
GameTextForPlayer(i,"~w~Radio Relax Sintonizada",5000,3);
               
PlayAudioStreamForPlayer(i,"http://streaming18.brlogic.com:8204/live"XYZDistance1);
               return 
1;
               }
               return 
1;
               }
            return 
1;
            }
          return 
1;
          }
        return 
1;
        }
        return 
1;
        }
        return 
1;
        } 
vlw amigo vo texta la mais sera q todos irao ouvir ou e so eu,que eu queria esse pra fazer festa no meu server rpg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)