[Ajuda] Musicas
#4

Bom nгo testei, nгo sei se funciona mбs estб ai:
PHP код:
if(dialogid == 772)
    {
        
TogglePlayerControllable(playerid1);
        if(!
response) { return 1; }
        switch(
listitem)
        {
            case 
0:
            {
                
MusicaTodos("https://dl.dropboxusercontent.com/u/238210935/DJ/DaviDGuettaShotMeDown.mp3");
                
format(stringsizeof(string), "O Player %s[%d]Iniciou como DJ na prefeitura de Los Santos!"PlayerName(playerid), playerid);
                   
SendClientMessageToAll(COR_CVstring);
            }
               case 
1:
            {
                   
MusicaTodos("https://dl.dropboxusercontent.com/u/238210935/DJ/TurnDownForWhat.mp3");
                
format(stringsizeof(string), "O Player %s[%d]Iniciou como DJ na prefeitura de Los Santos!"PlayerName(playerid), playerid);
                   
SendClientMessageToAll(COR_CVstring);
               }
               case 
2:
            {
                
MusicaTodos("https://dl.dropboxusercontent.com/u/238210935/DJ/Disclosure.mp3");
                
format(stringsizeof(string), "O Player %s[%d]Iniciou como DJ na prefeitura de Los Santos!"PlayerName(playerid), playerid);
                   
SendClientMessageToAll(COR_CVstring);
               }
               case 
3:
            {
                
MusicaTodos("https://dl.dropboxusercontent.com/u/238210935/DJ/NApontadope.mp3");
                
format(stringsizeof(string), "O Player %s[%d]Iniciou como DJ na prefeitura de Los Santos!"PlayerName(playerid), playerid);
                   
SendClientMessageToAll(COR_CVstring);
               }
               case 
4:
            {
                
MusicaTodos("https://dl.dropboxusercontent.com/u/238210935/DJ/WeDemBoyz.mp3");
                
format(stringsizeof(string), "O Player %s[%d]Iniciou como DJ na prefeitura de Los Santos!"PlayerName(playerid), playerid);
                   
SendClientMessageToAll(COR_CVstring);
               }
               case 
5:
            {
                
MusicaTodos("https://dl.dropboxusercontent.com/u/238210935/DJ/SkrillexRaggaBombwithRaggaTwins.mp3");
                
format(stringsizeof(string), "O Player %s[%d]Iniciou como DJ na prefeitura de Los Santos!!"PlayerName(playerid), playerid);
                   
SendClientMessageToAll(COR_CVstring);
               }
               case 
6:
            {
                for(new 
i<MAX_PLAYERSi++)
            {
                
StopAudioStreamForPlayer(i);
                
format(stringsizeof(string), "O Player %s[%d]Parou como DJ na prefeitura de Los Santos!"PlayerName(playerid), playerid);
                   
SendClientMessagel(iCOR_CVstring);
               }
        }
    }
stock MusicaTodos(musica[])
{
    for(new 
i<MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
        
PlayAudioStreamForPlayer(imusica);
        }
    }
    return 
1;

Reply


Messages In This Thread
Musicas - by CaioTesio - 21.03.2015, 03:18
Re: Musicas - by arakuta - 21.03.2015, 03:20
Re: Musicas - by CaioTesio - 21.03.2015, 03:21
Re: Musicas - by #Luca[S]. - 21.03.2015, 03:23
Re: Musicas - by CaioTesio - 21.03.2015, 14:49
Re: Musicas - by #Luca[S]. - 21.03.2015, 15:25
Re: Musicas - by Dayvison_ - 21.03.2015, 15:27
Re: Musicas - by CaioTesio - 21.03.2015, 18:05
Re: Musicas - by #Luca[S]. - 21.03.2015, 18:31
Re: Musicas - by CaioTesio - 21.03.2015, 18:47

Forum Jump:


Users browsing this thread: 4 Guest(s)