Hello! I've found this function:
Code:
public pfn_spawn(entid)
{
if(!is_valid_ent(entid)) return PLUGIN_CONTINUE
new class[51]
entity_get_string(entid,EV_SZ_classname,class,50)
if(equali(class,"hostage_entity"))
{
remove_entity(entid)
return PLUGIN_HANDLED
}
if(equali(class,"func_hostage_rescue"))
{
remove_entity(entid)
return PLUGIN_HANDLED
}
if(equal(class,"func_bomb_target"))
{
remove_entity(entid)
return PLUGIN_HANDLED
}
if(equal(class,"info_bomb_target"))
{
remove_entity(entid)
return PLUGIN_HANDLED
}
if(equal(class,"func_escapezone"))
{
remove_entity(entid)
return PLUGIN_HANDLED
}
if(equal(class,"func_vip_safteyzone"))
{
remove_entity(entid)
return PLUGIN_HANDLED
}
if(equal(class,"func_vip_start"))
{
remove_entity(entid)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
And I want to use it for the CTF mod on my server. The problem is that I've made a vote system to toogle on/off the ctf mod, so I can't keep it completly on or completly off. I want to know if there is a way to toggle this function on/off ?