CMD:top10(playerid)
{
if(Player[playerid][pLogged] == false)return SendClientMessage(playerid, COR_ERRO, "Vocк nгo estб logado!");
StringTop10[0]=EOS;
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Score\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Kill\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Money\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Duelo Vencidos\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Duelos Perdidos\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Procurado\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Hits\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}MTXHits\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Vips\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Cifrгo\n");
ShowPlayerDialog(playerid, 5009, DIALOG_STYLE_LIST, "{6B0C0C}» {FFFFFF}Top 10 - Servidor", StringTop10, "Ver", "Cancelar");
return 1;
}
if(dialogid == DIALOG_top10)
{
if(!response) { return 1; }
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » Level", getrank("Score", "Level"), "Voltar", "");
}
case 1:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » Matou", getrank("Kill", "Matou"), "Voltar", "");
}
case 2:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » Dinheiro R$", getrank("Money", "Dinheiro R$"), "Voltar", "");
}
case 3:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » Duel Winners", getrank("DueloW", "Duelos ganhos"), "Voltar", "");
}
case 4:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » Duel Losers", getrank("DueloL", "Duelos perdidos"), "Voltar", "");
}
case 5:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » Procurado", getrank("Procurado", "Procurado"), "Voltar", "");
}
case 6:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » Hits", getrank("Hits", "Hits"), "Voltar", "");
}
case 7:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » MTXHits", getrank("MTXHits", "Hits"), "Voltar", "");
}
case 8:
{
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » Vips", getrank("Vips", "Tempo"), "Voltar", "");
}
}
return 1;
}
if(dialogid == DIALOG_top10) troca por if(dialogid == 5009)
PHP код:
|
#define Dialog_Top10 5009
CMD:top10(playerid)
{
if(Player[playerid][pLogged] == false)return SendClientMessage(playerid, COR_ERRO, "Vocк nгo estб logado!");
StringTop10[0]=EOS;
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Score\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Kill\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Money\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Duelo Vencidos\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Duelos Perdidos\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Procurado\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Hits\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}MTXHits\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Vips\n");
strcat(StringTop10, "{6B0C0C} » {FFFFFF}Cifrгo\n");
ShowPlayerDialog(playerid, Dialog_Top10, DIALOG_STYLE_LIST, "{6B0C0C}» {FFFFFF}Top 10 - Servidor", StringTop10, "Ver", "Cancelar");
return 1;
}
case 0:
{
SendClientMessage(playerid, COR_ERRO, "Chamou o case 0, apenas o Dialog n apareceu");
ShowPlayerDialog(playerid, 5008, DIALOG_STYLE_TABLIST_HEADERS, "{00FF00}»{FFFFFF}Top 10 » Level", getrank("Score", "Level"), "Voltar", "");
}
if(dialogid == 5008)
{
return cmd_rank(playerid);
}