Help Me Please
#3

Or you can try this i hope it works and give me reputation
Код:
CMD:vips(playerid, params[])
{
    SendClientMessage(playerid, green, " ");
    SendClientMessage(playerid, green, "___________ |- Online VIPs -| ___________");
    SendClientMessage(playerid, green, " ");
    new
        string[90],
        playersname[MAX_PLAYER_NAME],
        count = 0;
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        {
        if(!PlayerInfo[i][VIP]) continue;
        {
GetPlayerName(i, playersname, sizeof(playersname));
            switch(PlayerInfo[i][VIP])
            {
                case 1: format(string, sizeof(string), "{993300}%s (ID:%i) - VIP Level: %d | Bronze VIP", playersname, i, PlayerInfo[i][VIP]);
                case 2: format(string, sizeof(string), "{C0C0C0}%s (ID:%i) - VIP Level: %d | Silver VIP", playersname, i, PlayerInfo[i][VIP]);
                case 3: format(string, sizeof(string), "{CCFFDD}%s (ID:%i) - VIP Level: %d | Gold VIP", playersname, i, PlayerInfo[i][VIP]);
                case 4: format(string, sizeof(string), "{33CCFF}%s (ID:%i) - VIP Level: %d | Diamond VIP", playersname, i, PlayerInfo[i][VIP]);
                default: continue;
            }
        }
        SendClientMessage(playerid, red, string);
        count++;
    }
    if(!count) SendClientMessage(playerid, red, "No VIP online in the list");
    {
    SendClientMessage(playerid, green, "______________________________________");
    return 1;
}
Reply


Messages In This Thread
Help Me Please - by Filbert - 10.06.2016, 08:14
Re: Help Me Please - by CarRamper - 10.06.2016, 08:20
Re: Help Me Please - by CarRamper - 10.06.2016, 08:29
Re: Help Me Please - by Stinged - 10.06.2016, 08:31
Re: Help Me Please - by CarRamper - 10.06.2016, 08:34

Forum Jump:


Users browsing this thread: 1 Guest(s)