Raised This Month: $32 Target: $400
 8% 

Config Fixer v1.2 - n0br41ner


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 09-24-2012 , 13:26   Config Fixer v1.2 - n0br41ner
Reply With Quote #1

Config Fixer:
--------------------

This plugin will give the admins the ability to fix a user's config, returning it to default. This is very useful for players that have been slowhacked to advertise servers without their approval. This plugin will not execute any command until the player has agreed to the fix. The player also has the ability to type /fixconfig to fix his own config.
Added a command amx_displaycommand <name> that will display the command to the player in the middle of the screen as a hudmessage.

Note: I hope this plugin won't get trashed because it is not a slowhack plugin, that's why the user has to accept before any changes take place.


Commands:
-------------
  • amx_fixconfig <name> - Fixes a users config
  • amx_displaycommand <name> - Displays the command to the player
  • say /fixconfig - Fix your own config by yourself


Cvars:
--------

None


Installation:
--------------
  • Copy ConfigFixer.amxx to cstrike/addons/amxmodx/plugins
  • Go to cstrike/addons/amxmodx/configs/plugins.ini and add: ConfigFixer.amxx


Modules:
----------

amxmodx


Credits:
---------

None


Change Log:
--------------

1.0: 23/September/2012
  • initial release
1.1: 24/September/2012
  • added cvar for punishement picking (none - kick - ban)
  • added cvar for bantime
1.2: 25/September/2012
  • removed punishment and bantime cvars
  • added a client command to reset their own config
  • added command that displays the command to the user
  • fixed some bugs
  • added the escape button to the binds
  • added missing binds
1.3: 17/December/2012
  • fixed small bug thanks to isotonic

Downloads Reset:
13
164
Attached Files
File Type: sma Get Plugin or Get Source (ConfigFixer.sma - 1921 views - 8.5 KB)
__________________

Last edited by n0br41ner; 12-16-2012 at 18:15.
n0br41ner is offline
Old 09-24-2012, 16:43
ANTICHRISTUS
This message has been deleted by ANTICHRISTUS. Reason: nvm
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 09-24-2012 , 16:52   Re: Config Fixer v1.1 - n0br41ner
Reply With Quote #2

My logic is: "Why block the spam when you can put an end to it?"
You might say that getting rid of the spam is as easy as deleting your config.cfg file. You are right. But you have to think about all the new players that honestly don't know how to do anything in CS except buy a weapon and fire.

Way before when i first started playing CS, i was ignorant when it came to these stuff (4 years ago or so), and every time i got slowhacked, i used to re-install CS, witch is a time consuming process. Also, most of the players - and i do mean MOST - do not know how to even toggle the console to even change the binds.

As you can see from the code pretty clearly, that all the executed commands are the default ones. Therefore no harm is actually being done to the player.

I really do not believe that this plugin is a slowhack plugin, since:
#1 the user has a choice to accept or not to accept the fix
#2 all executed commands are the default ones
#3 this plugin was made with the intention to help players who got slowhacked
__________________

Last edited by n0br41ner; 09-24-2012 at 17:00.
n0br41ner is offline
Old 09-24-2012, 17:13
ANTICHRISTUS
This message has been deleted by ANTICHRISTUS. Reason: nvm
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 09-24-2012 , 17:25   Re: Config Fixer v1.1 - n0br41ner
Reply With Quote #3

I accept the fact that this plugin might be against the rules, and that's why i made it in a way that the admin executing the command does not have the higher privilege and that the user is the one who decides at the end.
Also about the punishment for declining the fix is understandable seeing that most server owners won't want advertisers on their servers, and because it was not their fault they are advertising, hence this plugin.

Before i published this plugin, i clearly sent ConnorMcLeod a private message asking if this plugin is violating any rules.
Also this plugin is some what similar to this one i think, and it got approved.
I am not making judgments here but what do you think about the Exec plugins here and here. The admin can clearly execute commands on their approval.
__________________

Last edited by n0br41ner; 09-24-2012 at 17:27.
n0br41ner is offline
Old 09-24-2012, 17:27
ANTICHRISTUS
This message has been deleted by ANTICHRISTUS. Reason: nvm
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-24-2012 , 17:58   Re: Config Fixer v1.1 - n0br41ner
Reply With Quote #4

Quote:
Originally Posted by n0br41ner View Post
Before i published this plugin, i clearly sent ConnorMcLeod a private message asking if this plugin is violating any rules.
And what was his answer?



