Regarding this:
Code:
if (get_pcvar_num(pcvars[advertise]))
{
thinkobj = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
if (!pev_valid(thinkobj))
return;
set_pev(thinkobj, pev_classname, "advertisement_loop");
set_pev(thinkobj, pev_nextthink, get_gametime() + get_pcvar_float(pcvars[advertise]));
register_forward(FM_Think, "fourmin_think");
}
you may use a set_task with flag b for advertising since creating an entity for this small function deosnt make's any sense
__________________