View Single Post
Author Message
atom0s
Senior Member
Join Date: Jul 2009
Old 04-05-2010 , 02:10   [ALL] Disconnect Message Blocker
Reply With Quote #1

What is it?

Simple plugin to block disconnect messages from clients when they leave the server. This blocks the known exploit with the custom disconnect which can be used to kick everyone from a server and such.

How to use?

Simply compile it yourself, or download the compiled version here and use it.

Can I change the message shown?

Yes, a cvar has been added to allow you to set a custom disconnect message, simply add the following to your server.cfg:

PHP Code:
disconnect_message "Your reason here." 
The cvar has a max length of 64 chars, I don't know what the max size is for a valid disconnect message, if anyone knows it I will adjust as needed. I set it to 64 for now as a base. I suggest not using long messages though.

Changes

v1.1.0
- Removed unneeded UnhookEvent call.
- Removed unneeded events. (OnMapStart/OnMapEnd)
- Added cvar for custom message since people kept asking.

v1.0.0
- Initial release.
Attached Files
File Type: sp Get Plugin or Get Source (disconnect.sp - 1630 views - 1.5 KB)

Last edited by atom0s; 04-11-2010 at 02:52.
atom0s is offline