Author Topic: Team "allows"  (Read 2479 times)

0 Members and 3 Guests are viewing this topic.

Offline Reinhardt

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Team "allows"
« on: May 24, 2008, 02:42:26 AM »
Lets say I have groups:
     Superadmin
     Admin
     VIP
     Respected
     Regular
     New User

I want to make it so that New User can't use stacker, smartweld, noclip, and other things that cause problems like RT Camera, and paint tool.

How do I go about restricting this kind of stuff.

Here is my groups.txt
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"regular"
{
"allow"
{

{
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}
"trusted"
{
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx mingekick"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"respected"
{
"allow"
{
}
"vip"
{
"allow"
{
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}


Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Team "allows"
« Reply #1 on: May 24, 2008, 07:22:55 AM »
This has been discussed many times on this forum.
We probably need to add it to FAQs.
I would have pointed you to the search page. (Seriously, it's been asked several (~10+) times.

HOWEVER, It seems Megiddo has thrown in one I'm not familiar with yet in a recent SVN.
"ulx tooldenyoverride"

Megiddo, is that new? Could it be used to give any group use of a globally denied tool?
that is
ulx tooldeny "tool name"
ulx groupallow <group> "ulx tooldenyoverride"
??

Also, what problems do paint cause? I could see RT Camera (due to one view only being possible)
« Last Edit: May 24, 2008, 07:24:47 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Team "allows"
« Reply #2 on: May 24, 2008, 12:35:41 PM »
Yes, tooldenyoverride is what groups can still use a denied tool.
Experiencing God's grace one day at a time.

Offline saintmark

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
Re: Team "allows"
« Reply #3 on: May 26, 2008, 05:16:02 AM »
Can you please explain that a bit further?

Say I wanted to make the group "respected" and above to be able to use the adv duplicator and the ones below not be able, how would i enter that?

"regular"   
{
   "deny"   
   {
                       "ulx tooldeny "adv_duplicator.lua"
   }
   "allow"   
   {
      
   }
   "inherit_from"   
   {
   }
}

and so on until i get to the bottom?

Thanks,
Saint Mark

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Team "allows"
« Reply #4 on: May 26, 2008, 10:33:05 AM »
From console, not in text files;
ulx tooldeny adv_duplicator
ulx groupallow <group_you_want_to_override_tooldeny_#1> "ulx tooldenyoverride"
ulx groupallow <group_you_want_to_override_tooldeny_#2> "ulx tooldenyoverride"

OR

"group_you_WANT_to_be_able_to_use_tools"
{
   "deny"   
   {
   }
   "allow"   
   {
                       "ulx tooldenyoverride"
   }
   "inherit_from"   
   {
   }
}


tooldeny is global. I don't believe you can set one group to have a globally denied tool, but one group to have it.
You need to give groups that you wish to be able to use tools the 'ulx tooldenyoverride' access.

I've not had time to look at SVN in a few weeks. I could be wrong on some of the above.
Megiddo, have you written in the ability to allow non-global tool blocking? That is, allow one tool for one group but not another.
Seems to me that would be a totally different addon, and grows too comlex for adding in to ULX.

Mr. President... anywhere near to making a release. I know you use major modified blocking for some of your game servers.
Anyway to make it generic and release?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming