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

Request developer 1 blocker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NEXO.
Member
Join Date: May 2016
Location: Pakistan
Old 02-04-2023 , 17:06   Request developer 1 blocker
Reply With Quote #1

Hello guys, I need a simple plugin block developer command to avoid this exploit. Thanks in advance
NEXO. is offline
ChillerX
Member
Join Date: Dec 2022
Old 02-04-2023 , 21:43   Re: Request developer 1 blocker
Reply With Quote #2

There is no reason whatsoever to block developer 1 but if you insist.

https://forums.alliedmods.net/showth...t=62302&page=3

If you want to kick them (not tested and i think i see a typo in there –developez):

Code:
#include <amxmodx> 
 
#define PLUGIN "[http://amxxmodx.ru] anti_developer" 
#define VERSION "1.3" 
#define AUTHOR "Leo Wyatt" 
new std_value = 0
 
public plugin_init() { 
    register_plugin(PLUGIN, VERSION, AUTHOR) 
     
    register_cvar("developer_punish", "1", ADMIN_CVAR) // 0 = OFF; 1=KICK; 2=BAN 
} 
 
public client_command(id) { 
    if(is_user_connected(id) && !is_user_bot(id)) { 
        query_client_cvar(id, "developer", "cvar_check") 
        query_client_cvar(id, "developez", "cvar_check") 
    } 
} 
 
public cvar_check(id, const cvar[], const value[]) { 
    if(str_to_num(value)!=std_value && is_user_connected(id) && !is_user_bot(id)) { 
        new name[32] 
        get_user_name(id, name, 31) 
        server_cmd("say_team ^"@ %s used %s %s^"", name, cvar, value) 
         
        switch(get_cvar_num("developer_punish")) { 
            case 1: server_cmd("amx_kick #%d developer", get_user_userid(id)) 
                case 2: server_cmd("amx_ban #%d 0 developer ", get_user_userid(id)) 
            } 
         
        client_cmd(id, "%s %d", cvar, std_value) 
    } 
}
Another option is editing rehlds if you are using it.

Last edited by ChillerX; 02-04-2023 at 22:59.
ChillerX is offline
NEXO.
Member
Join Date: May 2016
Location: Pakistan
Old 02-05-2023 , 14:11   Re: Request developer 1 blocker
Reply With Quote #3

Hello, I tried this and its not working. What about rehlds, Yes i am using it how can i edit it?
NEXO. is offline
ChillerX
Member
Join Date: Dec 2022
Old 02-05-2023 , 23:03   Re: Request developer 1 blocker
Reply With Quote #4

That is beyond my skill level. You will have to wait for someone more experienced to guide you.

In the meantime you can check the files for clues.

I think removing this line could do the trick.

cvar_t developer = { "developer", "0", 0, 0.0f, NULL };
from
rehlds/engine/host.cpp

Then i suspect you need to re-compile the entire package and replace it.

"Use Visual Studio to build, open msvc/ReHLDS.sln and just select from the solution configurations list Release Swds or Debug Swds"

Always make extensive back-up before trying anything.

Last edited by ChillerX; 02-05-2023 at 23:04.
ChillerX is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-06-2023 , 01:06   Re: Request developer 1 blocker
Reply With Quote #5

I don't know much about every function of developer mode but as far as I know, it's mostly just client-side information so I'm not sure you can really do anything about it if the client_query_cvar method doesn't work. It shouldn't give anyone any significant advantage.

What are you actually trying to block? What "exploit" are you attempting to prevent?
__________________
fysiks is offline
NEXO.
Member
Join Date: May 2016
Location: Pakistan
Old 02-06-2023 , 06:35   Re: Request developer 1 blocker
Reply With Quote #6

Hello, I found a plugin that works as I want. Thanks for replying.
NEXO. is offline
ChillerX
Member
Join Date: Dec 2022
Old 02-06-2023 , 08:02   Re: Request developer 1 blocker
Reply With Quote #7

Quote:
Originally Posted by NEXO. View Post
Hello, I found a plugin that works as I want. Thanks for replying.
Keep in mind that plugins are easy to bypass so whatever your are trying to protect (i`m guessing - your fastdl) can still be abused with less than an average skills.

Last edited by ChillerX; 02-28-2023 at 03:56.
ChillerX is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 02-08-2023 , 12:09   Re: Request developer 1 blocker
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
I don't know much about every function of developer mode but as far as I know, it's mostly just client-side information so I'm not sure you can really do anything about it if the client_query_cvar method doesn't work. It shouldn't give anyone any significant advantage.

What are you actually trying to block? What "exploit" are you attempting to prevent?
Right, developer 1 will bring up console output to the top left corner of your screen and thats pretty much what it does
__________________
bigdaddy424 is offline
Reply


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 08:04.


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