BriGhtx3 Posted May 23, 2011 Share Posted May 23, 2011 AdminCommand["kick"]=5 function kick ( thePlayer,commandName,ziel,... ) local kickw = { ... } local kickn = table.concat( kickw, " " ) local adminname = getPlayerFromName(thePlayer) if isAdmin( thePlayer, AdminCommand[string.lower(command)] ) then local kicked = getPlayerFromName ( ziel ) kickPlayer( kicked, kickn) else outputChatBox( "Du hast nicht das Recht dazu!", thePlayer ) end end addCommandHandler ( "kick", kick ) My Problem : The Player doesn't get kicked. There is no error message. ANOTHER PROBLEM : "acl denided for debugscript" What do I have to put in the acl or where do I have to put my name? Link to comment
Castillo Posted May 23, 2011 Share Posted May 23, 2011 Have you added the resource to the acl.xml? kickPlayer requires admin powers to be used. Link to comment
Castillo Posted May 23, 2011 Share Posted May 23, 2011 AdminCommand["kick"]=5 function kick ( thePlayer,commandName,ziel,... ) local kickn = table.concat( kickw, " " ) if isAdmin( thePlayer, AdminCommand[string.lower(command)] ) then local kicked = getPlayerFromName ( ziel ) kickPlayer( kicked, kickn) else outputChatBox( "Du hast nicht das Recht dazu!", thePlayer ) end end addCommandHandler ( "kick", kick ) Link to comment
BriGhtx3 Posted May 23, 2011 Author Share Posted May 23, 2011 Won't work. My ACL : I work with a database. debugscript is also there but it says acces denied. Link to comment
Castillo Posted May 23, 2011 Share Posted May 23, 2011 So, you don't have the resource at the Group Admin, right? if so, add it there too. 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