Comrades in Arms Discussion Board

Full Version: MP-compatible countdown timer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using the script from this post:
http://forums.bistudio.com/showthread.ph...ost1647722

Will it work or not?
According to that thread that one doesn't work on dedi, so what about this? Same thread, from Shuko

Quote:// Usage: nul = 20 execvm "timer.sqf"

private ["_t","_min","_sec","_msec"];

_t = _this * 60;

while {_t > 0} do {
  _min = floor (_t / 60);
  _sec = floor (_t mod 60);

  _min = (if (_min <= 9) then {"0"} else {""}) + str _min;
  _sec = (if (_sec <= 9) then {"0"} else {""}) + str _sec;
 
  hintsilent format["%1:%2",_min,_sec];
 
  _t = _t - 1;
  sleep 1;
};