Jump to content

KickPlayer


Recommended Posts

  
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...