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.