Skip to content
  • 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 899 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cpt.macpundefined Offline
    cpt.macpundefined 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
    • Sorexundefined Offline
      Sorexundefined 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
      • Ayresiaundefined Offline
        Ayresiaundefined Offline
        Ayresia
        replied to Sorex 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.macpundefined 1 Reply Last reply
        0
        • Sorexundefined Offline
          Sorexundefined 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
          • cpt.macpundefined Offline
            cpt.macpundefined Offline
            cpt.macp
            replied to Ayresia 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
            • Sorexundefined Offline
              Sorexundefined 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.macpundefined Roachhhundefined 2 Replies Last reply
              0
              • cpt.macpundefined Offline
                cpt.macpundefined Offline
                cpt.macp
                replied to Sorex on last edited by
                #11

                Sorex

                tyy it worked 🙂

                1 Reply Last reply
                0
                • LeMelvinHDundefined Offline
                  LeMelvinHDundefined 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
                  • Roachhhundefined Offline
                    Roachhhundefined Offline
                    Roachhh
                    replied to Sorex on last edited by
                    #13

                    Sorex does this also work for mp?

                    1 Reply Last reply
                    0
                    • Sorexundefined Offline
                      Sorexundefined 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

                      • Login

                      • Don't have an account? Register

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