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
#2

PHP код:
CMD:admins(playeridparams[])
{
    if(
pInfo[playerid][pHour] >= 0)
    {
        new 
adminstring[128];
        if(
IsPlayerConnected(playerid))
        {
            for (new 
0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
pInfo[i][pAdminLevel] = 1)
                    {
                        
format(adminstringsizeof(adminstring),"%s%s: %s\n"adminstringGetAdminName(i), PlayerName(i));
                    }
                    if(
pInfo[i][pAdminLevel] = 2)
                    {
                        
//do your thing 
                    
}
                    if(
pInfo[i][pAdminLevel] = 3)
                    {
                        
// do your thing
                    
}
                        ....
etc
                
}
            }
            
SendClientMessage(playerid,COLOR_GREEN,adminstring);
        }
         else return 
SendClientMessage(playerid,"*"COL_LGREEN" Nici un admin online");
    }
    return 
1;

Reply
#3

up. i give rate and stars

pepsicola i edited it can you help me again?
Reply
#4

Code edited. Pls help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)