AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Anti-Crash (autobuy) & fullupdate blocker with logging (https://forums.alliedmods.net/showthread.php?t=163883)

alonelive 08-04-2011 14:01

Anti-Crash (autobuy) & fullupdate blocker with logging
 
2 Attachment(s)
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... :)


http://img13.imageshost.ru/img/2011/...ade6dc2242.png

http://img13.imageshost.ru/img/2011/...ade2928140.png

yokomo 08-04-2011 14:11

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Valve already fix this exploit. But i believe many people still need this because they wont update to beta hlds. Thank for your hardwork.

nikhilgupta345 08-04-2011 14:44

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Quote:

Steam and NoSteam support for bans (by IP and STEAMID)
Remove non-steam support..

alonelive 08-04-2011 14:50

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Quote:

/*////////// Comment this line to disable NON-STEAM ban support (by ip-address). */
/*///////// Закомментируйте линию ниже, чтобы отключить поддержку NON-STEAM (бан по IP-адресу). */
#define ENABLE_NOSTEAM_SUPPORT
It's time to choose :)

nikhilgupta345 08-04-2011 15:04

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
This site does not support non-steam because it is illegal.

Remove it from your code.

alonelive 08-04-2011 15:12

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
WOW :)
you - moderator?

fysiks 08-04-2011 15:17

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Quote:

Originally Posted by alonelive (Post 1525751)
WOW :)
you - moderator?

No. Are you saying non-moderators have no morals?

Oh, and it's a poor method for detecting fullupdate abuse. Fullupdate is a needed command.

alonelive 08-04-2011 15:26

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
Ns support removed..

bibu 08-04-2011 15:49

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
PHP Code:

    new name[33]
    
get_user_name(idname32

->

PHP Code:

    new name[32]
    
get_user_name(idname31


Arkshine 08-04-2011 16:20

Re: Anti-Crash (autobuy) & fullupdate blocker with logging
 
No, 33 is correct. Max character for a name : 32. Add the EOS, and you have 33.


All times are GMT -4. The time now is 14:34.

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