[Ajuda] /vips mostrando todos players online
#1

Boa noite galera, esse comando /vips ta mostrando todos os jogadores online pra quem й vip e usou ele, e quem nгo й vip e usou o comando fala q nao tem nenhum jogador vip online... o certo seria mostrar sу os vips pra todos os players

pawn Код:
CMD:vips(playerid)
{
    new ContarVIPs = 0;
    new StringCat[1000];

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerVIP(playerid))
            {
                format(Str, sizeof(Str), "{00FFFF}%s {FFFFFF}[{00FFFF}%i{FFFFFF}]\n", PlayerName(i), i);
                strcat(StringCat, Str);
                ContarVIPs++;
            }
        }
    }

    if(ContarVIPs == 0)
        ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_MSGBOX, "{FFFFFF}VIPs Online [{FF0000} 0{FFFFFF}]", "{FF0000}Nenhum VIP online!", "Fechar", #);
    else if(ContarVIPs == 1)
        ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_MSGBOX, "{FFFFFF}VIPs Online [{00BFFF} 1 {FFFFFF}]", StringCat, "Fechar", #);
    else {
        format(Str, sizeof(Str), "{FFFFFF}VIPs Online [{00BFFF} %d {FFFFFF}]", ContarVIPs);
        ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_MSGBOX, Str, StringCat, "Fechar", #);
    }
    return 1;
}
Reply


Messages In This Thread
/vips mostrando todos players online - by viniciussvl - 13.01.2016, 21:12
Re: /vips mostrando todos players online - by ipsLuan - 13.01.2016, 21:24
Re: /vips mostrando todos players online - by viniciussvl - 13.01.2016, 21:34
Re: /vips mostrando todos players online - by Coringa_Vilao - 13.01.2016, 21:35
Re: /vips mostrando todos players online - by viniciussvl - 14.01.2016, 00:20
Re: /vips mostrando todos players online - by ViNi2001 - 20.01.2016, 00:43

Forum Jump:


Users browsing this thread: 1 Guest(s)