devildead622 Posted March 15, 2013 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>
TheIceman1 Posted March 15, 2013 Posted March 15, 2013 Men,you must post your problem(error),if you wont post error nobody will help you!
devildead622 Posted March 15, 2013 Author Posted March 15, 2013 Why are not you working? it does not add the user in the group
TheIceman1 Posted March 15, 2013 Posted March 15, 2013 You enter in chat /removeplayer1 or /removeplayer1 ?
TheIceman1 Posted March 15, 2013 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>
PaiN^ Posted March 15, 2013 Posted March 15, 2013 You should add the resource to the Admin group in ACL ..
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