Код:
}
if(dialogid == 5008)
{
return OnPlayerCommandText(playerid,"/rank");
}
if(dialogid == 5009)
{
if(!response)return 1;
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Nнvel", getrank("nivel", "Nнveis"), "Voltar", "");
}
case 1:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Horas Jogadas", getrank("horasjogadas", "Horas"), "Voltar", "");
}
case 2:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Kills", getrank("kills", "Kills"), "Voltar", "");
}
case 3:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Vezes que morreu", getrank("mortes", "Morreu"), "Voltar", "");
}
case 4:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Dinheiro", getrank("banco", "Grana"), "Voltar", "");
}
case 5:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Crimes Cometidos", getrank("crimes", "Crimes"), "Voltar", "");
}
case 6:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Materiais", getrank("materiais", "Materiais"), "Voltar", "");
}
case 7:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Maconha", getrank("maconha", "Gramas"), "Voltar", "");
}
case 8:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Cocaina", getrank("cocaina", "Pу"), "Voltar", "");
}
case 9:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Crack", getrank("crack", "Pedras"), "Voltar", "");
}
case 10:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_LIST, "Rank: Contratos Cumpridos", getrank("contratos", "Contratos"), "Voltar", "");
}
}
return 1;
}