Admins Dialog
#5

PHP код:
CMD:admins(playerid,params[])
{
    new 
d_header[50], d_content[144], d_count 0d_name[MAX_PLAYER_NAME 1]; //d_ = dialog
    
for(new 0GetPlayerPoolSize(); i<=ji++)
{
    if(
PlayerInfo[i][pAdmin])
 {
        
GetPlayerName(id_namesizeof(d_name));
        
format(d_contentsizeof(d_content), "%s%s [%d]\n"d_contentd_namei);
        
d_count++;
   }
}
    if(
d_count == 0)
        
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"[notice]""There are no online admins at the moment!""Close""");
    else
    {
        
format(d_headersizeof(d_header), "[admins] - {FFFF00}%d {FFFFFF}admin(s)"d_count);
        
ShowPlayerDialog(playerid1DIALOG_STYLE_LISTd_headerd_content"Close""");
    }
    return 
1;

how i'd do it. not exactly what you wanted.
Reply


Messages In This Thread
Admins Dialog - by rakinz - 23.11.2017, 11:31
Re: Admins Dialog - by BiosMarcel - 23.11.2017, 11:58
Re: Admins Dialog - by rakinz - 23.11.2017, 12:16
Re: Admins Dialog - by jasperschellekens - 23.11.2017, 14:18
Re: Admins Dialog - by billy1337samp - 23.11.2017, 14:28
Re: Admins Dialog - by thefirestate - 23.11.2017, 18:08
Re: Admins Dialog - by Lucases - 23.11.2017, 18:35
Re: Admins Dialog - by rakinz - 23.11.2017, 20:23
Re: Admins Dialog - by CodeStyle175 - 23.11.2017, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)