Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:admins(playerid,params[])
- {
- if(CosminInfo[playerid][pVIP] < 1) return
- SendClientMessage( playerid, COLOR_ULTRARED, "ERROR: You need VIP rank to use this command." );
- //--------------------------------------------------------------------------
- new OnAdmns = 0, astr[4096], arank[50], TotalCount, DCaption[128];
- //--------------------------------------------------------------------------
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && CosminInfo[i][Level] > 0)
- {
- if(CosminInfo[i][Hidden] == 0)
- {
- //--------------------------------------------------------------
- else if(IsPlayerAdmin(i) && CosminInfo[i][AFKBRB] == 0) arank = "{FF0000}({FFFFFF}RCON{FF0000})";
- else if(CosminInfo[i][AFKBRB] >= 1) arank = "{26FF00}(AFK/BRB)";
- else if(CosminInfo[i][AFKBRB] == 0 && !IsPlayerAdmin(i)) arank = "";
- //--------------------------------------------------------------
- format(astr, sizeof(astr), "{FF0000}%s {15FF00}(ID:%d){00BBF6} Level: %d %s\n%s", PlayerName(i), i, CosminInfo[i][Level], arank, astr);
- OnAdmns++;
- }
- if(CosminInfo[i][Hidden] == 1 && CosminInfo[playerid][Level] >= 1)
- {
- //--------------------------------------------------------------
- else if(CosminInfo[i][Hidden] == 1) arank = "{FF0000}(Hidden)";
- else if(IsPlayerAdmin(i) && CosminInfo[i][AFKBRB] == 0) arank = "{FF0000}({FFFFFF}RCON{FF0000})";
- else if(CosminInfo[i][AFKBRB] >= 3) arank = "{26FF00}(AFK/BRB)";
- else if(CosminInfo[i][AFKBRB] == 0 && !IsPlayerAdmin(i)) arank = "";
- //--------------------------------------------------------------
- format(astr, sizeof(astr), "{FF0000}%s {15FF00}(ID:%d){00BBF6} Level: {33FFFF}%d %s\n%s", PlayerName(i), i, CosminInfo[i][Level], arank, astr);
- OnAdmns++;
- }
- TotalCount++;
- }
- }
- //--------------------------------------------------------------------------
- format(DCaption, 128, "Admin(s) (Online: {FF0000}%d{AFAFAF})", TotalCount);
- //--------------------------------------------------------------------------
- if(OnAdmns == 0) return
- GameTextForPlayer(playerid, "~w~~h~No ~r~~h~Admins~w~~h~ Online!", 3000, 4);
- //--------------------------------------------------------------------------
- else return ShowPlayerDialog(playerid, 1707, DIALOG_STYLE_LIST, DCaption, astr, "Ok", "");
- }
Advertisement
Add Comment
Please, Sign In to add comment