1LoL1 Posted July 10, 2014 Author 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 ) )
Et-win Posted July 10, 2014 Posted July 10, 2014 I do it like that. There are other ways. Don't know out of my head now which ones. ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
Max+ Posted July 11, 2014 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 ) - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
1LoL1 Posted July 12, 2014 Author 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?
Et-win Posted July 12, 2014 Posted July 12, 2014 Lol, none of our scripts ever did... ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
1LoL1 Posted July 12, 2014 Author Posted July 12, 2014 But these groups are not in the admin panel? acceptedGroups = { "Admin", "Console", "Skillers", "Skillers2", }
MIKI785 Posted July 12, 2014 Posted July 12, 2014 Admin panel has nothing to do with it at all! Those are ACL groups... nothing more. Lua Scripter Owner of mshost.cz MTA portal.
Et-win Posted July 12, 2014 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? ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
1LoL1 Posted July 12, 2014 Author 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 ..
Et-win Posted July 12, 2014 Posted July 12, 2014 This has nothing to do with Admin Panel, and you mean Team's I guess.......... ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
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