Ulysses

General => Developers Corner => Topic started by: Chironex on September 20, 2007, 05:04:36 PM

Title: MOTD's window questions
Post by: Chironex on September 20, 2007, 05:04:36 PM
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: [Select]
LocalPlayer():Kick() But apparently there is no Kick() function :)
Should i do a LocalPlayer():ConCommand or is there an easier way ?
Title: Re: MOTD's window questions
Post by: Megiddo on September 20, 2007, 05:33:10 PM
LocalPlayer():ConCommand( "disconnect\n" )
Title: Re: MOTD's window questions
Post by: Chironex on September 20, 2007, 05:36:06 PM
Ah, right, thanks!

I was doing
Code: [Select]
button2.DoClick = function() LocalPlayer():ConCommand( "kickid2 ".. LocalPlayer():UserID().. "\n" ) end but i don't think it will work if players doesn't have access to the kickid2 command :)

Thanks again