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...