[Ajuda] dialog radio
#7

Cara tira tudo que vocк fez, e coloca esse FilterScript que fiz!

PHP код:
#include <a_samp>
new bool:OuvirRadio[MAX_PLAYERS];
#define Dialog_radio 776
public OnPlayerConnect(playerid)
{
    
OuvirRadio[playerid] = true;
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    if(
OuvirRadio[playerid] == true)
    {
        
ShowPlayerDialog(playeridDialog_radioDIALOG_STYLE_LIST"CONTINUAR COM A MUSICA""{00FF00}SIM\n{FF0000}NГO""OK""");
        
SendClientMessage(playerid, -1"ola igor");
        return 
1;
    }
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if (
dialogid == Dialog_radio)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
SendClientMessage(playerid, -1"[INFO]: Radio Continuara tocando");
                
OuvirRadio[playerid] = false;
                return 
1;
            }
            if(
listitem == 1)
            {
                
SendClientMessage(playerid, -1"[INFO]: A reproduзгo de rбdios ou sons web foi parada");
                
StopAudioStreamForPlayer(playerid);
                
OuvirRadio[playerid] = false;
                return 
1;
            }
        }
        return 
1;
    }
    return 
1;

Reply


Messages In This Thread
dialog radio - by leandr58 - 20.08.2015, 02:02
Re: dialog radio - by IgorLuiz - 20.08.2015, 02:14
Re: dialog radio - by iTakelot - 20.08.2015, 02:15
Re: dialog radio - by leandr58 - 20.08.2015, 02:51
Re: dialog radio - by iTakelot - 20.08.2015, 03:09
Re: dialog radio - by leandr58 - 20.08.2015, 03:12
Re: dialog radio - by IgorLuiz - 20.08.2015, 04:44

Forum Jump:


Users browsing this thread: 2 Guest(s)