Raised This Month: $51 Target: $400
 12% 

Anti-Crash (autobuy) & fullupdate blocker with logging


Post New Thread Reply   
 
Thread Tools Display Modes
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, 6095 views)
File Type: sma Get Plugin or Get Source (anti-crash_with_logger.sma - 12299 views - 6.1 KB)
__________________
sorry my bad english...

Last edited by alonelive; 08-04-2011 at 15:26.
alonelive is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 08-04-2011 , 14:11   Re: Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #2

Valve already fix this exploit. But i believe many people still need this because they wont update to beta hlds. Thank for your hardwork.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 08-04-2011 , 14:44   Re: Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #3

Quote:
Steam and NoSteam support for bans (by IP and STEAMID)
Remove non-steam support..
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 08-04-2011 , 14:50   Re: Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #4

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
__________________
sorry my bad english...
alonelive is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 08-04-2011 , 15:04   Re: Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #5

This site does not support non-steam because it is illegal.

Remove it from your code.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 08-04-2011 , 15:12   Re: Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #6

WOW
you - moderator?
__________________
sorry my bad english...
alonelive is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-04-2011 , 15:17   Re: Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #7

Quote:
Originally Posted by alonelive View Post
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.
__________________

Last edited by fysiks; 08-04-2011 at 15:21.
fysiks is offline
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 08-04-2011 , 15:26   Re: Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #8

Ns support removed..
__________________
sorry my bad english...
alonelive is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 08-04-2011 , 15:49   Re: Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #9

PHP Code:
    new name[33]
    
get_user_name(idname32
->

PHP Code:
    new name[32]
    
get_user_name(idname31
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-04-2011 , 16:20   Re: Anti-Crash (autobuy) & fullupdate blocker with logging
Reply With Quote #10

No, 33 is correct. Max character for a name : 32. Add the EOS, and you have 33.
__________________
Arkshine 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 01:46.


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