Quote:
Originally Posted by drekes
i did the same, but in another way xD
PHP Code:
if(get_pcvar_num(cvar_advert) == 1)
set_task(get_cvar_float("amx_mapreq_advertdelay"), "advert", 0, _, _, "b")
correct me if i'm wrong, but shouldn't it be:
PHP Code:
register_cvar("amx_mapreq_advertdelay", "400.0")
so the cvar is a float?
btw: i forgot to thank you in my previous posts, Thanks
|
1. You don't need to do the "== 1" operation.
2. It shouldn't matter. Test it out.
__________________