Author Topic: Hide Usergroup  (Read 3175 times)

0 Members and 1 Guest are viewing this topic.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Hide Usergroup
« on: January 17, 2014, 02:48:55 PM »
It's sort of a complicated situation, but I will try to explain to the best of my ability.

Basically. Let's say we have so-called "hidden superadmins", these superadmins will not be shown as superadmins in any way and should just be there to watch over mods (undercover) and such while acting as a normal player. This part is easy.
The annoying part is if one of the mods use ULX menu. They seem to be able to see the usergroup of a player if they're gonna target someone. Is there any way to hide this from them?
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Hide Usergroup
« Reply #1 on: January 17, 2014, 03:16:15 PM »
No way that I know of, but you can just make a command that sets you to whatever rank you were.
Out of the Garry's Mod business.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Hide Usergroup
« Reply #2 on: January 17, 2014, 03:32:40 PM »
No way that I know of, but you can just make a command that sets you to whatever rank you were.
I don't really understand if you know what I mean, or if you're referring to a solution. Would you mind explaining, please?
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Hide Usergroup
« Reply #3 on: January 17, 2014, 03:49:04 PM »
Make a group. Name it something not obvious.
Add whom you want to have the special powers.
They can't inherit any standard group, so, won't appear as admin/superadmin to other players OR other addons.
Make your own code functions that use server console to run commands instead of client side.
Functions will seem as though running from console.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Hide Usergroup
« Reply #4 on: January 17, 2014, 10:31:45 PM »
Make a group. Name it something not obvious.
Add whom you want to have the special powers.
They can't inherit any standard group, so, won't appear as admin/superadmin to other players OR other addons.
Make your own code functions that use server console to run commands instead of client side.
Functions will seem as though running from console.


I thought about that, but I wasn't sure if it was worth doing. Mostly since we don't have that many groups at all, and it would be hard to pull off with the naming.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Hide Usergroup
« Reply #5 on: January 17, 2014, 10:38:03 PM »
I thought about that, but I wasn't sure if it was worth doing. Mostly since we don't have that many groups at all, and it would be hard to pull off with the naming.

Have you tried user with a space?
Out of the Garry's Mod business.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Hide Usergroup
« Reply #6 on: January 18, 2014, 01:27:56 AM »
Have you tried user with a space?
I didn't think about that. Thanks!
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Hide Usergroup
« Reply #7 on: January 18, 2014, 10:24:55 AM »
Though I didn't make it clear, your commands can't be registered using ULX I don't think.
Admins would be able to see 'oh, whats these commands for user group' in the group menu if they have that access.
use plain old fashioned Glua to add the concommands, then have those commands run ulx (or any) commands from console.
Just include the group access checks in them. if ply:IsUserGroup( "user " ), etc.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Hide Usergroup
« Reply #8 on: January 18, 2014, 10:51:13 AM »
Though I didn't make it clear, your commands can't be registered using ULX I don't think.
Admins would be able to see 'oh, whats these commands for user group' in the group menu if they have that access.
use plain old fashioned Glua to add the concommands, then have those commands run ulx (or any) commands from console.
Just include the group access checks in them. if ply:IsUserGroup( "user " ), etc.
Yeah, that's probably a better idea, just add in checks for Steam ID's, I guess.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Hide Usergroup
« Reply #9 on: January 18, 2014, 02:57:45 PM »
They can still use IsUserGroup or ULib.query within them.
:)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming