[help] Helpers/Admins list
#6

Quote:
Originally Posted by MrCallum
Посмотреть сообщение
Well make a ShowPlayerDialog, or just get a scripter on the Scripter Request part , do not ask people to script you stuff and not appreciate it.
Actually, it's your fault -- He clearly stated that he wants it in a dialog.


pawn Код:
CMD:admins(playerid, params[]) {
    new string[256], count = 0;
    foreach(Player, i)
    {
        if(!PlayerInfo[ i ][ AdminLevel ]) continue;
       
        format(string, sizeof(string), "%s\n{64CC66}%s %s{FFFFFF}(%d)", string, AdminRank(i), PlayerInfo[ i ][ PlayerName ], i), count++;
    }
    if(count) ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "List of online administrators" , string, "Close", "");
    else ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Note" , "There aren't any online administrators.", "Close", "");
    return 1;
}
stock AdminRank(playerid)
{
    new string[16];
    switch(PlayerInfo[ playerid ][ AdminLevel ])
    {
        case 0: string = "Player";
        case 1: string = "Moderator";
        case 2: string = "Super Moderator";
        case 3: string = "Admin";
        case 4: string = "Senior Admin";
        case 5: string = "Head Admin";
        default: string = "Unknown";
    }
    return string;
}
Change AdminLevel and PlayerName to your variable/array.
You should be able to make the '/helpers' command by your own now.
Reply


Messages In This Thread
[help] Helpers/Admins list - by Arxalan - 25.12.2014, 15:56
Re: [help] Helpers/Admins list - by MrCallum - 25.12.2014, 16:01
Re: [help] Helpers/Admins list - by Arxalan - 25.12.2014, 16:14
Re: [help] Helpers/Admins list - by MrCallum - 25.12.2014, 16:19
Re: [help] Helpers/Admins list - by iFiras - 25.12.2014, 16:26
Re: [help] Helpers/Admins list - by Kyance - 25.12.2014, 16:31
Re: [help] Helpers/Admins list - by zT KiNgKoNg - 25.12.2014, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)