Jump to content

Problem with kickPlayer() command


Recommended Posts

Right my problem is that i can't get this resource to kick the player,

its a client script for a gui and when a button is pressed it kicks the player, localPlayer is declared at the beggining of the script as

  
localPlayer = getLocalPlayer() 
  

the resource is given admin rights in the acl and the function below is called but it doesn't kick the player

  
function kick_player() 
outputConsole("Button pressed") 
kickPlayer ( localPlayer ) 
end 
  

please help i dunno what to do it should work and i am very frustrated.

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