I want to be able to modify my plugin with a cvar. So, if the cvar is in 1, the plugin will still run with amx_off. If the cvar is 0, it won't.
I already tried this, but didn't worked
PHP Code:
mix = register_cvar("totalcs_mix","0")
public plugin_cfg() {
if(get_pcvar_num(mix)==1){
if(is_plugin_loaded("Pause Plugins") != -1)
server_cmd("amx_pausecfg add ^"%s^"", PLUGIN)
}
}