AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   plugins cvar command keeps resetting ! (https://forums.alliedmods.net/showthread.php?t=338424)

mayersdz 07-04-2022 11:40

plugins cvar command keeps resetting !
 
:cry: every time i change the map , my plugins cvars go back to default , where should i put the commands ?

Sreaper 07-04-2022 13:26

Re: plugins cvar command keeps resetting !
 
Quote:

Originally Posted by mayersdz (Post 2783037)
:cry: every time i change the map , my plugins cvars go back to default , where should i put the commands ?

In server.cfg or if it’s a plugin check cfg/sourcemod/plugin.something.cfg

mayersdz 07-06-2022 13:06

Re: plugins cvar command keeps resetting !
 
Quote:

Originally Posted by Sreaper (Post 2783041)
In server.cfg or if it’s a plugin check cfg/sourcemod/plugin.something.cfg

server.cfg does nothing
as for plugin.cfg there is no such thing as that

here are the commands i, trying to put in server.cfg


sm_cvar sm_flashlight_return 0, i wanted it to be 1 but every map change it goes to default like every plugin command !

please help sos :cry:

Marttt 07-06-2022 13:11

Re: plugins cvar command keeps resetting !
 
if is a plugin specific cvar problem, you should link the plugin as well

May be some bad code practise on that plugin.

Usually, you have to set the cvars on "server.cfg" or "listenserver.cfg" when local.
Or plugin specific files "plugin_name.cfg" (if it has an AutoExec creating in the code).

mayersdz 07-07-2022 09:53

Re: plugins cvar command keeps resetting !
 
Quote:

Originally Posted by Marttt (Post 2783187)
if is a plugin specific cvar problem, you should link the plugin as well

May be some bad code practise on that plugin.

Usually, you have to set the cvars on "server.cfg" or "listenserver.cfg" when local.
Or plugin specific files "plugin_name.cfg" (if it has an AutoExec creating in the code).

where do i find this plugin name or should i create one ? but in where location to put the cfg ?

Marttt 07-07-2022 11:15

Re: plugins cvar command keeps resetting !
 
cfg/server.cfg (dedicated server)
cfg/listenserver.cfg (local)
cfg/sourcemod/pluginname.cfg (may have another name, but plugin name is conventional)

What I mean is that sharing the "plugin"/"thread" link could help other people check for you
if the plugin auto creates the .cfg file and if it is reading the cvar correctly.

mayersdz 07-07-2022 11:56

Re: plugins cvar command keeps resetting !
 
Quote:

Originally Posted by Marttt (Post 2783245)
cfg/server.cfg (dedicated server)
cfg/listenserver.cfg (local)
cfg/sourcemod/pluginname.cfg (may have another name, but plugin name is conventional)

What I mean is that sharing the "plugin"/"thread" link could help other people check for you
if the plugin auto creates the .cfg file and if it is reading the cvar correctly.

OH GODDAM IT I WAS looking in configs folder instead of cfg folder :oops:

i found those plugin cfg files , now im gonna try

mayersdz 07-07-2022 14:01

Re: plugins cvar command keeps resetting !
 
its working now ty !


All times are GMT -4. The time now is 05:48.

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