Tipw todos menus pegao mais o desonestas+1 e o +2 nao tao funfando nao pega a prof e ta tudo certin
Код HTML:
if(dialogid == 2571)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, Baixa, DIALOG_STYLE_LIST, "Transporte Publico", "Motorista De Фnibus - 0 {33ff33}R$700{FFFFFF}\nTaxista - 0 {33ff33}R$600{FFFFFF}\n{FF6600}<(Voltar)", "Trabalhar", "Cancelar");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, Honestas, DIALOG_STYLE_LIST, "Transporte", "Caminhoneiro - 0 {33ff33}R$1000\n{FF6600}<(Voltar)", "Trabalhar", "Cancelar");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, Honestas2, DIALOG_STYLE_LIST, "Particulares", "Seguranca Particular - 20 {33ff33}R$800{FFFFFF}\nMotorista Particular - 20 {33ff33}R$800\n{FF6600}<(Voltar)", "Trabalhar", "Cancelar");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, Desonestas, DIALOG_STYLE_LIST, "Policia", "Guarda De Transito - 60 {33ff33}R$900{FFFFFF}\nPolicial Civil - 80 {33ff33}R$1500{FFFFFF}\nPolicial Militar - 100 {33ff33}R$1800{FFFFFF}\nDelegado - 170 {33ff33}R$2500{FFFFFF}\nSwat - 200 {33ff33}R$3000{FFFFFF}\n{FF6600}<(Voltar)", "Trabalhar", "Cancelar");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, Desonestas+1, DIALOG_STYLE_LIST, "Governo", "Prefeito - 350 {33ff33}R$4000{FFFFFF}\nPresidente - 600 {33ff33}R$5000{FFFFFF}\n{FF6600}<(Voltar)", "Trabalhar", "Cancelar");
}
if(listitem == 5)
{
ShowPlayerDialog(playerid, Desonestas+2, DIALOG_STYLE_LIST, "Crime", "Traficante De Drogas - 15 {33ff33}R$700{FFFFFF}\nTraficante De Armas - 15 {33ff33}R$750{FFFFFF}\nAssasino - 200 {33ff33}R$800{FFFFFF}\nChefe Da Marfia - 250 {33ff33}R$1500{FFFFFF}\n{FF6600}<(Voltar)", "OK", "Cancelar");
}
}
}
if(dialogid == Baixa) // Transporte Publico
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response)
{
if(listitem == 0)
{
if(dini_Int(file, "Level")> 0)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Motorista De Onibus.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
dini_IntSet(file, "Profissao", 58);
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 17);
Logarprof(playerid);
return 0;
}
else
{
SendClientMessage(playerid, Vermelho, "(INFO) Vocк nгo carteira de trabalho, vб atй o Cartorio e assine.");
}
}
if(listitem == 1)
{
if(dini_Int(file, "Level")> 0)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й uma Taxista");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
dini_IntSet(file, "Profissao", 26);
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 262);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Requer: %d De level.",dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 2) // Voltar
{
ShowPlayerDialog(playerid,2571,DIALOG_STYLE_LIST,"Empregos", "Transporte Publico\nTransporte\nParticulares\nPolicia\nGoverno\nCrime","Ok","Voltar");
}
}
}
if(dialogid == Honestas) // Transporte
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response)
{
if(listitem == 0)
{
if(dini_Int(file, "Level")> 0){
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Caminhoneiro.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
dini_IntSet(file, "Profissao", 64);
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 255);
Logarprof(playerid);
return 0;
}
else
{
SendClientMessage(playerid, Vermelho, "(INFO) Vocк nгo tem carteira de trabalho, vб atй o Cartorio e assine.");
}
}
if(listitem == 1) // Voltar
{
ShowPlayerDialog(playerid,2571, DIALOG_STYLE_LIST, "Prefeitura - Empregos", "Profissхes Classe Mйdia\nProfissхes Classe Mйdia2\nProfissхes Criminosas\nFuncionбrios Pъblicos", "OK", "Voltar");
}
}
}
if(dialogid == Honestas2) // Particulares
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response)
{
if(listitem == 0)
{
if(dini_Int(file, "Level")> 20)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Seguranca Particular.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 165);
dini_IntSet(file, "Profissao", 35);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Requer: %d De level.",dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 1)
{
if(dini_Int(file, "Level")> 20)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Motorista Particular.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 255);
dini_IntSet(file, "Profissao", 1);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Requer: %d De level.",dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 2) // Voltar
{
ShowPlayerDialog(playerid,2571,DIALOG_STYLE_LIST,"Empregos", "Transporte Publico\nTransporte\nParticulares\nPolicia\nGoverno\nCrime","Ok","Cancelar");
}
}
}
if(dialogid == Desonestas) // Policias
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response)
{
if(listitem == 0)
{
if(dini_Int(file, "Level")> 60)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Guarda De Transito.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 282);
dini_IntSet(file, "Profissao", 2);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Requer: %d De level.",dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 1)
{
if(dini_Int(file, "Level")> 80)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Policia Civil.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 280);
dini_IntSet(file, "Profissao", 5);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Requer: %d De level.",dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 2)
{
if(dini_Int(file, "Level")> 100)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Policia Militar.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 281);
dini_IntSet(file, "Profissao", 4);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Requer: %d De level.",dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 3)
{
if(dini_Int(file, "Level")> 170)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Delegado.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 266);
dini_IntSet(file, "Profissao", 7);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Requer: %d De level.",dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 4)
{
if(dini_Int(file, "Level")> 200)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Swat.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 285);
dini_IntSet(file, "Profissao", 9);
Logarprof(playerid);
return 0;
}
if(listitem == 5) // Voltar
{
ShowPlayerDialog(playerid,2571,DIALOG_STYLE_LIST,"Empregos", "Transporte Publico\nTransporte\nParticulares\nPolicia\nGoverno\nCrime","Ok","Cancelar");
}
}
}
if(dialogid == Desonestas+1) // Crime
{
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response)
{
if(listitem == 0) // Prefeito
{
if(dini_Int(file, "Level") > 350)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Prefeito.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 113);
dini_IntSet(file, "Profissao", 46);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Vocк nao tem level suficiente level necessario %d/40", dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 1)
{
if(dini_Int(file, "Level") > 600)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Presidente.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 120);
dini_IntSet(file, "Profissao", 47);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Vocк nao tem level suficiente", dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 2) // Voltar
{
ShowPlayerDialog(playerid,2571,DIALOG_STYLE_LIST,"Empregos", "Transporte Publico\nTransporte\nParticulares\nPolicia\nGoverno\nCrime","Ok","Voltar");
}
}
}
if(dialogid == Desonestas+2) // Crime
{
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response)
{
if(listitem == 0) // Traficante de Drogas
{
if(dini_Int(file, "Level") > 15)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Traficante de Drogas.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 104);
dini_IntSet(file, "Profissao", 44);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Vocк nao tem level suficiente level necessario %d/40", dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 1)
{
if(dini_Int(file, "Level") > 15)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Traficante De Armas.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 116);
dini_IntSet(file, "Profissao", 11);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Vocк nao tem level suficiente", dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 2)
{
if(dini_Int(file, "Level") > 200)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Assasino.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 121);
dini_IntSet(file, "Profissao", 12);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Vocк nao tem level suficiente level necessario %d/60", dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 3) // ChefeDaMarfia
{
if(dini_Int(file, "Level") > 80)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Terrorista.");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 102);
dini_IntSet(file, "Profissao", 13);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Vocк nao tem level suficiente level necessario %d/90", dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
if(listitem == 4)
{
if(dini_Int(file, "Level") > 250)
{
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Chefe Da Marfia .");
SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao.");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
SetPlayerSkin(playerid, 162);
dini_IntSet(file, "Profissao", 14);
Logarprof(playerid);
return 0;
}
else
{
format(string, sizeof(string), "Vocк nao tem level suficiente level necessario %d/25", dini_Int(file, "Level"));
SendClientMessage(playerid, Vermelho, string);
}
}
}
}
}
Nгo entendi a sua dъvida, poderia explicar melhor e postar a бrea mais focada do cуdigo ..?