1LoL1 Posted July 10, 2014 Author Share Posted July 10, 2014 This is what I saw there .. but I know that I have seen such a script without this. And the admin panel to unrelated. accountname = getAccountName (getPlayerAccount(tPlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) Link to comment
Et-win Posted July 10, 2014 Share Posted July 10, 2014 I do it like that. There are other ways. Don't know out of my head now which ones. Link to comment
Max+ Posted July 11, 2014 Share Posted July 11, 2014 acceptedGroups = { "Admin", "Console", "Skillers", "Skillers2", } addEventHandler(' onResourceStart', resourceRoot, function ( ) myGate1 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z myGate2 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z end ) addCommandHandler('open', function ( ) local isAllowed = false for placeNumber, stringData in ipairs(acceptedGroups) do accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then isAllowed = true end end if (isAllowed == true) then moveObject ( myGate1, 4000, x, y, z ) --- add the id and x, y , z / move gate 1 moveObject ( myGate2, 4000, x, y, z ) --- add the id and x, y , z / move gate 2 else outputChatBox ("You Are not in accepted Groups !",source, 255, 0, 0 ) --- if not in the groups end end ) addCommandHandler('close', function ( ) local isAllowed = false for placeNumber, stringData in ipairs(acceptedGroups) do accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then isAllowed = false end end if (isAllowed == false) then moveObject ( myGate1, 4000, x, y, z )--- add the id and x, y , z / move gate 1 moveObject ( myGate2, 4000, x, y, z )--- add the id and x, y , z / move gate 2 else outputChatBox ("You Are not in accepted Groups ! !",source, 255, 0, 0 ) end end ) Link to comment
1LoL1 Posted July 12, 2014 Author Share Posted July 12, 2014 acceptedGroups = { "Admin", "Console", "Skillers", "Skillers2", } addEventHandler(' onResourceStart', resourceRoot, function ( ) myGate1 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z myGate2 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z end ) addCommandHandler('open', function ( ) local isAllowed = false for placeNumber, stringData in ipairs(acceptedGroups) do accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then isAllowed = true end end if (isAllowed == true) then moveObject ( myGate1, 4000, x, y, z ) --- add the id and x, y , z / move gate 1 moveObject ( myGate2, 4000, x, y, z ) --- add the id and x, y , z / move gate 2 else outputChatBox ("You Are not in accepted Groups !",source, 255, 0, 0 ) --- if not in the groups end end ) addCommandHandler('close', function ( ) local isAllowed = false for placeNumber, stringData in ipairs(acceptedGroups) do accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then isAllowed = false end end if (isAllowed == false) then moveObject ( myGate1, 4000, x, y, z )--- add the id and x, y , z / move gate 1 moveObject ( myGate2, 4000, x, y, z )--- add the id and x, y , z / move gate 2 else outputChatBox ("You Are not in accepted Groups ! !",source, 255, 0, 0 ) end end ) It has something to do with admin panel? Link to comment
Et-win Posted July 12, 2014 Share Posted July 12, 2014 Lol, none of our scripts ever did... Link to comment
1LoL1 Posted July 12, 2014 Author Share Posted July 12, 2014 But these groups are not in the admin panel? acceptedGroups = { "Admin", "Console", "Skillers", "Skillers2", } Link to comment
MIKI785 Posted July 12, 2014 Share Posted July 12, 2014 Admin panel has nothing to do with it at all! Those are ACL groups... nothing more. Link to comment
Et-win Posted July 12, 2014 Share Posted July 12, 2014 But these groups are not in the admin panel? acceptedGroups = { "Admin", "Console", "Skillers", "Skillers2", } You can add your own groups to it. Add those who you want to be able to open it. Or do you mean you want to work without these groups but with accounts? Link to comment
1LoL1 Posted July 12, 2014 Author Share Posted July 12, 2014 But these groups are not in the admin panel? acceptedGroups = { "Admin", "Console", "Skillers", "Skillers2", } You can add your own groups to it. Add those who you want to be able to open it. Or do you mean you want to work without these groups but with accounts? I think also the group that has, for example, Castillo .. and there I create as "Skillers" Just you and people who are in Skillers will be able to open / close BASE. and this with admin panel has nothing to do .. Link to comment
Et-win Posted July 12, 2014 Share Posted July 12, 2014 This has nothing to do with Admin Panel, and you mean Team's I guess.......... 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