Actually that was originally written and not working. Let me show you the original code.
PHP Code:
new amx_showads
new g_ads
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
amx_showads = register_cvar("amx_showads", "1")
}
public plugin_precache()
{
g_ads = ArrayCreate(128)
}
public plugin_cfg()
{
load_ini("Ad_File.ini", g_ads)
if(get_pcvar_num(amx_showads) == 1 && ArraySize(g_ads) != 0)
{
server_cmd("echo ----Ads ON")
set_task(DELAY_ADS, "ShowAds", 0, "", 0, "b")
}
else
{
server_cmd("echo Ads OFF")
}
Now with this amx_showads is set to 0 in amxx.cfg but while the server is booting as you mentioned already it prints
----Ads ON while it should print
----Ads OFF