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

[CS:GO] changing sv_password


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thoren
Junior Member
Join Date: Jan 2014
Old 01-11-2014 , 04:41   [CS:GO] changing sv_password
Reply With Quote #1

Hi,

I try to do a adminmenu_custom.txt where I could change the sv_password.

I tried this :
"War mode"
{
"cmd" "sm_cvar sv_password xyz"
"execute" "server"
"admin" "sm_cvar"
}

When I run it on my serv, I've got the message "protected cvar" and the password doesn't change.

Do you know what to do ?

Thank you.
thoren is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 01-11-2014 , 05:42   Re: [CS:GO] changing sv_password
Reply With Quote #2

EDIT: You don't need to use sm_cvar if you're running the command on the server. Just use
Code:
sv_password zyx
If you'd like the password changes to show up in the admin log saying who did it, you'll need to execute it client side and give admins the "l" flag.


sm_cvar only works on certain cvars unless the admin has the right flags; for example, sm_cvar does not allow admins to change sv_cheats unless they have the "n" flag. To change the password, I believe "l" is the required flag. For more information, see the flag descriptions here.
__________________

Last edited by recon0; 01-11-2014 at 05:46.
recon0 is offline
thoren
Junior Member
Join Date: Jan 2014
Old 01-11-2014 , 06:11   Re: [CS:GO] changing sv_password
Reply With Quote #3

Thank you,

I tried but it doesn't work neither.

The fact is, that when I'm rcon logged, and use
rcon sv_password "test"
I've got the same message.



I tried also to change the adminmenu_custom, with this :
"Password"
{
"cmd" "sv_password xyz"
"execute" "server"
"admin" "sm_cvar"
}
"Password2"
{
"cmd" "sm_cvar sv_password xyz"
"execute" "server"
"admin" "sm_cvar"
}
thoren is offline
xxwantedxx
BANNED
Join Date: Dec 2013
Location: Georgia
Old 01-11-2014 , 08:33   Re: [CS:GO] changing sv_password
Reply With Quote #4

wich server are u using host or home?
xxwantedxx is offline
thoren
Junior Member
Join Date: Jan 2014
Old 01-11-2014 , 08:43   Re: [CS:GO] changing sv_password
Reply With Quote #5

We are hosted. It's on mtxserv.fr
thoren is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 01-15-2014 , 05:46   Re: [CS:GO] changing sv_password
Reply With Quote #6

Do you want to change sv_password from nothing (empty)? Thus setting a password on a previously public server?
From my experience, this is not possible without a server restart :/

Once sv_password is set to a non null value however, sv_password "password" works like a charm.
h3bus is offline
thoren
Junior Member
Join Date: Jan 2014
Old 01-15-2014 , 05:54   Re: [CS:GO] changing sv_password
Reply With Quote #7

Yes I try to add a pass on a public serv and it doesn't seem to be possible without restart. Thank you
thoren 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 17:39.


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