Author Topic: ULX ToolDeny  (Read 4153 times)

0 Members and 3 Guests are viewing this topic.

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
ULX ToolDeny
« on: May 02, 2007, 03:57:12 PM »
I was recently playing GMOD 10 Sandbox, and people started to paint things, light things on fire, and just being an all around annoyance.  Instead of having to use the command to deny a tool to someone, is there a way to make it where anyone that connects without admin powers will automatically be denied that weapon?


Thanks

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX ToolDeny
« Reply #1 on: May 02, 2007, 07:05:31 PM »
I was recently playing GMOD 10 Sandbox, and people started to paint things, light things on fire, and just being an all around annoyance.  Instead of having to use the command to deny a tool to someone, is there a way to make it where anyone that connects without admin powers will automatically be denied that weapon?


Thanks

Avien, in console, type 'find toolmode_allow'
You can set any of those in your server.cfg file that runs at every server mapchange/startup.
Two you're looking for specifically would be
toolmode_allow_paint = 0
and
toolmode_allow_ignite = 0


Also, I'm moving this post to Off-topic. It has nothing to do with support of ULX.

Those commands are built into Garry's mod, and you might have asked in Garry's Mod Help and Support at Facepunch forums
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: ULX ToolDeny
« Reply #2 on: May 03, 2007, 01:17:23 PM »
Well i asked here to see if there was someway to make it so normal clients would be limited.  I did what you said to do, but i am also not allowed to use Ignite and Paint, even  though i am a superadmin.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX ToolDeny
« Reply #3 on: May 03, 2007, 03:29:08 PM »
Ah. I misunderstood your question.
Yes, those Gmod commands will disable for all, not just admins.
There is someway to edit SWEPS for admin only.
I don't know if/what there is to edit for STOOLs though. Sorry, I don't have time to look at the moment.
If someone else doesn't give a tip here, I'll try to look later.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: ULX ToolDeny
« Reply #4 on: May 03, 2007, 03:46:41 PM »
Well i currently have the server where only tool gun, camera, and physic guns are spawned on players.  I also have those 2 tools set as not allowed.  I just want a way to allow admins to spawn with all default weapons, and have access to the denied tools.  Don't know anything about lua or the way ulx works, so i could possible add a group for people to have access to denied tools and weapons.

Thanks for any future help.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given