jorko99 Posted February 22, 2015 Share Posted February 22, 2015 Hello viewers, How can I enable the F1 panel only for admims.I mean if you are added in the acl group you can open the F1 panel. Thanks for your attention. Link to comment
MIKI785 Posted February 22, 2015 Share Posted February 22, 2015 Simplest solution would be to check if he's in particular ACL group on onPlayerLogin and if so set some element data (eg. admin) to true. Then on the client just check if getElementData(localPlayer, "admin") then and that's it. Link to comment
Gallardo9944 Posted February 22, 2015 Share Posted February 22, 2015 Uhu, element data can be faked cause it's synced with the client. Never do what MIKI785 suggested, unless you protect your element data by resetting it if it has been changed clientside. Link to comment
Tekken Posted February 22, 2015 Share Posted February 22, 2015 function heckACL() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then --Here the code end end Link to comment
xeon17 Posted February 22, 2015 Share Posted February 22, 2015 isObjectInACLGroup works only on server side , the only way to do this is using a Trigger which would show the freeroam GUI without using element data. Link to comment
jorko99 Posted February 22, 2015 Author Share Posted February 22, 2015 function heckACL() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then --Here the code end end What code? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now