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

How To Permanently Set Default Value Of Cvar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pocky
Junior Member
Join Date: Mar 2017
Old 07-12-2020 , 11:58   How To Permanently Set Default Value Of Cvar
Reply With Quote #1

How do I set default value for a Cvar?

For Example, in the deagle power plugin, "deagle_power_shake" cvar is set to 1, when I change it to 0, it changes for the time being but when I close and re-open the game,its value automatically sets to 1.

Plz Help... how can I fix this?
Pocky is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 07-12-2020 , 13:34   Re: How To Permanently Set Default Value Of Cvar
Reply With Quote #2

server.cfg or amxx.cfg
Quote:
Originally Posted by ConnorMcLeod View Post
server.cfg is executed only on server startup, unless cvar mapchangecfgfile is set to "server.cfg" (anyway, you can create game.cfg it gonna be automatically executed at map change).
amxx.cfg is executed with some delay after map change, then per maps cfg files are executed, after amxx.cfg
ZaX is offline
Pocky
Junior Member
Join Date: Mar 2017
Old 07-12-2020 , 15:07   Re: How To Permanently Set Default Value Of Cvar
Reply With Quote #3

Quote:
Originally Posted by ZaX View Post
server.cfg or amxx.cfg
Can you please be more.... elaborate? On which values to actually change?
Pocky is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-12-2020 , 15:08   Re: How To Permanently Set Default Value Of Cvar
Reply With Quote #4

Open amxx.cfg and add "deagle_power_shake 0"
__________________

Last edited by OciXCrom; 07-12-2020 at 15:08.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Pocky
Junior Member
Join Date: Mar 2017
Old 07-13-2020 , 13:55   Re: How To Permanently Set Default Value Of Cvar
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Open amxx.cfg and add "deagle_power_shake 0"
Thanks!! It Works ....
Pocky 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 17:22.


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