Results 1 to 8 of 8

Thread: Disconnect a player using script

  1. #1
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts

    Disconnect a player using script

    Hello,

    I need to disconnect a player using my script. Any commands? (I may be missing something obvious).
    By the way, in this case, I can't use disconnect through the execclientcmd.


    Thanks in advance.
    Last edited by guiismiti; 4th October 2015 at 22:14.
    set logfile 2

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Do u mean u cant use execclientcmd?

  3. #3
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    yes
    10char10char
    set logfile 2

  4. #4
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    And why is that?

  5. #5
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    I intend to play one map only with bots. After a fast_restart, they join the spec team, and I can kick them with the kick command. I just want the server to kick them, instead of a player with rcon.
    set logfile 2

  6. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    timescale 0.01

  7. The Following User Says Thank You to kung foo man For This Useful Post:

    guiismiti (5th October 2015)

  8. #7
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    I've failed to inject libcod, on both win 7 and 10.

    Edited: I've actually just realized how to do it...
    Last edited by guiismiti; 5th October 2015 at 01:04.
    set logfile 2

  9. #8
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Yea, as nice Windows can be for debugging/cracking, as fundamental stuff is also missing, like something like LD_PRELOAD.

    I found a .dll wrapper on GitHub and I extended it a bit to work with Windows 8 style .dll's. It could basically be used to make the whole process of injecting easier, but I guess nobody wants to extend the Windows version nonetheless (way more work to do simple stuff, because Visual Studio optimized the binary way more than gcc).
    timescale 0.01

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •