CMD admins
#1

Hi. I want to set a specific color for each admin level, and those colors to be shown in /admins. And to be shown a "Administrators are" message before showing each admin. How to do so?

Plus, I want to add /forumname which will show admin's forum name. ex each admin will set his forum name and at /admins it will show his forum name. Admin Name / Forum Name.


I want to be shown like

Online Administrators are:
Rank / Admin Name / Forum Name - On Duty.
Rank / Admin Name 2 / Forum Name 2 - Off Duty.
Rank / Admin Name 3 / Forum Name 3 - On Duty.



Now it shows
Rank Admin Name(ID)


How can I achieve this, pls ! I give up + rate


My code right now

Код HTML:
CMD:admins(playerid, params[])
{
	if(pInfo[playerid][pHour] >= 0)
	{
	    new adminstring[128];
	    new text[128];
	    if(IsPlayerConnected(playerid))
	    {
	        for (new i = 0; i < MAX_PLAYERS; i++)
	        {
	            if(IsPlayerConnected(i))
	            {
	                if(pInfo[i][pAdminLevel] > 0)
	                {
	                    format(adminstring, sizeof(adminstring),"%s%s: %s\n", adminstring, GetAdminName(i), PlayerName(i));
                        format(text, sizeof(text),"Administratori Online");
	                }
	            }
	        }
	        SendClientMessage(playerid,COLOR_WHITE, text);
	        SendClientMessage(playerid,COLOR_GREEN, adminstring);
		}
 		else return SendClientMessage(playerid,-1,"*"COL_LGREEN" Nici un admin online");
	}
    return 1;
}
Reply


Messages In This Thread
CMD admins - by Zeus666 - 13.03.2018, 19:46
Re: CMD admins - by PepsiCola23 - 13.03.2018, 19:52
Re: CMD admins - by Zeus666 - 13.03.2018, 19:52
Re: CMD admins - by Zeus666 - 13.03.2018, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)