/admins - command problem
#10

Quote:
Originally Posted by DarkBr
Посмотреть сообщение
TRY, compile

PHP код:
CMD:admins(playerid)
{
     new 
count=0PlayerName[MAX_PLAYER_NAME], rankname[32],color[100];
     new 
list1[256];
     
strcat(list1"{FFFFFF}NO\t{FFFFFF}Name(ID)\t{FFFFFF}Level\n");
     foreach(
Playeri)
     {
        if(!
playerData[i][playerLevel])
            continue;
        
count++;
        
GetPlayerName(iPlayerNamesizeof(PlayerName));
        
color = ((playerData[i][playerAdminDuty])?("{FF0770}"):("{C0C0C0}"));
        
format(list1sizeof(list1), "%s\n%d\t%s%s(%d)\t{FFFFFF}LEVEL %i\n"list1count 1,colorPlayerNameiplayerData[i][playerLevel]);
     }
    if(!
count)
    {
        
SendClientMessage(playerid, -1"There are no administrators online.");
    }
    else
    {
        
ShowPlayerDialog(playerid555DIALOG_STYLE_TABLIST_HEADERS"Online Admins",list1"Close""");
    }
       return 
1;

This worked! thank you
Reply


Messages In This Thread
/admins - command problem - by Hammad123 - 16.02.2019, 09:19
Re: /admins - command problem - by Hammad123 - 16.02.2019, 17:43
Re: /admins - command problem - by DarkBr - 16.02.2019, 18:21
Re: /admins - command problem - by d3ll - 16.02.2019, 22:07
Re: /admins - command problem - by d3Pedro - 16.02.2019, 23:57
Re: /admins - command problem - by Hammad123 - 17.02.2019, 10:08
Re: /admins - command problem - by TheToretto - 17.02.2019, 10:57
Re: /admins - command problem - by Hammad123 - 18.02.2019, 13:27
Re: /admins - command problem - by Hammad123 - 19.02.2019, 13:15
Re: /admins - command problem - by Hammad123 - 20.02.2019, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)