Raised This Month: $ Target: $400
 0% 

Limit amount of slay/slap/ban with certain admin flag?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
synikal
New Member
Join Date: May 2004
Old 07-01-2004 , 00:07   Limit amount of slay/slap/ban with certain admin flag?
Reply With Quote #1

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?
synikal is offline
TGK
Junior Member
Join Date: Jul 2004
Old 07-09-2004 , 09:40  
Reply With Quote #2

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
TGK 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 14:54.


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