Jump to content

Vote Kick Problem


devil666

Recommended Posts

Im having a problem with a Vote Kick Script i Made and i dose not give a Error or any thang it just dont kick people here is what i have!

function KickPlayer ( Player )

username = getClientName ( Player )

if ( VoteKick ~= nil ) then

executeCommandHandler ( VoteKick.. username )

end

end

addCommandHandler( "Kick", KickPlayer )

some one Please help Me please

Link to comment

I still don't know whether it's "/votekick" or "/votekick " because that's HUGE difference. If you do VoteKick..username and VoteKick = "/votekick" then it will be "/votekickSomename" which is completely different command. Pay attention to your scripts and even what I'm asking you for since repeating the same question is just wasting time for me ¬¬

You shouldn't concatenate command with username anyway. Just tend to read wiki and you'll have answers to your questions faster then waiting for us to answer your questions.

executeCommandHandler ( string commandName, player thePlayer, [ string args ] )

 Required Arguments

    * commandName: The name of the command you wish to execute. This is what must be typed into the console to trigger the function.

    * thePlayer: The player that will be presented as executer of the command to the handler function(s) of the command

 

    * args: Additional parameters that will be passed to the handler function(s) of the command that is called.

I'm not going to quote wiki anymore... just get used to wiki and add it to your favourites (bookmarks). We are giving answers to all of the scripting questions from wiki.

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