Skip to content
  • 0 Unread 0
  • 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 891 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.
  • Ducxy Offline
    Ducxy 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.

    frosty 1 Reply Last reply
    0
    • Ducxy 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.

      frosty Offline
      frosty 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

      Ducxy 1 Reply Last reply
      0
      • frosty 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

        Ducxy Offline
        Ducxy 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.

        frosty 1 Reply Last reply
        0
        • Ducxy Ducxy

          frosty said in Help removing menu options for players.:

          if (self.CoHost == true

          When I do this i get a syntax error.

          frosty Offline
          frosty 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

          Ducxy 2 Replies Last reply
          0
          • frosty 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

            Ducxy Offline
            Ducxy 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
            • frosty 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

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

              frosty nvm forgot the second = sign

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              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
              • Unread 0
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Donate