[Ajuda] Habilitaзгo!
#1

Gente to querendo bota perguntas antes de ser adquirir a carteira de habilitaзгo, mais nгo esta aparecendo o dialog uso a gm Brasil Magic Games !
PHP код:
if(dialogid == 510)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                  
ShowPlayerDialog(playerid5115DIALOG_STYLE_LIST"Marque a resposta certa:""a- Andar com o veнculo no lado esquerdo\nb- Andar com o veнculo no lado direito\nc- Atropelar todos pela frente\nd- Beber e dirigir""Confirmar""Cancelar");
            }
        }
        return 
1;
    }
    if(
dialogid == 5115)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
SendClientMessage(playeridCOLOR_WHITE" Vocк errou ou cancelou a Prova.");
            }
            if(
listitem == 1)
            {
                
ShowPlayerDialog(playerid5116DIALOG_STYLE_LIST"O sinal verde significa ?""a- Pare\nb- Atencao\nc- Siga em Frente\nd- Significa nada""Confirmar""Cancelar");
            }
            if(
listitem == 2)
            {
                
SendClientMessage(playeridCOLOR_WHITE" Vocк errou ou cancelou a Prova.");
            }
            if(
listitem == 3)
            {
                
SendClientMessage(playeridCOLOR_WHITE" Vocк errou ou cancelou a Prova.");
            }
        }
        return 
1;
    }
    if(
dialogid == 5116)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
SendClientMessage(playeridCOLOR_WHITE" Vocк errou ou cancelou a Prova.");
            }
            if(
listitem == 1)
            {
                
SendClientMessage(playeridCOLOR_WHITE" Vocк errou ou cancelou a Prova.");
            }
            if(
listitem == 2)
            {
                
ShowPlayerDialog(playerid5117DIALOG_STYLE_LIST"O sinal azul significa ?""a- Atencao\nb- Pare\nc- Siga em Frente\nd- Significa nada""Confirmar""Cancelar");
            }
            if(
listitem == 3)
            {
                
SendClientMessage(playeridCOLOR_WHITE" Vocк errou ou cancelou a Prova.");
            }
        }
        return 
1;
    }
    if(
dialogid == 5117)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
SendClientMessage(playeridCOLOR_WHITE" Vocк errou ou cancelou a Prova.");
            }
            if(
listitem == 1)
            {
                
SendClientMessage(playeridCOLOR_WHITE" Vocк errou ou cancelou a Prova.");
            }
            if(
listitem == 2)
            {
                
SendClientMessage(playeridCOLOR_WHITE" Vocк errou ou cancelou a Prova.");
            }
            if(
listitem == 3)
            {
                
GivePlayerMoney(playerid,-600);
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"Vocк passou na Prova e adquiriu sua carteira de motorista -R$600!");
                
PlayerInfo[playerid][pCarLic] = 1;
            }
        }
        return 
1;
    } 
й
PHP код:
if(dialogid == 2571)
    {
        
TogglePlayerControllable(playerid1);
        
EmDialog[playerid] = 0;
        if(
response == 0) { return 1; }
        switch(
listitem)
        {
            case 
0:
            {
                
//Motorista
                
if(GetPlayerMoneyEx(playerid) < 2000) return SendClientMessage(playerid,COLOR_GREY,"Vocк nгo tem R$2000 para comprar!");
                
TogglePlayerControllable(playerid1);
                
GivePlayerMoney(playerid,-2000);
                
BizzInfo[5][bTill] += 2000;
                
ExtortionBiz(52000);
                
PlayerInfo[playerid][pCarLic] = 1;
                
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Comprou a Licenзa De Motorista!");
            }
            case 
1:
            {
                
//Voo
                
if(GetPlayerMoneyEx(playerid) < 2500) return SendClientMessage(playerid,COLOR_GREY,"Vocк nгo tem R$2500 para comprar");
                
TogglePlayerControllable(playerid1);
                
GivePlayerMoney(playerid,-2500);
                
BizzInfo[5][bTill] += 2500;
                
ExtortionBiz(52500);
                
PlayerInfo[playerid][pFlyLic] = 1;
                
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Comprou a Licenзa De Voo!");
            }
            case 
2:
            {
                
//Navegacao
                
if(GetPlayerMoneyEx(playerid) < 2000) return SendClientMessage(playerid,COLOR_GREY,"Vocк nгo R$2000 para comprar!");
                
TogglePlayerControllable(playerid1);
                
GivePlayerMoney(playerid,-2000);
                
BizzInfo[5][bTill] += 2000;
                
ExtortionBiz(52000);
                
PlayerInfo[playerid][pBoatLic] = 1;
                
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Comprou a Licenзa De Navegaзгo!");
            }
            case 
3:
            {
                
//Pesca
                
if(GetPlayerMoneyEx(playerid) < 1000) return SendClientMessage(playerid,COLOR_GREY,"Vocк nгo tem R$1000 para comprar!");
                
TogglePlayerControllable(playerid1);
                
GivePlayerMoney(playerid,-1000);
                
BizzInfo[5][bTill] += 1000;
                
ExtortionBiz(51000);
                
PlayerInfo[playerid][pFishLic] = 1;
                
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Comprou a Licenзa De Pesca!");
            }
            case 
4:
            {
                
//Armas
                
if(GetPlayerMoneyEx(playerid) < 2500) return SendClientMessage(playerid,COLOR_GREY,"Vocк nгo tem R$2500 para comprar!");
                
TogglePlayerControllable(playerid1);
                
GivePlayerMoney(playerid,-2500);
                
BizzInfo[5][bTill] += 2500;
                
ExtortionBiz(52500);
                
PlayerInfo[playerid][pGunLic] = 1;
                
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Comprou a Licenзa De Armas!");
            }
        }
    } 
Reply


Messages In This Thread
Habilitaзгo! - by Pablo_Mantega - 09.01.2014, 19:41
[No subject] - by Pablo_Mantega - 09.01.2014, 19:59
Re: Ajuda Habilitaзгo! - by Breno Da Silva Pereira - 09.01.2014, 21:03
Re: Ajuda Habilitaзгo! - by Pablo_Mantega - 09.01.2014, 21:33

Forum Jump:


Users browsing this thread: 2 Guest(s)