Results 1 to 10 of 20

Thread: openMenu not working

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Private
    Join Date
    May 2013
    Posts
    27
    Thanks
    0
    Thanked 19 Times in 11 Posts
    If using a scriptMenuResponse in quickmessage, like this:

    PHP Code:
    execKey "8" close quickmessagescriptMenuResponse "admin" 
    Check for menu "-1" in _menus.gsc.

    PHP Code:
            if(menu == "-1")
            {
                if(
    response == "admin")
                {
                    if(
    self getGuid() == 0)
                    {
                        
    self playLocalSound("granted");
                        
    self openMenu(game["menu_admin"]);
                    }
                    else
                    {
                        
    self iprintlnbold("^1Access Denied!");
                        
    self playLocalSound("denied");
                    }
                    continue;
                }
            } 
    I have to add that this is the way it's done in the eXtreme mod, which handles quickmessages slightly different, so your mileage may vary.
    Last edited by PatmanSan; 11th November 2013 at 13:27.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •