Raised This Month: $ Target: $400
 0% 

Catching ban events


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Damocles
Member
Join Date: Jan 2005
Old 01-28-2005 , 07:03   Catching ban events
Reply With Quote #1

lo all

I've been using amx_bans on my server and ive realised its causing quite a bad intermittent lag...so its had to come off :/

I'm thinking about writting a bit of custom code just to add anyone banned to a more simplistic mysql db and then use that info to display a list of bans on my website.

My question is pretty simple, can i write an adjoining plugin that will catch the same events as admincmd to write the ban details to the DB at the same time as writing them to banned.cfg

So could i write a plugin that would catch "amx_ban", "amx_banip", "amx_addban", as below in admincmd and use my code to write the details to a DB.

Code:
register_concmd("amx_ban","cmdBan",ADMIN_BAN,"<name or #userid> <minutes> [reason]") register_concmd("amx_banip","cmdBanIP",ADMIN_BAN,"<name or #userid> <minutes> [reason]") register_concmd("amx_addban","cmdAddBan",ADMIN_BAN,"<authid or ip> <minutes> [reason]")

or would it just be easier to alter the existing admincmd to insert code to write to a DB ??

Thanks

Damo.
Damocles is offline
 



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:20.


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