ULX

Author Topic: MOTD's window questions  (Read 3937 times)

0 Members and 2 Guests are viewing this topic.

Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
MOTD's window questions
« 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 ?
« Last Edit: September 20, 2007, 05:25:09 PM by Kyzer »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: MOTD's window questions
« Reply #1 on: September 20, 2007, 05:33:10 PM »
LocalPlayer():ConCommand( "disconnect\n" )
Experiencing God's grace one day at a time.

Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: MOTD's window questions
« Reply #2 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