View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-23-2018 , 16:47   Re: How to set SDKHook on round_start correctly?
Reply With Quote #7

8guawong, thanks. You are right. I made a problem myself by Unhooking on "disconnect" reason.
I thought player_team set that reason when player is really disconnect from the server.

Looks like my main question is over. After hooking it once, engine never unhook it again itself.

So, how to recognize is it disconnection because client quit the game or because map ends?
OnClientDisconnect() forward is also called for all clients just right before map ends.

EDIT.
Ohh, MasterMind, Crasher, thanks too.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 10-23-2018 at 16:52.
Dragokas is offline