[Ajuda] Duvida no cmd /vips
#1

Gostaria de saber se esse comando estб certo, a ordem das funзхes e o loop..., pq meu comando anterior depois desse estava mostrando os players q nгo eram vips e vips tambem

Comando que eu quero saber se estб certo...
pawn Код:
CMD:vips(playerid, params[])
{
    new Str[85];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(pVip[playerid][Vip] >= 1)
            {
                format(Str,sizeof(Str), "{FFFF00}%s: {FFFFFF}%s", GetName(i));
                ShowPlayerDialog(playerid, DialogVips, DIALOG_STYLE_MSGBOX, "Jogadores VIPs", Str, "X", "");
            }
        }
    }
    if(pVip[playerid][Vip] <= 0)
    {
        format(Str,sizeof(Str), "Nenhum jogador vip estб online!");
        ShowPlayerDialog(playerid, DialogVipsOff, DIALOG_STYLE_LIST, "Jogadores VIPs", Str, "X", "");
    }
    return 1;
}

Comando anterior:

pawn Код:
CMD:vips(playerid)
{
    new strings[85];
    new count;
    SendClientMessage(playerid, 0x33AAFFFF, "•~~~~~~~~ Jogadores VIP online ~~~~~~~~•");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(pVip[playerid][Vip] >= 1)
        {
            if(IsPlayerConnected(i))
            {
                format(strings, sizeof(strings), "%s", GetName(i));
                SendClientMessage(playerid, 0xE3E3E3FF, strings);
                count++;
            }
        }
    }
    if(count == 0)
    return SendClientMessage(playerid, 0xD8D8D8FF, "Nгo tem nenhum jogador vip on-line!");

return true;
}
Reply


Messages In This Thread
Duvida no cmd /vips - by viniciussvl - 12.01.2016, 15:44
Re: Duvida no cmd /vips - by EditPawn - 12.01.2016, 15:53
Re: Duvida no cmd /vips - by viniciussvl - 12.01.2016, 17:35
Re: Duvida no cmd /vips - by EditPawn - 12.01.2016, 17:41
Re: Duvida no cmd /vips - by viniciussvl - 12.01.2016, 23:40
Re: Duvida no cmd /vips - by ClaudioF - 12.01.2016, 23:45

Forum Jump:


Users browsing this thread: 1 Guest(s)