Limit amount of slay/slap/ban with certain admin flag?
Hi all,
Basically what I am trying to do is make something that keeps a tally of how many times an admin uses the slay/slap/ban commands and store it in a mysql database based on steamid (for CZ anyway), and then when it reaches a certain number it wont allow the admin to do that certain command, but I'm having a bit of trouble figuring out what hooks or commands I can bind it to, because I dont want to patch the amxx source. Does anyone have any suggestions? |
Sounds like you'd want to modify the built in admincmd.sma,
you could hook into those functions for the commands and add your entries for selecting, updating, and reacting there. I havent programmed with the sql plugin yet, but basically every time someone runs ban, kick, etc, right after it checks their access and verifies the player you want to kick, read the database to see how many times the admin has kicked. depending on this allow them to kick and update the entry in the sql database, or refuse to do the kick. hope this helps a little |
| All times are GMT -4. The time now is 14:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.