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)
__________________