Advertisement
TheGamingChief

Untitled

Nov 24th, 2016
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. _a1 = 0; _f1 = 0;
  2.  
  3. while {true} do
  4.  
  5. {
  6.  
  7. for [{_i=0}, {_i < (count LottoFlags)}, {_i=_i+1}] do
  8.  
  9. {
  10.  
  11. _flag = ((LottoFlags select _i) select 0);
  12. _arr = ((LottoFlags select _i) select 1);
  13. if ((player distance _flag <= 5) and (_a1 == 0)) then
  14.  
  15. {
  16.  
  17. action_lotto = player addAction [format [localize "STRS_lotto_action"], "lottodialog.sqf", _arr];
  18. _a1 = 1;
  19. _f1 = _i;
  20.  
  21. };
  22.  
  23. if ((player distance _flag > 5) and (_i == _f1) and (_a1 == 1)) then
  24.  
  25. {
  26.  
  27. player removeAction action_lotto;
  28. _a1 = 0;
  29.  
  30. };
  31.  
  32. };
  33.  
  34. sleep 3;
  35.  
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement