Quote:
Originally Posted by drekes
But should'nt i remove the task if cvar_advert == 0, to avoid it been called all the time?
|
I don't think I would because you can't turn it back on. I would make disabling the advert completely by setting the frequency to 0:
PHP Code:
if( get_cvar_num("amx_mapreq_avertdelay") )
set_task(get_cvar_float("amx_mapreq_advertdelay"), "advert", 0)
(Not tested as is)
Actually, if it were me, I would just hard code it. Especially if it was just for my server.
__________________