/admins in dialog
#3

PHP код:
playername(playerid)
{
 new 
pname[MAX_PLAYER_NAME];
 
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
 return 
pname;
}
CMD:admins(playerid)
{
    new 
count 0;
    new 
str[200];
    for(new 
ii<MAX_PLAYERS;i++)
    {
        if(
MakeVariableOfAdmin[i] > 0)
        {
            
format(strsizeof str"%s[%d] || Admin Level: %d\n""Close"""playername(i), iMakeVariableOfAdmin[i]);
            
ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX"Current online Admins:"str"""Close");
            
count++;
        }
    }
    if (
count == 0ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX"Current online Admins:""No admins online\n_____________________""Close""");
    return 
1;

Reply


Messages In This Thread
/admins in dialog - by TaligaroW - 21.09.2018, 13:02
Re: /admins in dialog - by DeMoo - 21.09.2018, 15:21
Re: /admins in dialog - by CaptainBoi - 21.09.2018, 15:32
Re: /admins in dialog - by CodeStyle175 - 21.09.2018, 15:35
Re: /admins in dialog - by TaligaroW - 21.09.2018, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)