Set an additional server cvar in mapchooser.sma
I am editing mapchooser.sma so that on my server after a "next Map Vote" has completed it not only sets the cvar amx_nextmap but also sets a mod specific cvar "agnextmap". Im not sure how to go about this. I tried a few things but was unsuccessful and too new yet. I think this is the area I should be in though...
Code:
|
Near the bottom of the code:
Code:
Add another set_cvar_string below it, so it will look like this: Code:
|
Yea I tried that but after the vote is over it still doesn't set "agnextmap" to the same as amx_nextmap. Plus I get a warning when compiling.
Code:
//AMXXSC compile.exe |
Loose indentations aren't anything to worry about, it just means your text isn't lined up. It doesn't effect the plugin at all, the compiler just nitpicks at you like that. Perhaps, since it is a mod-specific cvar, the mod is overriding it at some point?
|
Its wierd. I managed to get nextmap.sma to work properly with this mod but can't seem to get mapchooser.sma to. I like AMX Mod X for the ease of kicking and baning so thats the main reason why I use it. I also like the death match mod I am playing. I am hoping to make the 2 work with each other instead of against each other. The mod has its own voting system and nextmap but I don't want to use it I would rather use AMX's.
I got rid of the loose identifier by using { and }. Same results though. It seems to be setting the cvar but to amx's current map not the next one. |
I don't think it is the mod overiding it because the modifications I made in nextmap.sma work. When the map loads it sets agnextmap to amx_nextmap. I just can't seem to get mapchooser.sma to do it.
This is what I have tried so far... Code:
|
Still not working :(
|
**BUMP**
|
Quadruple post, nice.. :roll:
|
Um ok...
I keep replying to this so it doesn't get forgotten like everyone seems to be trying to do. Im stuck and am still trying things on this subject everyday. Occasionally I come back in hopes that someone has another helpful tip in solving my problem here. Im sure its such a simple solution here but I am most likey too blind to see it. All I am asking for if for someone to point out what I am doing wrong. I'm sure its not a problem with the mod. You can set the cvar "agnextmap" manually in the console so Im certain amx can set it after a next map vote passes at the end of the map. Thats all I ask. Too much? |
| All times are GMT -4. The time now is 14:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.