Disconnect Reason
4 Attachment(s)
Disconnect Reason .: v0.6 Description This plugin notifies players via chat and console the reason that a player has disconnected (ie. Timed out, Client sent 'drop', Kicked). The standard console message notifying of a player disconnect will not be shown when the plugin is enabled. I've also eliminated the cvars found in the previous release that controlled notification types and notification methods; all types of disconnects are displayed in both chat and console. There is also a forward which allows you to utilize disconnect reasons in your own plugins 'client_disconnect_reason( id , drCode , szReason[] )', see below example. The forward remains active regardless of the dr_enabled cvar value which will only control chat\console message. Made by request. CVars
Forwards
Disconnect Reason Codes PHP Code:
Installation
ScreenShots http://img.photobucket.com/albums/v2...ona/t_chat.jpg http://img.photobucket.com/albums/v2...na/ct_chat.jpg http://img.photobucket.com/albums/v2...na/console.jpg Example Plugin PHP Code:
3400 7/3/15 |
Re: Disconnect Reason
Wow, cool
|
Re: Disconnect Reason
Why not use MSG_BROADCAST for chat message?
|
Re: Disconnect Reason
I copied that function from my aimbot detect plugin which notifies on a per player basis. I will modify when I get home.
|
Re: Disconnect Reason
Good job. :)
|
Re: Disconnect Reason
I have to update my tutorial but a better rule would be : all can be changed except the first byte and local vars (e*x).
So you get something like : Code:
[0x55,0x8B,"*",0x81,"*","*","*","*","*",0x8B,0x4D,"*",0x53,0x56,0x8D,0x45,"*",0x57,0x50,0x51] |
Re: Disconnect Reason
Nice plugin! :)
|
Re: Disconnect Reason
I didn't understand the signature mask part very well. I tried to do exactly what was done in the sigscanning tut and your (Arkshine) tut, but for the most post I was just experimenting and it worked. A tutorial dedicated to making signatures/masks from a newbie perspective would be very useful. I have no experience on the subject.
|
Re: Disconnect Reason
I have an idea for you. What about to add the reason when mp_autokick is set to 1 and the player get kicked by it? :)
|
Re: Disconnect Reason
If it can help better :
Code:
55 push ebp - Green -> When you see e*x is used, you can keep the byte Others = could be changed. |
All times are GMT -4. The time now is 08:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.