Dinossauro Posted November 1, 2012 Share Posted November 1, 2012 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
fmj02 Posted November 1, 2012 Share Posted November 1, 2012 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
Dinossauro Posted November 2, 2012 Author Share Posted November 2, 2012 I wanted something like this: Who would use the command /exit back to the server with the ammunition, who uses the /quit or /reconnect not. /exit = /sair Please, help-me! Link to comment
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