Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Help removing menu options for players.

[Support] Help removing menu options for players.

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
6 Posts 2 Posters 284 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Ducxyundefined Offline
    Ducxyundefined Offline
    Ducxy
    wrote on last edited by Mr. Android
    #1

    Hi again. I now have my menu working for players on my game. Admins are set as Co Host and players are set as Verified. I have it to where the Verified players cannot access the admin submenus but they can still see the option for the submenu. I want it to where it wont even show verified players the option to the other submenus... I only want admins to see it.

    For example, I have a submenu called "Admin Self Options". Any user can see that in the menu but cannot access it, but the admins can access it. I just want it to where players cant see it and only admins can.

    frostyundefined 1 Reply Last reply
    0
    • Ducxyundefined Ducxy

      Hi again. I now have my menu working for players on my game. Admins are set as Co Host and players are set as Verified. I have it to where the Verified players cannot access the admin submenus but they can still see the option for the submenu. I want it to where it wont even show verified players the option to the other submenus... I only want admins to see it.

      For example, I have a submenu called "Admin Self Options". Any user can see that in the menu but cannot access it, but the admins can access it. I just want it to where players cant see it and only admins can.

      frostyundefined Offline
      frostyundefined Offline
      frosty
      wrote on last edited by
      #2

      @MrDucxy You have to make it in that section:

      	if (self.CoHost == true)
      	{
      	self MenuOption("Mad Hax", 2, "Bot Menu", ::SubMenu, "Sub Menu 3");
      
      	self MainMenu("Sub Menu 3", "Mad Hax");
      	self MenuOption("Sub Menu 3", 0, "Spawn Bot", ::spawnBot);
      	self MenuOption("Sub Menu 3", 1, "Kick All Bots", ::kickAllBots);
      	self MenuOption("Sub Menu 3", 2, "Freeze All Bots", ::freezeBots);
      	self MenuOption("Sub Menu 3", 3, "Teleport All Bots", ::TeleBots); 
      	}
      

      The "Bot" Menu only shows up for Co-Host Players

      Ducxyundefined 1 Reply Last reply
      0
      • frostyundefined frosty

        @MrDucxy You have to make it in that section:

        	if (self.CoHost == true)
        	{
        	self MenuOption("Mad Hax", 2, "Bot Menu", ::SubMenu, "Sub Menu 3");
        
        	self MainMenu("Sub Menu 3", "Mad Hax");
        	self MenuOption("Sub Menu 3", 0, "Spawn Bot", ::spawnBot);
        	self MenuOption("Sub Menu 3", 1, "Kick All Bots", ::kickAllBots);
        	self MenuOption("Sub Menu 3", 2, "Freeze All Bots", ::freezeBots);
        	self MenuOption("Sub Menu 3", 3, "Teleport All Bots", ::TeleBots); 
        	}
        

        The "Bot" Menu only shows up for Co-Host Players

        Ducxyundefined Offline
        Ducxyundefined Offline
        Ducxy
        wrote on last edited by
        #3

        frosty said in Help removing menu options for players.:

        if (self.CoHost == true

        When I do this i get a syntax error.

        frostyundefined 1 Reply Last reply
        0
        • Ducxyundefined Ducxy

          frosty said in Help removing menu options for players.:

          if (self.CoHost == true

          When I do this i get a syntax error.

          frostyundefined Offline
          frostyundefined Offline
          frosty
          wrote on last edited by
          #4

          @MrDucxy Well thats just an example for my menu, check your menu to see how it does that type of stuff for each verification level

          Ducxyundefined 2 Replies Last reply
          0
          • frostyundefined frosty

            @MrDucxy Well thats just an example for my menu, check your menu to see how it does that type of stuff for each verification level

            Ducxyundefined Offline
            Ducxyundefined Offline
            Ducxy
            wrote on last edited by
            #5

            frosty the "if" function is causing it. I did

            if(self.status = "Admin")
            {
                self add_option(self.menuname, ">Admin Panel", ::submenu, "Admin", "Admin Panel");
            }
            
            1 Reply Last reply
            0
            • frostyundefined frosty

              @MrDucxy Well thats just an example for my menu, check your menu to see how it does that type of stuff for each verification level

              Ducxyundefined Offline
              Ducxyundefined Offline
              Ducxy
              wrote on last edited by
              #6

              frosty nvm forgot the second = sign

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Donate