Need Help
#4

Quote:
Originally Posted by Rudy_
Посмотреть сообщение
Show us a bit more code? I don't know what's up or down :L
Heres The Full Command
pawn Код:
CMD:premiums ( playerid )
{
     new c = 0, str[128];
     if ( PlayerInfo[playerid][LoggedIn] == 0 ) return SendClientMessage( playerid, -1, ""RED"ERROR: "GREY"You must be logged in!");
     for (new i = 0; i < MAX_PLAYERS; i++)
     {
         if (IsPlayerConnected(i))
         {
             if (PlayerInfo[i][VIP] >= 1)
             {
                 c++;
                 if (c==1)
                 {
                    format(str, sizeof(str), ""REDORANGE"Premium member(s)/donators online:\n{%06x}%s(%d)\n", (GetPlayerColor(i) >>> 8), GetName(i), i);
                 }
                 if (c >=2)
                 {
                    format(str, sizeof(str), "\n%s{%06x}%s(%d)", str, (GetPlayerColor(i) >>> 8), GetName(i), i);
                 }
            }
        }
    }
    if (c == 0) return SendClientMessage(playerid, -1, ""STEELBLUE"SERVER: There are no donators/premiums online.");
    ShowPlayerDialog(playerid, DIALOG_VIPS, DIALOG_STYLE_MSGBOX, ""RED"Premium/Donators Online:", str, "OK", "");
    return 1;
}
Reply


Messages In This Thread
Need Help - by Jdt - 12.10.2014, 08:16
Re: Need Help - by Rudy_ - 12.10.2014, 08:22
Re: Need Help - by dominik523 - 12.10.2014, 08:25
Re: Need Help - by Jdt - 12.10.2014, 08:32
Re: Need Help - by Rudy_ - 12.10.2014, 08:41
Re: Need Help - by Jdt - 12.10.2014, 08:45

Forum Jump:


Users browsing this thread: 1 Guest(s)