"CMD:admins" Help
#7

Try this

PHP Code:
CMD:admins(playerid,params[])
{
    
#pragma unused params
    
new Count 0;
    new 
n[MAX_PLAYER_NAME];
    new 
string[1000];
    
// SendClientMessage(playerid, 0x00FF00FF, "__________|Admins|__________");
    
for(new 0MAX_PLAYERSi++)
    {
        if(!
IsPlayerConnected(i)) continue;
        if(
PlayerInfo[i][Level] < 1) continue;
        
Count++;
    }
    
SendClientMessage(playeridgreen"___________|- Online Admins -|___________");
    if(
Count != 0)
    {
            for (new 
0MAX_PLAYERSi++)
            {
                if (
IsPlayerConnected(i))
                {
                      if (
PlayerInfo[i][Level] >= 1)
                    {
                        
GetPlayerName(i,n,sizeof(n));
                        
format(string1000"%sLevel %d: {FF9900}%s {FFFF00}(ID: %d) - %s\n"stringPlayerInfo[i][Level], niGetRankFromLevel(i));
                        
SendClientMessage(playeridredstring);
                    }
                }
            }
    }
    else 
SendClientMessage(playeridred"No admin online in the list");
    
SendClientMessage(playeridgreen"_________________________________________");
    return 
1;

Reply


Messages In This Thread
"CMD:admins" Help - by Filbert - 26.05.2016, 09:20
Re: "CMD:admins" Help - by Luicy. - 26.05.2016, 09:36
Re: "CMD:admins" Help - by Nin9r - 26.05.2016, 09:41
Re: "CMD:admins" Help - by Dayrion - 26.05.2016, 09:43
Re: "CMD:admins" Help - by Filbert - 26.05.2016, 09:47
Re: "CMD:admins" Help - by Zorono - 26.05.2016, 11:36
Re: "CMD:admins" Help - by IceBilizard - 26.05.2016, 12:01
Re: "CMD:admins" Help - by oMa37 - 26.05.2016, 12:51
Respuesta: "CMD:admins" Help - by maverick91 - 28.05.2016, 02:30

Forum Jump:


Users browsing this thread: 2 Guest(s)