[Ajuda] Sistema de tutorial
#1

Bom,eu fiz um sistema de tutorial na minha gm ai pra quando termina ele comeзa o dialog de escolher a gang mais nao vai termina o tutorial e nao comeзa o de escolher gang
Codigo tutorial
PHP код:
    case DIALOG_REGRAS:
    {
        if(
response)
        {
            if(
Jogador[playerid][pvRegras] == 0)
            {
                
TirarTextDrawLogin(playerid);
                
PlayerPlaySound(playerid,1149,0.0,0.0,0.0);
                
SetPlayerCameraPos(playerid1473.0959,-1587.3617,79.9308);
                
SetPlayerCameraLookAt(playerid1483.7644,-1659.1058,28.7769);
                
Jogador[playerid][pvRegras] = 1;
                new 
st[1000];
                
strcat(st"{FFFFFF}FAZENDO AINDA\n"sizeof st);
                
ShowPlayerDialog(playeridDIALOG_REGRASDIALOG_STYLE_MSGBOX"{FFFFFF}Explicaзгo do Servidor {0000EE}1/5"st"Proximo""Voltar");
            }
            else if(
Jogador[playerid][pvRegras] == 1)
            {
                
TirarTextDrawLogin(playerid);
                
PlayerPlaySound(playerid,1149,0.0,0.0,0.0);
                
SetPlayerCameraPos(playerid1473.0959,-1587.3617,79.9308);
                
SetPlayerCameraLookAt(playerid1483.7644,-1659.1058,28.7769);
                new 
st[1000];
                
Jogador[playerid][pvRegras] = 2;
                
strcat(st"{FFFFFF}FAZENDO AINDA\n"sizeof st);
                
ShowPlayerDialog(playeridDIALOG_REGRASDIALOG_STYLE_MSGBOX"{{FFFFFF}Regras Principais {0000EE}2/5"st"Proximo""Voltar");
            }
            else if(
Jogador[playerid][pvRegras] == 2)
            {
                
TirarTextDrawLogin(playerid);
                
PlayerPlaySound(playerid,1149,0.0,0.0,0.0);
                
SetPlayerCameraPos(playerid563.3523,-1225.7898,117.8663);
                
SetPlayerCameraLookAt(playerid627.3071,-1130.5742,113.2172);
                
Jogador[playerid][pvRegras] = 3;
                new 
st[1000];
                
strcat(st"{FFFFFF}FAZENDO AINDA\n"sizeof st);
                
ShowPlayerDialog(playeridDIALOG_REGRASDIALOG_STYLE_MSGBOX"{FFFFFF}Redes Sociais {0000EE}3/5"st"Proximo""Voltar");
            }
            else if(
Jogador[playerid][pvRegras] == 3)
            {
                
TirarTextDrawLogin(playerid);
                
PlayerPlaySound(playerid,1149,0.0,0.0,0.0);
                
SetPlayerCameraPos(playerid2081.1199,-1035.0262,113.4360);
                
SetPlayerCameraLookAt(playerid2175.6904,-1027.3837,75.6326);
                
Jogador[playerid][pvRegras] = 4;
                new 
st[1000];
                
strcat(st"{FFFFFF}FAZENDO AINDA\n"sizeof st);
                
ShowPlayerDialog(playeridDIALOG_REGRASDIALOG_STYLE_MSGBOX"{FFFFFF}Administraзгo {0000EE}4/5"st"Proximo""Voltar");
            }
            else if(
Jogador[playerid][pvRegras] == 4)
            {
                
TirarTextDrawLogin(playerid);
                
PlayerPlaySound(playerid,1149,0.0,0.0,0.0);
                
SetPlayerCameraPos(playerid2476.4539,-1374.4449,124.6351);
                
SetPlayerCameraLookAt(playerid2414.1274,-1305.3009,99.3433);
                
Jogador[playerid][pvRegras] = 4;
                new 
st[1000];
                
strcat(st"{FFFFFF}FAZENDO AINDA\n"sizeof st);
                
ShowPlayerDialog(playeridDIALOG_GANGSDIALOG_STYLE_MSGBOX"{FFFFFF}Vantagens VIP {0000EE}5/5"st"Proximo""Voltar");
            }
            else if(
Jogador[playerid][pvRegras] == 5)
            {
                
Jogador[playerid][pvRegras] = 6;
                
//Agora o resto й com vocк.
                //O valor 6 no pvRegras significa que le jб terminou.
            
}
        }
    } 
Reply
#2

em qual funзгo vocк colocou isso?
Reply
#3

em OnDialogResponse
Reply
#4

Procure o cуdigo de mostrar a dialog de gangs, depois insira ele no ъltimo if, onde estб comentado.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)