[Ajuda] Problema com dialog
#1

Estou com o problema com dialog de escolher equipe no gamemode tdm.

Eu troquei o modo de escolher a equipe de AddPlayerClass para escolha por Dialog
sу que quando o player morre, ao invez de spawnar normal, abre o dialog de escolher equipe, alguem pode me ajudar?

PHP код:
//===========Gangs
new policia[] = {280,281,282,283,284};
new 
Grove[] = {270,269,105,106,107};
new 
Yakusa[] = {120,121,122,123,294};
new 
LCN[] = {272,126,125,124};
new 
Motoqueiro[] = {100,247,248,254}; 
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
ShowPlayerDialog(playeridDIALOG_GANGSDIALOG_STYLE_LIST"Escolha sua equipe""{345ACF}- Policia\n{2EAD15}- Grove Street\n{F5E618}- Yakusa\n{FFFFFF}- LCN\n{F00A21}- Motoqueiro""Spawn""");

E isso й em public OnDialogResponse

PHP код:
        case DIALOG_GANGS:
        {
            if(!
response) return 0;
            else
            {
                if(
listitem == 0)
                {
                
SetSpawnInfo(playerid0policia[random(3)], 1574.1970,-1695.8732,6.2188,183.9633,0,0,0,0,0,);
                
SetPlayerColor(playerid0x4169E199);
                
SetPlayerTeam(playerid0);
                }
                if(
listitem == 1)
                {
                
SetSpawnInfo(playerid1Grove[random(3)], 2495.2100,-1684.3300,13.5155,0.1000,0,0,0,0,0,);
                
SetPlayerColor(playerid0x2EAD15FF);
                
SetPlayerTeam(playerid1);
                }
                if(
listitem == 2)
                {
                
SetSpawnInfo(playerid2Yakusa[random(3)], 2179.9097,-2256.3252,14.7734,311.9376,0,0,0,0,0,);
                
SetPlayerColor(playerid0xF0E007FF);
                
SetPlayerTeam(playerid2);
                }
                if(
listitem == 3)
                {
                
SetSpawnInfo(playerid3LCN[random(3)], 1265.7200,-2048.1599,59.2666,0.1000,0,0,0,0,0,);
                
SetPlayerColor(playerid0xFFFFFFFF);
                
SetPlayerTeam(playerid3);
                }
                if(
listitem == 4)
                {
                
SetSpawnInfo(playerid4Motoqueiro[random(3)], 1679.3274,-2112.5862,13.5469,270.7365,0,0,0,0,0,);
                
SetPlayerColor(playerid0xF00A21FF);
                
SetPlayerTeam(playerid4);
                }
                
SpawnPlayer(playerid);
            }
        } 
Reply


Messages In This Thread
Problema com dialog - by axellech - 18.02.2018, 10:37
Re: Problema com dialog - by HelderPT - 18.02.2018, 10:55
Re: Problema com dialog - by axellech - 18.02.2018, 11:04
Re: Problema com dialog - by n0minal - 18.02.2018, 11:47
Re: Problema com dialog - by axellech - 18.02.2018, 15:15

Forum Jump:


Users browsing this thread: 4 Guest(s)