Tete omar Posted August 4, 2012 Share Posted August 4, 2012 Hello, if i want to get this player acl group name and put it into anything like label or chat box .. anyway, what function or what should i do ? group name like console, admin etc . Link to comment
Castillo Posted August 4, 2012 Share Posted August 4, 2012 There's no function to get all player ACL groups. Link to comment
Tete omar Posted August 4, 2012 Author Share Posted August 4, 2012 (edited) there's no function ? then why the lil_Toady's admin panel got this feature ? groups: .... Edited August 7, 2012 by Guest Link to comment
Castillo Posted August 4, 2012 Share Posted August 4, 2012 Because he made a function to get them. function aclGetAccountGroups ( account ) local acc = getAccountName ( account ) if ( not acc ) then return false end local res = {} acc = "user."..acc local all = "user.*" for ig, group in ipairs ( aclGroupList() ) do for io, object in ipairs ( aclGroupListObjects ( group ) ) do if ( ( acc == object ) or ( all == object ) ) then table.insert ( res, aclGroupGetName ( group ) ) break end end end return res end You should ask him before use it though. Link to comment
Tete omar Posted August 4, 2012 Author Share Posted August 4, 2012 Because he made a function to get them. function aclGetAccountGroups ( account ) local acc = getAccountName ( account ) if ( not acc ) then return false end local res = {} acc = "user."..acc local all = "user.*" for ig, group in ipairs ( aclGroupList() ) do for io, object in ipairs ( aclGroupListObjects ( group ) ) do if ( ( acc == object ) or ( all == object ) ) then table.insert ( res, aclGroupGetName ( group ) ) break end end end return res end You should ask him before use it though. should i want him to be online on IRC ? Link to comment
Castillo Posted August 4, 2012 Share Posted August 4, 2012 Yes, you should wait for him and ask permission to use it. Link to comment
Tete omar Posted August 4, 2012 Author Share Posted August 4, 2012 ok, what about countries ? i only want to get his country name not the flag Link to comment
Jaysds1 Posted August 4, 2012 Share Posted August 4, 2012 well, you would need to modify the script and type in the Countries name's. Link to comment
Tete omar Posted August 4, 2012 Author Share Posted August 4, 2012 like this ? getElementData(source,"country") Link to comment
Jaysds1 Posted August 4, 2012 Share Posted August 4, 2012 actually I meant in the Admin Resource, it should be located in the server folder and the file should be called 'admin_ip2c". 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