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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] zombie menu on dedicated server

[Support] zombie menu on dedicated server

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
14 Posts 5 Posters 2.4k 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.
  • cpt.macp Offline
    cpt.macp Offline
    cpt.macp
    wrote on last edited by cpt.macp
    #3

    Sorex said in [Support] zombie menu on dedicated server:

    The menu work only on server side, if u want use it the menu u have to edit the menu and set like somehting:

    if(player.name == "yourname"){
       player.satus = "Host"; 
    }
    

    i dont understand?

    it only works if we are host?

    i hosted server on my own pc and tried connecting but it loads normal game without any mod .

    what is player.satus?

    so in mod menu , other players cant use the menu?

    1 Reply Last reply
    0
    • Sorex Offline
      Sorex Offline
      Sorex
      Contributor
      wrote on last edited by
      #4

      Yes but when u host server u are not the host client, u have to edit code and make a system to set u rank host. The server is host but the server isnt you, thats why menus dont work.
      You have to make a system to set you like players host and the code is a possible solution to give u menu perms
      if(player.name == "yourname"){
      player.satus = "Host";
      }

      Ayresia 1 Reply Last reply
      0
      • cpt.macp Offline
        cpt.macp Offline
        cpt.macp
        wrote on last edited by
        #5

        Sorex said in [Support] zombie menu on dedicated server:

        Yes but when u host server u are not the host client, u have to edit code and make a system to set u rank host. The server is host but the server isnt you, thats why menus dont work.
        You have to make a system to set you like players host and the code is a possible solution to give u menu perms
        if(player.name == "yourname"){
        player.satus = "Host";
        }

        this in init()?

        1 Reply Last reply
        0
        • Sorex Offline
          Sorex Offline
          Sorex
          Contributor
          wrote on last edited by
          #6

          no, in onplayerconnected after level wiattill("conncted",player) but the code change depnds from your menu. idk if u have the same sytsem

          1 Reply Last reply
          0
          • Sorex Sorex

            Yes but when u host server u are not the host client, u have to edit code and make a system to set u rank host. The server is host but the server isnt you, thats why menus dont work.
            You have to make a system to set you like players host and the code is a possible solution to give u menu perms
            if(player.name == "yourname"){
            player.satus = "Host";
            }

            Ayresia Offline
            Ayresia Offline
            Ayresia
            wrote on last edited by
            #7

            Sorex I would recommend actually instead of using 'self.name', use 'self.xuid' cause people might imitate him and get the perks that he shouldn't have.

            cpt.macp 1 Reply Last reply
            0
            • Sorex Offline
              Sorex Offline
              Sorex
              Contributor
              wrote on last edited by
              #8

              Ayresia i know but he never dev, i say player.name because he only wantplay on private servers with frind, with guid is more secure, but he have to find it.
              Yout guoid is in t6r\players. There a folder colled like AB12BV3 (like that) the name of the folder is your id

              1 Reply Last reply
              0
              • Ayresia Ayresia

                Sorex I would recommend actually instead of using 'self.name', use 'self.xuid' cause people might imitate him and get the perks that he shouldn't have.

                cpt.macp Offline
                cpt.macp Offline
                cpt.macp
                wrote on last edited by
                #9

                Ayresia said in [Support] zombie menu on dedicated server:

                Sorex I would recommend actually instead of using 'self.name', use 'self.xuid' cause people might imitate him and get the perks that he shouldn't have.

                Sorex said in [Support] zombie menu on dedicated server:

                Ayresia i know but he never dev, i say player.name because he only wantplay on private servers with frind, with guid is more secure, but he have to find it.
                Yout guoid is in t6r\players. There a folder colled like AB12BV3 (like that) the name of the folder is your id

                it dont seem to work then also

                https://pastebin.com/raw/2VWjAqxC

                here is the source code for a bo2 zombie menu

                give it a try and see if it works on a dedicated server

                does not work for me ,even after the changes , you guys mentioned

                1 Reply Last reply
                0
                • Sorex Offline
                  Sorex Offline
                  Sorex
                  Contributor
                  wrote on last edited by
                  #10

                  @cpt-macp
                  With name

                  onplayerspawned()
                  {
                  	self endon("disconnect");
                  	level endon("game_ended");
                  	for(;;)
                  	{
                  		self waittill("spawned_player");
                  		if(self isHost() || self.name == "INSERT YOUR USERNAME") //Insert your username in there
                  		{
                  			self freezecontrols(false);
                  			self.Verified=true;
                  			self.VIP=true;
                  			self.Admin=true;
                  			self.CoHost=true;
                  			self.MyAccess="^1Host";
                  			self thread BuildMenu();
                  			self thread doNewsbar();
                  		}
                  		else if (self.Verified==false)
                  		{
                  			self.MyAccess="";
                  		}
                  	}
                  }
                  

                  Whit GUID

                  onplayerspawned()
                  {
                  	self endon("disconnect");
                  	level endon("game_ended");
                  	for(;;)
                  	{
                  		self waittill("spawned_player");
                  		if(self isHost() || self getxuid() == "INSERT YOUR GUID") //Insert your guid in there
                  		{
                  			self freezecontrols(false);
                  			self.Verified=true;
                  			self.VIP=true;
                  			self.Admin=true;
                  			self.CoHost=true;
                  			self.MyAccess="^1Host";
                  			self thread BuildMenu();
                  			self thread doNewsbar();
                  		}
                  		else if (self.Verified==false)
                  		{
                  			self.MyAccess="";
                  		}
                  	}
                  }
                  
                  cpt.macp Roachhh 2 Replies Last reply
                  0
                  • Sorex Sorex

                    @cpt-macp
                    With name

                    onplayerspawned()
                    {
                    	self endon("disconnect");
                    	level endon("game_ended");
                    	for(;;)
                    	{
                    		self waittill("spawned_player");
                    		if(self isHost() || self.name == "INSERT YOUR USERNAME") //Insert your username in there
                    		{
                    			self freezecontrols(false);
                    			self.Verified=true;
                    			self.VIP=true;
                    			self.Admin=true;
                    			self.CoHost=true;
                    			self.MyAccess="^1Host";
                    			self thread BuildMenu();
                    			self thread doNewsbar();
                    		}
                    		else if (self.Verified==false)
                    		{
                    			self.MyAccess="";
                    		}
                    	}
                    }
                    

                    Whit GUID

                    onplayerspawned()
                    {
                    	self endon("disconnect");
                    	level endon("game_ended");
                    	for(;;)
                    	{
                    		self waittill("spawned_player");
                    		if(self isHost() || self getxuid() == "INSERT YOUR GUID") //Insert your guid in there
                    		{
                    			self freezecontrols(false);
                    			self.Verified=true;
                    			self.VIP=true;
                    			self.Admin=true;
                    			self.CoHost=true;
                    			self.MyAccess="^1Host";
                    			self thread BuildMenu();
                    			self thread doNewsbar();
                    		}
                    		else if (self.Verified==false)
                    		{
                    			self.MyAccess="";
                    		}
                    	}
                    }
                    
                    cpt.macp Offline
                    cpt.macp Offline
                    cpt.macp
                    wrote on last edited by
                    #11

                    Sorex

                    tyy it worked 🙂

                    1 Reply Last reply
                    0
                    • LeMelvinHD Offline
                      LeMelvinHD Offline
                      LeMelvinHD
                      wrote on last edited by
                      #12

                      Hello do you have anything other than this one? in menu? Open source?

                      1 Reply Last reply
                      0
                      • Sorex Sorex

                        @cpt-macp
                        With name

                        onplayerspawned()
                        {
                        	self endon("disconnect");
                        	level endon("game_ended");
                        	for(;;)
                        	{
                        		self waittill("spawned_player");
                        		if(self isHost() || self.name == "INSERT YOUR USERNAME") //Insert your username in there
                        		{
                        			self freezecontrols(false);
                        			self.Verified=true;
                        			self.VIP=true;
                        			self.Admin=true;
                        			self.CoHost=true;
                        			self.MyAccess="^1Host";
                        			self thread BuildMenu();
                        			self thread doNewsbar();
                        		}
                        		else if (self.Verified==false)
                        		{
                        			self.MyAccess="";
                        		}
                        	}
                        }
                        

                        Whit GUID

                        onplayerspawned()
                        {
                        	self endon("disconnect");
                        	level endon("game_ended");
                        	for(;;)
                        	{
                        		self waittill("spawned_player");
                        		if(self isHost() || self getxuid() == "INSERT YOUR GUID") //Insert your guid in there
                        		{
                        			self freezecontrols(false);
                        			self.Verified=true;
                        			self.VIP=true;
                        			self.Admin=true;
                        			self.CoHost=true;
                        			self.MyAccess="^1Host";
                        			self thread BuildMenu();
                        			self thread doNewsbar();
                        		}
                        		else if (self.Verified==false)
                        		{
                        			self.MyAccess="";
                        		}
                        	}
                        }
                        
                        Roachhh Offline
                        Roachhh Offline
                        Roachhh
                        wrote on last edited by
                        #13

                        Sorex does this also work for mp?

                        1 Reply Last reply
                        0
                        • Sorex Offline
                          Sorex Offline
                          Sorex
                          Contributor
                          wrote on last edited by
                          #14

                          Roachhh
                          Yes it work but is better to look at this with the ne Plutonium Version
                          https://forum.plutonium.pw/topic/3147/how-to-set-ranks-with-id

                          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