add in checkLoop()
PHP Code:
/* ... */
//ALL "CAMP_SECS_*" vars must be multiples of "waitTime" (4 / 0.1 & 6 / 0.1 == true => good)
CAMP_RADIUS = level.campradius;
CAMP_SECS_WARN = level.campsecswarn;
CAMP_SECS_PUNISH = level.campsecspunish;
/* ... */
i think this better:
PHP Code:
level.campradius = 170;
if (getcvar("campradius")!= "" && getcvarint("campradius") > 400)
level.campradius = getcvarint("campradius");
level.campsecswarn = 5;
if (getcvar("campsecswarn")!= "" && getcvarint("campsecswarn") > 20)
level.campsecswarn = getcvarint("campsecswarn");
level.campsecspunish = 9;
if (getcvar("campsecspunish")!= "" && getcvarint("campsecspunish") >= level.campsecswarn)
level.campsecspunish = getcvarint("campsecspunish");
but i make this like it, only:
PHP Code:
/* ... */
//ALL "CAMP_SECS_*" vars must be multiples of "waitTime" (4 / 0.1 & 6 / 0.1 == true => good)
CAMP_RADIUS = getcvarint("campradius");
CAMP_SECS_WARN = getcvarint("camsecswarn");
CAMP_SECS_PUNISH = getcvarint("campsecspunish");
/* ... */
and init cvars from .cfg. mb make check on radius > 100 && campsecswarn > 0 && campsecswarn >= campsecspunish