Raised This Month: $ Target: $400
 0% 

Anti-Crash (autobuy) & fullupdate blocker with logging


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 08-04-2011 , 14:01   Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #1

Features:

  • Management a fullupdate command (BAN after X times use), set the max times to use
  • Protecting your server against autobuy crash exploit (cl_autobuy f*ck 123..).
  • Steam support for bans (by STEAMID)
  • Logging argumets of commands (autobuy, etc.)
  • Chat & sound announce
This plugin has a detailed logs, located here:

Code:
/* LOG Files **********************************************************************************************
addons/amxmodx/logs/anti-crash/fullupdate.log          - log of cleitns, who used fullupdate commands;    *
addons/amxmodx/logs/anti-crash/fullupdate-BANNED.log   - who have a ban by this plugin;                   *
addons/amxmodx/logs/anti-crash/autobuy.log             - autobuy attempts.                                *
**********************************************************************************************************/
Total: 1 sma, 1 amxx, 1 txt (lang file) + logs


CVARS:


/*////////// Set the max allowed count client's fullupdate commands before he will be banned. */
/*//////// Укажите максимальное кол-во раз ввода команды fullupdate игроком перед баном. */
register_cvar("ac_fupdate_maxcount", "5")

/*////////// Autobuy message in chat: "Autobuy is no allowed" every time when client use an autobuy command. Set "0" to disable. */
/*//////// Анонс в чате для игрока, использующего автобай: "Автозакупка не разрешена на сервере". Установите "0", чтобы выключить. */
register_cvar("ac_autobuy_announce", "1")

/*////////// Autobuy message in chat: "Fullupdate is no allowed" every time when client use a fullupdate command. Set "0" to disable. */
/*//////// Анонс в чате для игрока, использующего fullupdate: "Fullupdate не разрешен на сервере". Установите "0", чтобы выключить. */
register_cvar("ac_fullupdate_announce", "1")

/*////////// Sound announce for autobuy & fullupdate commands. Set "0" to disable. */
/*//////// Звуковой анонс для команд autobuy & fullupdate. Установите "0", чтобы выключить. */
register_cvar("ac_sound_announce", "1")


RESTRICTED AUTOBUY COMMANDS:

"cl_setautobuy"
"cl_autobuy"
"cl_setrebuy"
"cl_rebuy"
"autobuy"


Examples FROM Logs:

Quote:
L 08/04/2011 - 21:51:15: "AloneLive [sound off]<2><STEAM_0:0:1534814267><CT><192.168.1.2:270 05>" used AUTOBUY command. (Arguments: "m4a1 ak47 famas galil p90 mp5 deagle primammo secammo defuser vesthelm vest flash hegren")
Quote:
L 08/04/2011 - 21:51:26: "AloneLive [sound off]<2><STEAM_0:0:1534814267><CT><192.168.1.2:270 05>" use a *fullupdate* command (1/5)
Quote:
L 08/04/2011 - 21:53:05: "AloneLive [sound off]<1><STEAM_0:0:1534814267><CT><192.168.1.2:270 05>" got permanent ban. Reason: Attempted server crash.
P.S> my first normal plugin...




Attached Files
File Type: txt anti-crash.txt (715 Bytes, 6122 views)
File Type: sma Get Plugin or Get Source (anti-crash_with_logger.sma - 12364 views - 6.1 KB)
__________________
sorry my bad english...

Last edited by alonelive; 08-04-2011 at 15:26.
alonelive is offline
 


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 20:10.


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