aeroson

Untitled

Jun 10th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. _roundStartTime = 0;
  2. while {
  3. ({side _x == west} count allUnits == 0) ||
  4. ({side _x == east} count allUnits == 0) ||
  5. _roundStartTime == 0
  6. } do {
  7.  
  8. while {
  9. ({side _x == west} count allUnits == 0) ||
  10. ({side _x == east} count allUnits == 0)
  11. } do {
  12. _msg="Waiting for Players...";
  13. [[_msg,2.5,1.5],"titleTextMsg",true] spawn BIS_fnc_MP;
  14. sleep 0.1;
  15. };
  16.  
  17. _roundStartTime = time + 65;
  18. while {
  19. ({side _x == west} count allUnits > 0) &&
  20. ({side _x == east} count allUnits > 0) &&
  21. time < _roundStartTime
  22. } do {
  23. {
  24. if (_roundStartTime-time>_x && _roundStartTime-time<_x+0.19) then
  25. {
  26. _msg=format ["Round Start: %1 second(s)...", _x];
  27. [[_msg,2.5,1.5],"titleTextMsg",true] spawn BIS_fnc_MP;
  28. };
  29. } forEach [180, 120, 60, 30, 15, 10, 5, 4, 3, 2, 1];
  30. sleep 0.1;
  31. };
  32.  
  33. };
  34. waitUntil {time > _roundStartTime};
Advertisement
Add Comment
Please, Sign In to add comment