Advertisement
Brenner650

XSSpawn baserespawn ExileClient_gui_selectSpawnLocation_show

Feb 14th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. /**
  2. * ExileClient_gui_selectSpawnLocation_show
  3. *
  4. * Exile Mod
  5. * www.exilemod.com
  6. * © 2015 Exile Mod Team
  7. *
  8. * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  9. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  10. */
  11.  
  12. ExileClientSpawnLocationSelectionDone = false;
  13. ExileClientSelectedSpawnLocationMarkerName = "";
  14. [] spawn
  15. {
  16. private["_display","_spawnButton","_spawnButton2","_tipText","_tipTextList","_listBox","_listItemIndex","_numberOfSpawnPoints","_randNum","_randData","_randomSpawnIndex"];
  17. disableSerialization;
  18.  
  19. uiSleep 0.1;
  20. waitUntil{!isNull (findDisplay 46)};
  21.  
  22. createDialog "xstremeGroundorHaloDialog";
  23. _display = uiNamespace getVariable ["xstremeGroundorHaloDialog",displayNull];
  24. _display displayAddEventHandler ["KeyDown", "_this call ExileClient_gui_loadingScreen_event_onKeyDown"];
  25. _spawnButton = _display displayCtrl 1600;
  26. _spawnButton2 = _display displayCtrl 1601;
  27. _spawnButton ctrlEnable false;
  28. _spawnButton2 ctrlEnable false;
  29. _tipText = _display displayCtrl 1204;
  30. _listBox = _display displayCtrl 1500;
  31. lbClear _listBox;
  32. {
  33. if (getMarkerType _x == "ExileSpawnZone") then
  34. {
  35. _listItemIndex = _listBox lbAdd (markerText _x);
  36. _listBox lbSetData [_listItemIndex, _x];
  37. };
  38. }
  39. forEach allMapMarkers;
  40. _numberOfSpawnPoints = {getMarkerType _x == "ExileSpawnZone"} count allMapMarkers;
  41. if (_numberOfSpawnPoints > 0) then
  42. {
  43. _randNum = floor(random _numberOfSpawnPoints);
  44. _randData = lbData [1500,_randNum];
  45. _randomSpawnIndex = _listBox lbAdd "Random";
  46. _listBox lbSetData [_randomSpawnIndex, _randData];
  47. };
  48.  
  49. _tipTextList = selectRandom
  50. [
  51. "Connect to the xstreme gaming discord at discord.xstremegaming.com",
  52. "Server news, comp claims and more join the communnity www.xstremegaming.com",
  53. "This is a game of loss, its a wild world out there, good luck!",
  54. "Enjoy the server... Please consider donating to help keep us alive",
  55. "Any vehicle left inside the black safezone circle will be deleted at restart",
  56. "Press 'M' key for Map in game to view Server Rules and Building Limits",
  57. "Do not leave vehicles on exile base parts, at restart they will likely explode",
  58. "Press the 'U' key when your loaded in to show your FPS on the Status bar"
  59. ];
  60. _tipText ctrlSetStructuredText parseText format["<t size ='1.8 / (getResolution select 5)' valign='middle' align='right'>[ %1 ]</t>",_tipTextList];
  61.  
  62. true
  63. };
  64.  
  65. true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement