General > Developers Corner
MOTD's window questions
(1/1)
Chironex:
Sorry - problem solved by myself :D
* will try better before posting, next time *
But still, one question: how to kick the LocalPlayer ? I tried:
--- Code: ---LocalPlayer():Kick()
--- End code ---
But apparently there is no Kick() function :)
Should i do a LocalPlayer():ConCommand or is there an easier way ?
Megiddo:
LocalPlayer():ConCommand( "disconnect\n" )
Chironex:
Ah, right, thanks!
I was doing
--- Code: ---button2.DoClick = function() LocalPlayer():ConCommand( "kickid2 ".. LocalPlayer():UserID().. "\n" ) end
--- End code ---
but i don't think it will work if players doesn't have access to the kickid2 command :)
Thanks again
Navigation
[0] Message Index
Go to full version