Thread: Tidy Chat
View Single Post
Koga73
Senior Member
Join Date: Mar 2011
Location: 🍩
Old 01-30-2017 , 20:04   Re: Tidy Chat
Reply With Quote #120

Quote:
Originally Posted by bizarrosandwich View Post
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




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!
Works like a dream! Thanks!
__________________
Koga73 is offline