[Pedido] [Criaзгo&Escolha de Gangs por dialog
#2

Cara eu nгo te entendo, vocк tem a lуgica toda e nгo sabe fazer... difнcil em, mas fiz aqui uma base pra ti, acho que era isso que tu queria.

PHP код:
new Fac_ComandoVermelho[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
    
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_TABLIST_HEADERS, "Escolha uma org", "Facзгo\tSigla\nComando Vermelho\tV", "Selecionar", "");
    return 
1;
}
public 
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

    if(
dialogid == 1)
    {
         
         if(!
response) return SendClientMessage(playerid, -1, "voce fechou a dialog");
         if(
listitem == 0)
         {
             
SendClientMessage(playerid, -1, "Vocк optou por entrar na Facзгo Comando vermelho, parabйns");
             
Fac_ComandoVermelho[playerid] = 1;
             
SetPlayerPos(playerid, 0, 0, 0);

         }

    }
    return 
1;
} 
Dica: Estude variбveis.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)