devildead622 Posted March 15, 2013 Share Posted March 15, 2013 Why are not you working? Command: function delbase (playerSource, commandName, accountName) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "baseasfarcdono" ) ) then if accountName then aclGroupRemoveObject (aclGetGroup("baseasfarc"), "user."..accountName) outputChatBox ("Conta '"..accountName.."' nao tem mais permicao!", playerSource) else outputChatBox ("Nome de conta errado", playerSource) outputChatBox ("Correto: /removerplayer1 [nome]", playerSource) end end end addCommandHandler ("removerplayer1", delbase) function givebase (playerSource, commandName, accountName) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "baseasfarcdono" ) ) then if accountName then aclGroupAddObject (aclGetGroup("baseasfarc"), "user."..accountName) outputChatBox ("Conta '"..accountName.."' agora tem permicao para abrir seu portao", playerSource) else outputChatBox ("Nome incorreto", playerSource) outputChatBox ("Correto: /addplayer1 [accountName]", playerSource) end end end addCommandHandler ("addplayer1", givebase) Acl.xml <group name="baseasfarc"> <object name="resource.baseasfarc"></object> <object name="user.asfarc"></object> </group> <group name="baseasfarcdono"> <object name="resource.baseasfarc"></object> <object name="user.asfarc"></object> </group> Link to comment
devildead622 Posted March 15, 2013 Author Share Posted March 15, 2013 ??????? you can help me? Link to comment
TheIceman1 Posted March 15, 2013 Share Posted March 15, 2013 Men,you must post your problem(error),if you wont post error nobody will help you! Link to comment
devildead622 Posted March 15, 2013 Author Share Posted March 15, 2013 Why are not you working? it does not add the user in the group Link to comment
TheIceman1 Posted March 15, 2013 Share Posted March 15, 2013 You enter in chat /removeplayer1 or /removeplayer1 ? Link to comment
TheIceman1 Posted March 15, 2013 Share Posted March 15, 2013 I dont see anything wrong.Try this: Command: function delbase (commandName, accountName) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "baseasfarcdono" ) ) then if accountName then aclGroupRemoveObject (aclGetGroup("baseasfarc"), "user."..accountName) outputChatBox ("Conta '"..accountName.."' nao tem mais permicao!", source) else outputChatBox ("Nome de conta errado", source) outputChatBox ("Correto: /removerplayer1 [nome]", source) end end end addCommandHandler ("removerplayer1", delbase) function givebase (commandName, accountName) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "baseasfarcdono" ) ) then if accountName then aclGroupAddObject (aclGetGroup("baseasfarc"), "user."..accountName) outputChatBox ("Conta '"..accountName.."' agora tem permicao para abrir seu portao", source) else outputChatBox ("Nome incorreto", source) outputChatBox ("Correto: /addplayer1 [accountName]", source) end end end addCommandHandler ("addplayer1", givebase) Acl.xml <group name="baseasfarc"> <object name="resource.baseasfarc"></object> <object name="user.asfarc"></object> </group> <group name="baseasfarcdono"> <object name="resource.baseasfarc"></object> <object name="user.asfarc"></object> </group> Link to comment
devildead622 Posted March 15, 2013 Author Share Posted March 15, 2013 what do changed? Link to comment
devildead622 Posted March 15, 2013 Author Share Posted March 15, 2013 still not working Link to comment
PaiN^ Posted March 15, 2013 Share Posted March 15, 2013 You should add the resource to the Admin group in ACL .. 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