Limted admin Slap / Slay / Ban / Kick
I've bad problems in the past when giving away admin on my server that some children would get upset and decided that it was there duty to ban everyone in the server before they left.
Now that doesn't happen anymore, but people still abuse the slay/slap/kick commands when I'm not around, I'm sure others have the same problem with their admins. Basically I want a plugin that will limit admins from being able to slap/kick/slay/ban constantly. So an admin with flag "p" can only use those commands twice a minute. So 2 bans/slays/slaps/kicks per minute. This way if they want to ban everyone they have to wait 1 minute. It would be nice to have cvars for the amount of times an admin has and the time between the next period. Idle would probably be 3Bans per 5 minutes. 5 Kicks per 5 minutes. 3 Slaps per minute. 1 Slay per minute. |
Re: Limtied admin Slap / Slay / Ban / Kick
I "could" make this , but this problem wont appear when you only give admin to people you really know and trust . Ill see if I make it .
|
Re: Limtied admin Slap / Slay / Ban / Kick
Well I mean Its happened to me even when admin was given to a select view people that where loyal / trust worthy but this is the internet and people do crazy things, so its better to be save then sorry you know what I mean?
Thanks for giving it a go :) |
Re: Limtied admin Slap / Slay / Ban / Kick
I don't think I need to reset the count when people disconnect. It rather depends on how high you set the cvars.
You need to place this plugin's file name above admincmd.amxx in plugins.ini. Code:
|
Re: Limtied admin Slap / Slay / Ban / Kick
thanks so much lee, so whats the delay time between bans? or how many per seconds etc.
|
Re: Limtied admin Slap / Slay / Ban / Kick
Quote:
|
Re: Limtied admin Slap / Slay / Ban / Kick
|
Re: Limtied admin Slap / Slay / Ban / Kick
1 Attachment(s)
There are four cvars, amx_slap_usage, amx_slay_usage, amx_kick_usage and amx_ban_usage that are all set to 30 (seconds) by default. There are no errors in my code; there is a Firefox bug that strips line breaks when copying the entirety of a code box. I've attached it for your convenience. Alternatively you could use the general purpose plugin SnoW posted.
|
Re: Limtied admin Slap / Slay / Ban / Kick
Quote:
|
Re: Limtied admin Slap / Slay / Ban / Kick
Thanks so much its perfect and works perfectly. If there is anything I will surely give you a shout, do you mind looking at another post I made?
http://forums.alliedmods.net/showthread.php?t=75993 Thanks again :) Much <3 sweety. ps. may I suggest posting your code with PHP tags as that can be copied properly by Firefox :) |
| All times are GMT -4. The time now is 23:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.