Advertisement
infiSTAR23

VMexecuter

Apr 3rd, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.03 KB | None | 0 0
  1. fnc_adminVMexecuter =
  2. {
  3.     infiSTAR_ExecVM =
  4.     [
  5.         ['',true],
  6.         ['infiSTAR.de SQF Loader', [-1], '', -5, [['expression', '']], '1', '0'],
  7.         ['File 1', [2], '', -5, [['expression', '[] execVM ''File1.sqf'';']], '1', '1'],
  8.         ['File 2', [3], '', -5, [['expression', '[] execVM ''File2.sqf'';']], '1', '1'],
  9.         ['File 3', [4], '', -5, [['expression', '[] execVM ''File3.sqf'';']], '1', '1'],
  10.         ['File 4', [5], '', -5, [['expression', '[] execVM ''File4.sqf'';']], '1', '1'],
  11.         ['File 5', [6], '', -5, [['expression', '[] execVM ''File5.sqf'';']], '1', '1'],
  12.         ['File 6', [7], '', -5, [['expression', '[] execVM ''File6.sqf'';']], '1', '1']
  13.     ];
  14.     showCommandingMenu '#USER:infiSTAR_ExecVM';
  15. };
  16. fnc_adminStartKeybinds =
  17. {
  18.     _keyDown = _this select 1;
  19.     if (_keyDown == 61) then
  20.     {
  21.         [] spawn fnc_adminVMexecuter;
  22.     };
  23. };
  24. if (!isNil 'adminStartKeybinds') then {(findDisplay 46) displayRemoveEventHandler ['KeyDown', adminStartKeybinds];};
  25. adminStartKeybinds = (findDisplay 46) displayAddEventHandler ['KeyDown','_this call fnc_adminStartKeybinds'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement