Raised This Month: $ Target: $400
 0% 

Help improving map-requester


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-02-2010 , 18:09   Re: Help improving map-requester
Reply With Quote #4

Quote:
Originally Posted by drekes View Post
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.
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode