SA-MP Forums Archive
/vip nao fuciona - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: /vip nao fuciona (/showthread.php?tid=178541)



/vip nao fuciona - rene20 - 22.09.2010

if (strcmp(cmd, "/vips", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, "~x Vips Online: x~");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pVIP] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "VIP: %s[VIP Normal]", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
else if(PlayerInfo[i][pVIP] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256, "VIP: %s[VIP Premium]",sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}

Nao aparece os vips online .... POr faovr ajuda


Re: /vip nao fuciona - KevinsL - 22.09.2010

Vocк й VIP mesmo? /editar id 10 3 = Vip Simples e /editar id 10 4 = Vip Premium


Re: /vip nao fuciona - rene20 - 22.09.2010

Eu sei disso
Mas os vips onlines nao aparecem


Re: /vip nao fuciona - Rodolfo_Halls - 22.09.2010

concerteza vc nao e vip


Re: /vip nao fuciona - Lуs - 22.09.2010

Substitui por esse:

pawn Код:
if (strcmp(cmd, "/vips", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            SendClientMessage(playerid, COLOR_GRAD1, "VIPS Online:");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pVIP] >= 1)
                    {
                        new admtext[64];
                        if(PlayerInfo[i][pVIP] == 4) { admtext = "Jogador Vip [Premium]"; }
                        else if(PlayerInfo[i][pVIP] == 3) { admtext = "Jogador Vip [Normal]"; }
                        else { admtext = "Jogador Vip"; }
                        GetPlayerName(i, sendername, sizeof(sendername));
                        {
                            format(string, 256, "%s ( %s )", sendername, admtext);
                            SendClientMessage(playerid, COLOR_GREY, string);
                        }
                    }
                }
            }
        }
        return 1;
    }
E tenta botar os codes em [ pawn ] [ /pawn ]