Ulysses
General => Developers Corner => Topic started by: adamski0811 on July 09, 2014, 01:54:06 PM
-
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?
e2function void entity:applyForce(vec)
if not IsAdmin(owner) then return end
//applyForce code here
end
-
Try this:
e2function void entity:applyForce(vec)
if not table.HasValue({"RANK1", "RANK2", "RANK3"}, ply:GetUserGroup()) then return end
//applyForce code here
end
Not sure if it will work though as I'm not totally sure how Expression 2 is coded...