Raised This Month: $ Target: $400
 0% 

Catching ban events


Post New Thread Reply   
 
Thread Tools Display Modes
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
Votorx
Senior Member
Join Date: Jun 2004
Old 01-28-2005 , 07:20  
Reply With Quote #2

Would probably best if you just edit admincmd
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
Damocles
Member
Join Date: Jan 2005
Old 01-28-2005 , 10:37  
Reply With Quote #3

kk thx ;)
Damocles is offline
Reply


Thread Tools
Display Modes

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