Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. [] spawn {
  2. waitUntil { sleep 3; a3a_var_started };
  3. _missionEndTime = 3*60;
  4. _srv_gameStart = diag_tickTime;
  5. while {isNil "srv_triggerFinished"} do {
  6. if (((diag_tickTime - _srv_gameStart) > _missionEndTime)) then {
  7. srv_triggerFinished = true;
  8. if (triggeractivated tg1 && triggeractivated tg4 ) then {
  9. ["Победа атаки!"] call a3a_fnc_endMission;
  10. };
  11. if (triggeractivated tg4 && triggeractivated tg7 ) then {
  12. ["Победа атаки!"] call a3a_fnc_endMission;
  13. };
  14. if (triggeractivated tg1 && triggeractivated tg7 ) then {
  15. ["Победа атаки!"] call a3a_fnc_endMission;
  16. };
  17. if (triggeractivated tg4 && triggeractivated tg7 && triggeractivated tg1) then {
  18. ["Победа атаки!"] call a3a_fnc_endMission;
  19. };
  20. else {
  21. srv_triggerFinished = true;
  22. ["Победа обороны!"] call a3a_fnc_endMission;
  23. };
  24. };
  25. sleep 3;
  26. };
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement