jorko99 Posted February 22, 2015 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.
MIKI785 Posted February 22, 2015 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. Lua Scripter Owner of mshost.cz MTA portal.
Gallardo9944 Posted February 22, 2015 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. Code Debugger - Minimalistic MTA debug line replacement
Tekken Posted February 22, 2015 Posted February 22, 2015 function heckACL() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then --Here the code end end Resources I made: attachToBones - A newer bone_attach. Simple Level system - Just a simple level system. Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!
xeon17 Posted February 22, 2015 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. A unique GangWar gamemode waiting for you!Click here for more information.
jorko99 Posted February 22, 2015 Author Posted February 22, 2015 function heckACL() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then --Here the code end end What code?
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