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

sv_password changed to "***PROTECTED***"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
El Abuelo Loco
Senior Member
Join Date: Jun 2020
Old 06-28-2020 , 21:17   sv_password changed to "***PROTECTED***"
Reply With Quote #1

hello I have a problem change the server password and then remove the password, but now when restarting the server or changing the map the password is automatically set. How can I get that out?
El Abuelo Loco is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-28-2020 , 21:40   Re: sv_password changed to "***PROTECTED***"
Reply With Quote #2

sv_password is usually set in server.cfg. However, it can be in another file as well or it can be set by a plugin that you are running.
__________________
fysiks is offline
Diversity
AlliedModders Donor
Join Date: Jan 2018
Location: Constanta, Romania
Old 07-02-2020 , 10:21   Re: sv_password changed to "***PROTECTED***"
Reply With Quote #3

PHP Code:
#include <amxmodx>

public plugin_init() {
    
set_task(1.5"removepass")
}

public 
removepass() {
    
server_cmd("amx_rcon sv_password ^"^"")

Diversity is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-02-2020 , 23:15   Re: sv_password changed to "***PROTECTED***"
Reply With Quote #4

Quote:
Originally Posted by Diversity View Post
PHP Code:
#include <amxmodx>

public plugin_init() {
    
set_task(1.5"removepass")
}

public 
removepass() {
    
server_cmd("amx_rcon sv_password ^"^"")

Not a solution, just a really bad workaround.
__________________
fysiks is offline
El Abuelo Loco
Senior Member
Join Date: Jun 2020
Old 07-03-2020 , 19:00   Re: sv_password changed to "***PROTECTED***"
Reply With Quote #5

so? How can I get the password?
El Abuelo Loco is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 07-03-2020 , 19:43   Re: sv_password changed to "***PROTECTED***"
Reply With Quote #6

You can set cvars via the server.cfg which will be executed on server start.
If you manually want to set cvars like sv_password via the server or client console and have the change re-applied after a server restart you will need a plugin.

If you have the cvar sv_password only set in your server.cfg, the cvar should be only overriden on server start not on map change because, as far as I know, hlds doesn't automatically executed the server.cfg after changing map.

Last edited by TomL.; 07-03-2020 at 19:50.
TomL. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-04-2020 , 00:12   Re: sv_password changed to "***PROTECTED***"
Reply With Quote #7

Quote:
Originally Posted by TomL. View Post
hlds doesn't automatically executed the server.cfg after changing map.
That's mostly true. However, the file configured with the mapchangecfgfile cvar will be executed at the beginning of every map and this is most often set to server.cfg.

@El Abuelo Loco, find where it is being set in your config files. You might also check amxx.cfg and any other cfg files in the entirety of the mod directory. If it's not in one of those then you probably have a rogue plugin that is maliciously changing/setting sv_password.
__________________
fysiks 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 06:22.


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