Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: jnewcombe on June 25, 2007, 02:17:02 PM
-
with the new version of ulx operators and anything other user made classes (apart from players) can use there psyc gun to move players , how do i disable this so only admins plus can use this feature
thanks
Jon
-
It goes off slap access and immunity right now.
-
Megiddo, remember, not everyone is as techy as we are. :)
What is the easiest way Jon would make it admin only?
Would he have to go into a file and change ACCESS_SLAP in some file/function to something admins and above have only? (ACCESS_MAP?)
Or would it be better for him to edit groups.txt to deny operator (Wait, is there a "ulx blah" that can be denied for physgun. If not, should we make something to allow deny?)?
Think simple.
Though I'm techy enough to figure out multiple ways, I'm not 100% sure myself which would be easiest/best practice for a non-tech.
If I was sure, I'd give a simpler answer.
-
if there is a way to make it go off kick that would be awsome!
any suggestions
thanks again
Jon
-
Go into util.lua, find the hooked function by searching for "onphysgunpickup", right above it you should see a function. Somewhere in the function you'll see "ulx slap". Change that to whatever you want. :)
-
is it this line
local function playerPickup( ply, ent )
if ent:GetClass() == "player" and ULib.isSandbox() and ULib.ucl.query([b] ply, "ulx slap" [/b]) and not ent.NoNoclip then
if ply:IsUserGroup( ULib.ACCESS_SUPERADMIN ) or not ent:IsUserGroup( ULib.ACCESS_IMMUNITY ) then -- If player is superadmin or touched isn't immune
ent:SetMoveType( MOVETYPE_NONE ) -- So they don't bounce
return true
thanks :)
-
yep
-
I am also having this same problem on my server. I have tried changing the ulx slap to kick and ban but neither is working. No matter what I put in there players are still able to use the psyc gun on each other and on admins. This is very annoying and I would really like to find out why this is doing that and how to fix it.
is it this line
local function playerPickup( ply, ent )
if ent:GetClass() == "player" and ULib.isSandbox() and ULib.ucl.query([b] ply, "ulx slap" [/b]) and not ent.NoNoclip then
if ply:IsUserGroup( ULib.ACCESS_SUPERADMIN ) or not ent:IsUserGroup( ULib.ACCESS_IMMUNITY ) then -- If player is superadmin or touched isn't immune
ent:SetMoveType( MOVETYPE_NONE ) -- So they don't bounce
return true
thanks :)
-
If everyone is able to use it on anyone, then you likely have some other mod conflicting.
-
Well from what I have seen this seems to be a common issue with many servers. My server was working fine with no confict until we updated to the 3.11 version of ULX.
We really like the functions of your addon, but if we cannot get any support in fixing this problem we are going to have to go with another admin addon other than ULX. :-\. Im not trying to come off as a dick but how many people need to report this problem before someone actually takes this serious and really attempts to fix it? There are multiple threads about this problem on your forums but no solid attempt to resolve the issue. Thank you for your time and sorry if I offened anyone.
-
Sorry if we seem to be coming off as harsh, but you have to realize that we end up with many complaints about problems with little or no additional information. If we do manage to get any information it is usually after asking multiple times, and then a large majority of these problems turn out to be caused by some other addon which the person has.
I'm not trying to say you don't have a problem, but when we, and others, are running it without problem then there must be some other variable involved which we don't know about, and thus can't do anything to fix.
Please go back and check for any errors in console, and list all other addons/scripts you have installed on your server. Without this information there is no way we will be able to help you.
Also, I would like to point out that you are infact not having the same problem as the OP. His/her problem was simply that they didn't want everyone with slap access to be able to use the phys gun on players.
I hope we can solve your problem, but in order to do so you need to help us help you.
-
Spbogie is correct. You are the first one to report this problem, so it must be something on your end.