BriGhtx3 Posted May 23, 2011 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? Currently working on gamemodes : Reallife Script 70% Breakout Script 10%
Castillo Posted May 23, 2011 Posted May 23, 2011 Have you added the resource to the acl.xml? kickPlayer requires admin powers to be used. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BriGhtx3 Posted May 23, 2011 Author Posted May 23, 2011 Yes Currently working on gamemodes : Reallife Script 70% Breakout Script 10%
Castillo Posted May 23, 2011 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 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BriGhtx3 Posted May 23, 2011 Author Posted May 23, 2011 Won't work. My ACL : I work with a database. debugscript is also there but it says acces denied. Currently working on gamemodes : Reallife Script 70% Breakout Script 10%
Castillo Posted May 23, 2011 Posted May 23, 2011 So, you don't have the resource at the Group Admin, right? if so, add it there too. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BriGhtx3 Posted May 23, 2011 Author Posted May 23, 2011 Yes Currently working on gamemodes : Reallife Script 70% Breakout Script 10%
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