[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"; }
-
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?
-
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";
} -
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()?
-
no, in onplayerconnected after level wiattill("conncted",player) but the code change depnds from your menu. idk if u have the same sytsem
-
-
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 -
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 idit 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
-
cpt.macp
With nameonplayerspawned() { 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=""; } } }
-
tyy it worked
-
Hello do you have anything other than this one? in menu? Open source?
-
Sorex does this also work for mp?
-
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