Help: /vips command!
#5

Quote:
Originally Posted by tyler12
Посмотреть сообщение
pawn Код:
CMD:vips(playerid, params[])
{
    new count = 0, string[256];
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            if(gPlayerInfo[i][PLAYER_VIP] == 1)
            {
                format(string, sizeof(string),"%sVip Level 1:{B3754D} %s [BRONZE]\n", string, PlayerName(i));
                count++;
            }
            if(gPlayerInfo[i][PLAYER_VIP] == 2)
            {
                format(string, sizeof(string),"%sVip Level 2:{BBBBBB} %s [SILVER]\n", string, PlayerName(i));
                count++;
            }
            if(gPlayerInfo[i][PLAYER_VIP] == 3)
            {
                format(string, sizeof(string),"%sVip Level 3:{CCBD33} %s [GOLD]\n", string, PlayerName(i));
                count++;
            }
        }
    }
    if(count == 0)
    {
        ShowPlayerDialog(playerid, 117, DIALOG_STYLE_MSGBOX, "{09F709}Online Vips:", "----|There are Currently No Vips Online|----", "Ok", "");
    }
    else
    {
        ShowPlayerDialog(playerid, 117, DIALOG_STYLE_MSGBOX, "{09F709}Online Vips:", string, "Ok", "");
    }
    return 1;
}
Thanks
Reply


Messages In This Thread
Help: /vips command! - by Areax - 17.04.2013, 13:53
Re: Help: /vips command! - by Areax - 17.04.2013, 14:14
AW: Help: /vips command! - by ulbi1990 - 17.04.2013, 14:22
Re: Help: /vips command! - by tyler12 - 17.04.2013, 14:36
Re: Help: /vips command! - by Areax - 17.04.2013, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)