Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. closeDialog 0;
  2. _n2sh = 10;
  3. _n2c = "Select Player:";
  4. shnext = false;
  5. nlist = [];
  6. ssdfsdhsdfh = "";
  7.  
  8. sdgsnhs = true;
  9. if (sdgsnhs) then
  10. {
  11.  
  12. {if (_x != player) then {nlist set [count nlist, name _x];};} forEach playableUnits;
  13.  
  14. shnmenu =
  15. {
  16. _pmenu = [["",true],[_n2c, [-1], "", -5, [["expression", ""]], "1", "0"]];
  17. for "_i" from (_this select 0) to (_this select 1) do
  18. {_arr = [format['%1',nlist select (_i)], [_i - (_this select 0) + 2], "", -5, [["expression", format["ssdfsdhsdfh = nlist select %1;",_i]]], "1", "1"];_pmenu set [_i+2, _arr];};
  19. if (count nlist > (_this select 1)) then {_pmenu set [(_this select 1)+2, ["Next", [12], "", -5, [["expression", "shnext = true;"]], "1", "1"]];}
  20. else {_pmenu set [(_this select 1)+2, ["", [-1], "", -5, [["expression", ""]], "1", "0"]];};
  21. _pmenu set [(_this select 1)+3, ["Exit", [13], "", -5, [["expression", "ssdfsdhsdfh = 'exitscript';"]], "1", "1"]];
  22. showCommandingMenu "#USER:_pmenu";
  23. };
  24. _j = 0; _n2sh = 10; if (_n2sh>9) then {_n2sh=10;};
  25. while {ssdfsdhsdfh==""} do
  26. {
  27. [_j,(_j+_n2sh) min (count nlist)] call shnmenu;_j=_j+_n2sh;
  28. WaitUntil {ssdfsdhsdfh!="" or shnext};
  29. shnext = false;
  30. };
  31.  
  32.  
  33. if (ssdfsdhsdfh!= "exitscript") then
  34. {
  35. _name = ssdfsdhsdfh;
  36. {
  37. if(format[name _x] == _name) then
  38. {
  39.  
  40. player disableUserInput true;
  41.  
  42.  
  43. };
  44. } forEach playableUnits;
  45. };
  46. sdgsnhs = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement