ULX

Author Topic: E2 functions for certain ULX groups.  (Read 1915 times)

0 Members and 1 Guest are viewing this topic.

Offline adamski0811

  • Newbie
  • *
  • Posts: 6
  • Karma: -3
E2 functions for certain ULX groups.
« 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?

Code: [Select]
e2function void entity:applyForce(vec)
    if not IsAdmin(owner) then return end

    //applyForce code here
end

Offline Matryan

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: E2 functions for certain ULX groups.
« Reply #1 on: September 20, 2014, 01:52:51 AM »
Try this:
Code: [Select]
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...