/vip nao fuciona
#1

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
Reply
#2

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

Eu sei disso
Mas os vips onlines nao aparecem
Reply
#4

concerteza vc nao e vip
Reply
#5

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 ]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)