Raised This Month: $ Target: $400
 0% 

how would u combining a cvar into a task


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Crazywelder1
Member
Join Date: Mar 2004
Location: CA
Old 02-27-2005 , 18:35   how would u combining a cvar into a task
Reply With Quote #1

Example:
of what i want combined
so that when u change the cvar(mp_afktime) to something else that it changes the time when the task is done


Code:
register_cvar("mp_afktime", "90", FCVAR_SERVER) set_task(90.0,"isplayer",_,_,_,"b")

would u have to make a float or define??

like so
Code:
#define AFKTASK 5 register_cvar("mp_afktime", "90", FCVAR_SERVER) set_task(float(AFKTASK),"isplayer",_,_,_,"b")

then put down ways
new afktime get_cvar_num("mp_afktime")
AFKTASK += afktime

but that wouldn't work becuase it would be too late so i know that is wrong do u guys know what i should do?? (plz tell me if u dont understand what i mean ill explain it with more detail)
__________________
AKA = oM`|Garrett
oM CLAN
Soon to have a server in Soon
Crazywelder1 is offline
Send a message via MSN to Crazywelder1
 



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 14:01.


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