Make Menu the commands
#9

Modified R0's post and added what you wanted
Quote:
Originally Posted by R0
Посмотреть сообщение
Then make like
pawn Код:
#define DIALOG_ADMIN 996
#define DIALOG_ADMIN1 997


// Under command
ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_LIST, "Admin Commands", "General Commands\nJunior Commands", "Yes", "No");
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_ADMIN)
    {
        if(response)
        {
             if((PlayerInfo[playerid][pAdmin] >= 1)
             {
                 ShowPlayerDialog(playerid, DIALOG_ADMIN1, DIALOG_STYLE_MSGBOX, "Admin Commands", "General Admin: /kick, /ban", "Close", ""); // like that
             }
             else return SendClientMessage(playerid,randomcolor,"You are not an admin");      
        }
        else
        {
            SendClientMessage(playerid, -1, "You canceled .");
        }
        return 1;
    }
 
    return 0;
}
Reply


Messages In This Thread
Make Menu the commands - by VladimirMark - 27.05.2014, 15:47
Re: Make Menu the commands - by R0 - 27.05.2014, 15:57
Re: Make Menu the commands - by VladimirMark - 27.05.2014, 15:59
Re: Make Menu the commands - by Fred1993 - 27.05.2014, 16:06
Re: Make Menu the commands - by R0 - 27.05.2014, 16:09
Re: Make Menu the commands - by VladimirMark - 27.05.2014, 16:12
Re: Make Menu the commands - by R0 - 27.05.2014, 16:20
Re: Make Menu the commands - by VladimirMark - 27.05.2014, 16:21
Re: Make Menu the commands - by DavidBilla - 27.05.2014, 17:07
Re: Make Menu the commands - by VladimirMark - 27.05.2014, 18:31

Forum Jump:


Users browsing this thread: 2 Guest(s)