cvars stopping/starting

Anything not related to war3 mods

Moderator: Forum Moderator

Post Reply
User avatar
GUNN3R17
Footman
Posts: 149
Joined: Wed Jul 06, 2005 5:24 pm
Location: Brea, CA
Contact:

cvars stopping/starting

Post by GUNN3R17 » Fri Sep 02, 2005 4:57 pm

this is sort of a continuation of my 2 questions i posted awhile ago

i have in addons\amxmodx\configs\maps a cfg for ka lego land

it reads
"amx_cvar 0"
"amx_cvar2 1"

after the map changes it stays that way....how can i get it to automaticly change back to "amx_cvar 1" "amx_cvar2 0" with out having to write a cfg for every single map

User avatar
Lazarus Long
Lead PITA SOB
Posts: 618
Joined: Tue Jul 05, 2005 9:24 pm

Post by Lazarus Long » Fri Sep 02, 2005 7:09 pm

Add them the way you want for all other maps to a config file that is called before the map specific config file, for instance server.cfg.
Lazarus

User avatar
GUNN3R17
Footman
Posts: 149
Joined: Wed Jul 06, 2005 5:24 pm
Location: Brea, CA
Contact:

Post by GUNN3R17 » Sat Sep 03, 2005 12:25 am

didnt work...still had same settings after going on any map that i made a custom congig for.

i also tied putting "mp_startmoney 1000" in the server.cfg and it did not effect it

the only way i was able to change it was to use the amxmodmenu and change it to the preset 3600 i think it is...do any amxx plugins override server cfg?

User avatar
Lazarus Long
Lead PITA SOB
Posts: 618
Joined: Tue Jul 05, 2005 9:24 pm

Post by Lazarus Long » Sat Sep 03, 2005 7:04 am

GUNN3R17:

It should work. Maybe your server.cfg isn't being read at each map start.

Check the mapchangecfgfile directive and set it to a file where you want commands for all maps to be read from. It normaly should be set to server.cfg, but you can set it to any .cfg you would like. Then use the "addons/amxmodx/configs/maps/<map name>.cfg" file to override the defaults, since it's read after the file set in mapchangecfgfile.

Regards,
Lazarus

User avatar
GUNN3R17
Footman
Posts: 149
Joined: Wed Jul 06, 2005 5:24 pm
Location: Brea, CA
Contact:

Post by GUNN3R17 » Tue Sep 06, 2005 12:44 am

ok....mapchangecfgfile is set propperly now...its not by default(for me atleast)

one more question...my server was set to be a secure server but after a day or so it became un-secure

is there a command i can put in the server.cfg to make sure its secure always?

what are the diffirent ways of making a server secure?

Post Reply