Suggestions (maybe requirements):
1) Remove the Admin functionality. Require the Client to initiate the change.
2) Fix your permissions menu to be more clear. Your plugin does not just remove "automated spam", rebinds every key, so you need to tell the user that before you execute the commands. OR, ask permission for EACH change you make (preferred)
3) Do not set CVARs. If you do, you must specifically ask permission for those as they are not defaults nor do they have anything to do with automated spam.
4) Do not store the CVAR values, retrieve them when you need them, it is more accurate.
5) If 2 different Admins execute the command before any player makes a decision, the last Admin who used the command will get the responses for both players.
6) Remove the punishments. Or at least the Ban punishment
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 09-24-2012 at 17:59.
YamiKaitou is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 09-24-2012 , 18:23   Re: Config Fixer v1.1 - n0br41ner
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
Suggestions (maybe requirements):
1) Remove the Admin functionality. Require the Client to initiate the change.
2) Fix your permissions menu to be more clear. Your plugin does not just remove "automated spam", rebinds every key, so you need to tell the user that before you execute the commands. OR, ask permission for EACH change you make (preferred)
3) Do not set CVARs. If you do, you must specifically ask permission for those as they are not defaults nor do they have anything to do with automated spam.
4) Do not store the CVAR values, retrieve them when you need them, it is more accurate.
5) If 2 different Admins execute the command before any player makes a decision, the last Admin who used the command will get the responses for both players.
6) Remove the punishments. Or at least the Ban punishment
1) Could do, by i really think that the admin command should stay, because most of the time the players that have the automated spam does not know that there is such a command.
2) Stating all the binds will take so much space, maybe tell the user that all his binds are defaulted?
3) I don't get what you mean, if a player does not have automated spam, the admin should not issue the command on him
4) Sure thing.
5) Will try to fix it.
6) Ban removed.

Update will come out when it is done.
__________________

Last edited by n0br41ner; 09-24-2012 at 18:36.
n0br41ner is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-24-2012 , 18:54   Re: Config Fixer v1.1 - n0br41ner
Reply With Quote #6

1) Maybe it is just me, I personally believe the Admins shouldn't have any control over it at all. There should be a client command that the Admin instructs the user to execute with an "Are you sure" type of menu to make sure that is what the user wants. But, this is just my preference

2) What I meant was to rephrase your menu title. Example below
From
PHP Code:
new menu menu_create("\rAn admin has requested to clear your automatic spam:""HandleMenu" ); 
To
PHP Code:
new menu menu_create("\rAn admin has requested to reset your binds back to default:""HandleMenu" ); 
3) You are setting CVARs on the client that you have no business setting
Code:
rate 9999;
cl_cmdrate 30;
cl_updaterate 30;
con_color ^"255 180 30^";
fps_max 100.0;
gl_flipmatrix 0;

7) You are missing the bind for slot10


Please note that I have not checked your binds for accuracy. Below are the default binds in CS, just in case someone wants to check them
Spoiler
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 09-24-2012 at 20:01. Reason: correcting binds, seems I was slowhacked
YamiKaitou is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 09-24-2012 , 19:06   Re: Config Fixer v1.1 - n0br41ner
Reply With Quote #7

1) Can i keep the command as it is, or should i make the command only display the command to use for the user?

2) Done.

3) Removed.

7) I remember removing it because after testing the plugin on myself, i used to get an error in the console. I'll look into it.

Also i will double check the binds, but i am pretty sure they are all defaulted.
__________________
n0br41ner is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-24-2012 , 19:11   Re: Config Fixer v1.1 - n0br41ner
Reply With Quote #8

I didn't read anything in this thread but I can guarantee you that you aren't "fixing" their config. I vote for trash.
__________________

Last edited by fysiks; 09-24-2012 at 19:12.
fysiks is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 09-24-2012 , 20:00   Re: Config Fixer v1.2 - n0br41ner
Reply With Quote #9

Updated to version 1.2 - please check main post for change log

Quote:
Originally Posted by fysiks
I didn't read anything in this thread
Then start reading
Quote:
Originally Posted by fysiks
but I can guarantee you that you aren't "fixing" their config. I vote for trash.
Please explain...
__________________

Last edited by n0br41ner; 09-24-2012 at 20:00.
n0br41ner is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 09-25-2012 , 03:56   Re: Config Fixer v1.2 - n0br41ner
Reply With Quote #10

Why will you change con color? Servers doesn't change it at all.
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark 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 11:43.


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