General > Developers Corner
E2 functions for certain ULX groups.
(1/1)
adamski0811:
I am wanting to mak my server have certain functions for certain ULX groups. I seen the below code on another post however not much is going on with it. I have seen it done and I have messed around with it. However still not working.
Any ideas?
--- Code: ---e2function void entity:applyForce(vec)
if not IsAdmin(owner) then return end
//applyForce code here
end
--- End code ---
Matryan:
Try this:
--- Code: ---e2function void entity:applyForce(vec)
if not table.HasValue({"RANK1", "RANK2", "RANK3"}, ply:GetUserGroup()) then return end
//applyForce code here
end
--- End code ---
Not sure if it will work though as I'm not totally sure how Expression 2 is coded...
Navigation
[0] Message Index
Go to full version