View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-15-2012 , 16:42   Re: Reload amx.cfg in every round.
Reply With Quote #8

Quote:
Originally Posted by jonnzus View Post
So this is right?


public reload()
{
server_cmd("exec cstrike\addons\amxmodx\configs\amx.cfg");
}


And when it loads that does server make those commands what are inside of amx.cfg?
Remove "cstrike\" it already assumes you are in the cstrike directory. Also, the default file is actually called "amxx.cfg".

Quote:
Originally Posted by kramesa View Post
Untested:
Clearly. And, it's pointless to use a file for that. If you don't want it hardcoded, you could use a cvar. However, if the OP is able to compile the plugin him/herself then I would recommend hardcoding it.
__________________
fysiks is offline