Raised This Month: $51 Target: $400
 12% 

Vac Bans Announcer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
matrixmark
Senior Member
Join Date: Jun 2010
Old 11-30-2013 , 07:09   Vac Bans Announcer
Reply With Quote #1

Hey,

I use the Sourcebans checker plugin which tells admins when a previously banned (banned via sourcebans) player joins.

I was wondering if a similar plugin could be made that announces (to admins) when a player with VAC bans on record joins. I have VAC status plugin but I dont really like banning all the time so just a heads up or something to keep an eye on them.

Much bacon would be given and maybe a small donation too if it's possible.

Thanks for your time.
__________________

matrixmark is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 11-30-2013 , 09:12   Re: Vac Bans Announcer
Reply With Quote #2

Edited the plugin here slightly... https://forums.alliedmods.net/showthread.php?p=717999

Changed up this console variable:
Code:
// Action to take on VAC banned clients (0 = ban, 1 = kick, 2 = admin message)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_vacbans_action "0"
It should tell all admins in chat now when a VAC banned player joins the server and connects if that console variable is set to 2. The command access check would be 'sm_listvac' and by default, it's only for admins with ban privileges.

Note: Haven't compiled it.

Update: Fixed the compile, accidentally added the logging functionality inside of the switch statement without a case.
Attached Files
File Type: sp Get Plugin or Get Source (vacbans.sp - 182 views - 12.9 KB)

Last edited by Drixevel; 12-01-2013 at 07:45.
Drixevel is offline
matrixmark
Senior Member
Join Date: Jun 2010
Old 12-01-2013 , 05:09   Re: Vac Bans Announcer
Reply With Quote #3

Thanks very much for doing this R3d.

Sadly when I tried to compile it there were errors, and I don't know enough to fix it myself.

Pic attached of the error.

__________________

matrixmark is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-01-2013 , 07:45   Re: Vac Bans Announcer
Reply With Quote #4

Updated my post above with a new version, that should work.
Drixevel is offline
matrixmark
Senior Member
Join Date: Jun 2010
Old 12-01-2013 , 13:53   Re: Vac Bans Announcer
Reply With Quote #5

Quote:
Originally Posted by r3dw3r3w0lf View Post
Updated my post above with a new version, that should work.
Thanks again will try this tonight and post back when I know.



EDIT: Compiles fine with 0 errors now. Will install to server and try it now.
__________________


Last edited by matrixmark; 12-01-2013 at 13:55. Reason: added info
matrixmark is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode