Thread: Tidy Chat
View Single Post
bizarrosandwich
New Member
Join Date: Sep 2015
Location: Tucson, AZ
Old 06-15-2016 , 03:20   Re: Tidy Chat
Reply With Quote #119

Hey everyone! Here's a working version for CS:GO. I'm a n00b when it comes to this stuff so here was my process for anyone interested.

@cravenge was right concerning the error "Game event "player_connect_client" does not exist"
Searched that event hook in the forums, which brought me to this post by @psychonic

Quote:
Originally Posted by psychonic View Post
CS:GO only has player_connect and no longer sets the IP address in it. TF2 added a second event, player_connect_client that does not have the IP address set and gets broadcast to clients. TF2 still has player_connect, and it still triggers the serverside logging.

With that info, I opened the tidychat sourcecode and simply changed the line:
HookEvent("player_connect_client", Event_PlayerConnect, EventHookMode_Pre);
to
HookEvent("player_connect", Event_PlayerConnect, EventHookMode_Pre);

Compiled in the latest version of sm 1.7 and tested in my 1v1 server. It loaded without any errors and is blocking connect/dc/cvar messages so far at least, which is what I needed. Unsure about the team changes and such. Wasn't able to try tonight. But let me know if it works.

Thank you @pheadxdll for this great plugin!
Attached Files
File Type: smx tidychat.smx (5.7 KB, 307 views)
File Type: sp Get Plugin or Get Source (tidychat.sp - 764 views - 4.4 KB)

Last edited by bizarrosandwich; 06-15-2016 at 03:33. Reason: forgot the files lol
bizarrosandwich is offline