Author Topic: Set server host  (Read 903 times)

There should be a mod where you can set a super admin as host (not give host but give all host options for like rtb) so that the super admin is picked up as a host, but not the real host


What
He wants a mod that allows the host to set super admins to have special abilities to edit RTB options that would otherwise only be available to the host.

Which is a good idea if you trust someone a lot but that sounds risky.

cant super admins already change rtb prefs?

cant super admins already change rtb prefs?
Yes.

I'm not aware if there is an addon, but you can grant all host permissions, by doing
Code: [Select]
findClientByName("NAMEHERE").isHost = "1";I THINK that this will work, and if not, then idk. (You put it into your console)

cant super admins already change rtb prefs?
Not all of them. For example, deadmin a super admin

Not all of them. For example, deadmin a super admin

that defeats the purpose then...

that defeats the purpose then...
No, I meant for "not all of them" that they cant access all of them as of right now...

I'm not aware if there is an addon, but you can grant all host permissions, by doing
Code: [Select]
findClientByName("NAMEHERE").isHost = "1";I THINK that this will work, and if not, then idk. (You put it into your console)
This will work for some add-ons that use this, but other mods that check the BL_ID, it's possible to set the BL_ID as the host to succeed the check but there will be a lot of critical security risks since you can only set the BL_ID once.

This will work for some add-ons that use this, but other mods that check the BL_ID, it's possible to set the BL_ID as the host to succeed the check but there will be a lot of critical security risks since you can only set the BL_ID once.
Thats why I want a mod for it says me when I dont understand codes and stuff like that

Thats why I want a mod for it says me when I dont understand codes and stuff like that
what he's saying is that it won't work well

Thats why I want a mod for it says me when I dont understand codes and stuff like that
Like I said, someone could possibly destroy your server; problem with people having the same BL_ID is that there can be auth fails, security risks, etc. Just remember that once you set the BL_ID, you can't set it back unless they reconnect.

The way how I think of it is find their IP and add it to a list, but this entire thing is extremely dangerous and hacky, highly not recommended to be made.

Example: I one time made a bunker server that sets random bl_ids based on IPs, but anyone can set a name and even fake it. The problem with this is that I made a huge security risk and someone shut down my server with my BL_ID.
« Last Edit: September 27, 2015, 04:23:32 PM by Kyuande »

Code: [Select]
findClientByName("NAMEHERE").isHost = "1";I THINK that this will work, and if not, then idk. (You put it into your console)
isHost isn't a default field, this will only effect add-ons that choose to define and use isHost. For default game functionality, there is no equivalent field, you'd have to create serverCmds that call the functionality you want


The problem with this is that I made a huge security risk and someone shut down my server with my BL_ID.
The only way this can happen is if you created a serverCmd that shuts down the server, or something like an eval that only allowed your blid. Because the shutdown server functions by default don't have any connection to a function callable outside of the server instance. It could also have been an auth fail from having someone else with the same blid.

Also I'm like 99% sure the blid property is read only now, so there isn't a way to do this anymore
« Last Edit: September 28, 2015, 10:38:14 AM by Headcrab Zombie »

isHost isn't a default field, this will only effect add-ons that choose to define and use isHost. For default game functionality, there is no equivalent field, you'd have to create serverCmds that call the functionality you want
I just made a client dump without third-party add-ons and isHost is indeed a default tag.

I just made a client dump without third-party add-ons and isHost is indeed a default tag.
You're not listening. Actual game functionality isn't handled through that field and is purely for additional mods. The game uses something along the lines of getNumKeyID() to get the host's BL_ID which every mod should do if at all possible in the context since it has no margin for error like the .isHost method does in many situations.