PDA

View Full Version : Disconnect a player using script



guiismiti
4th October 2015, 21:29
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.

Ni3ls
4th October 2015, 22:06
Do u mean u cant use execclientcmd?

guiismiti
4th October 2015, 22:13
yes
10char10char

Ni3ls
4th October 2015, 22:35
And why is that?

guiismiti
4th October 2015, 22:42
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.

kung foo man
5th October 2015, 00:12
Just kick bots? http://killtube.org/showthread.php?1940-Kicking-bots

guiismiti
5th October 2015, 00:54
I've failed to inject libcod, on both win 7 and 10.

Edited: I've actually just realized how to do it...

kung foo man
5th October 2015, 03:52
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 (https://github.com/kungfooman/Dll_Wrapper_Gen) 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).