Jump to content

help-me | /exit, /quit and /reconnect


Dinossauro

Recommended Posts

Hello

I have a scrip that is, players write / exit the chat and spent 5 seconds they disconnect!

I wanted to add the following script:

Who wrote / exit to enter the server again would munitions, who write / quit or / reconnect would not!

script:

function KickPlayer(thePlayer,reason) 
        kickPlayer ( thePlayer, "Console", reason ) 
end 
  
function kickPlayerHandler ( sourcePlayer, commandname, kickedname, reason ) 
        local reason = "Você saiu com sucesso." 
        outputChatBox ( "Você vai sair do servidor, em 5 segundos." ) 
        setTimer ( KickPlayer, 5000, 1, sourcePlayer,reason ) 
end 
addCommandHandler ( "sair", kickPlayerHandler) 

thanks!

Link to comment
function KickPlayer(thePlayer, command) 
    outputChatBox ("Você vai sair do servidor, em 5 segundos.", thePlayer, 255, 255, 255) 
    setTimer(kickPlayer,5000,1,thePlayer, "Você saiu com sucesso.") 
end 
addCommandHandler("sair", KickPlayer) 

I don't understand what do you want, I understood you want to kick the player when he will use /sair command after 5 seconds.

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