07-30-2011, 22:57
I would like to put a custom dvar in my server.cfg for setting mode to public or private for ready up.
in the server config I have:
in my whitelist.cfg I have:
in zone_source I have:
Now I'm wondering how I can get the dvar into a script? I've tried something like the following:
Is this the way to go about it or is there another way or a better way to do this? Thanks.
in the server config I have:
Code:
set xabolts_mode "public" //public or private
in my whitelist.cfg I have:
Code:
setmoddvar xabolts_mode
in zone_source I have:
Code:
rawfile,whitelist.cfg
Now I'm wondering how I can get the dvar into a script? I've tried something like the following:
Code:
if( getDvar("xabolts_mode") == "private" )
{
gogoreadyetcetc
}
Is this the way to go about it or is there another way or a better way to do this? Thanks.