Author Topic: Simple Prop Protection and ULX conflict  (Read 3768 times)

0 Members and 1 Guest are viewing this topic.

Offline tadfirebird

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Simple Prop Protection and ULX conflict
« on: December 31, 2007, 12:23:44 AM »
ULX works fine but with prop protection a problem arises. Everything on SPP works right except that toolguns aren't blocked. SPP is protecting against the use key and the physics gun though.

Users on my server are able to use their toolguns, such as the remover, on each others props, including my own. This only happens when I have ULX installed. Does anyone have a fix?

I have tried different prop protector scripts and its the same.

I have narrowed this problem down to these two mods. (I did a fresh install and only put on SPP and ULX)

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Simple Prop Protection and ULX conflict
« Reply #1 on: December 31, 2007, 12:36:32 AM »
Hate to be a barer of bad news.. We all run SPP and ULX together.. and no one has any problems. It isn't those mods conflicting.

I know you only have those two installed, and for that I really don't know, it's puzzling, but like I just said, we all run them together just fine. Make sure you have the latest version of both addons in question.  ??? ??? ??? ??? ???

Offline louis

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: Simple Prop Protection and ULX conflict
« Reply #2 on: December 31, 2007, 03:19:44 AM »
i have had that problem so my admins posted me a link to a better prop protect and it works fine if you beg i'll upload the file on filefront  ;D

Offline louis

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: Simple Prop Protection and ULX conflict
« Reply #3 on: December 31, 2007, 03:27:33 AM »

Offline tadfirebird

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Simple Prop Protection and ULX conflict
« Reply #4 on: December 31, 2007, 04:03:26 AM »
My problem was a code snippet i put in my autorun script lol.

Code: [Select]
restrictions = { }
restrictions.tools = { }

function restrictions.Add( tool )
     table.insert( restrictions.tools, tool )
end
 
function restrictions.Blocker( pl, trace, tool )
     return !table.HasValue( restrictions.tools, tool ) or pl:IsAdmin( )
     end
 
hook.Add( "CanTool", "ToolRestrictions", restrictions.Blocker )

        //To add restrictions, look at the file name of the tool.
 
        //Take the Advanced Ballsocket for example - its name is "Advanced Ball Socket" ( or something like that )
        //But its FILE NAME is ballsocket_adv.lua, so we ignore the .lua part and then have the tool's real name.
 
        //To find the tools:
        //Go to the tool's folder, and look inside the lua/weapons/weapon_stool/stools folder.
        //There should be the file name, so remove the .lua part and use that alone.
 
        //So, if I want stacker to be admin only,
 
restrictions.Add( "npcspawner" )
restrictions.Add( "slammer" )

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Simple Prop Protection and ULX conflict
« Reply #5 on: December 31, 2007, 04:38:01 PM »
Glad you found the problem tadfirebird.
See, we told you it wasn't ULX and SPP :D :P
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming