27.11.2016, 19:27
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 tutorialPHP код:
case DIALOG_REGRAS:
{
if(response)
{
if(Jogador[playerid][pvRegras] == 0)
{
TirarTextDrawLogin(playerid);
PlayerPlaySound(playerid,1149,0.0,0.0,0.0);
SetPlayerCameraPos(playerid, 1473.0959,-1587.3617,79.9308);
SetPlayerCameraLookAt(playerid, 1483.7644,-1659.1058,28.7769);
Jogador[playerid][pvRegras] = 1;
new st[1000];
strcat(st, "{FFFFFF}FAZENDO AINDA\n", sizeof st);
ShowPlayerDialog(playerid, DIALOG_REGRAS, DIALOG_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(playerid, 1473.0959,-1587.3617,79.9308);
SetPlayerCameraLookAt(playerid, 1483.7644,-1659.1058,28.7769);
new st[1000];
Jogador[playerid][pvRegras] = 2;
strcat(st, "{FFFFFF}FAZENDO AINDA\n", sizeof st);
ShowPlayerDialog(playerid, DIALOG_REGRAS, DIALOG_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(playerid, 563.3523,-1225.7898,117.8663);
SetPlayerCameraLookAt(playerid, 627.3071,-1130.5742,113.2172);
Jogador[playerid][pvRegras] = 3;
new st[1000];
strcat(st, "{FFFFFF}FAZENDO AINDA\n", sizeof st);
ShowPlayerDialog(playerid, DIALOG_REGRAS, DIALOG_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(playerid, 2081.1199,-1035.0262,113.4360);
SetPlayerCameraLookAt(playerid, 2175.6904,-1027.3837,75.6326);
Jogador[playerid][pvRegras] = 4;
new st[1000];
strcat(st, "{FFFFFF}FAZENDO AINDA\n", sizeof st);
ShowPlayerDialog(playerid, DIALOG_REGRAS, DIALOG_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(playerid, 2476.4539,-1374.4449,124.6351);
SetPlayerCameraLookAt(playerid, 2414.1274,-1305.3009,99.3433);
Jogador[playerid][pvRegras] = 4;
new st[1000];
strcat(st, "{FFFFFF}FAZENDO AINDA\n", sizeof st);
ShowPlayerDialog(playerid, DIALOG_GANGS, DIALOG_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.
}
}
}