Advertisement
infiSTAR23

VMexecuter #3

May 14th, 2014
835
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.44 KB | None | 0 0
  1. /*
  2.    by: http://infiSTAR.de || http://DayzAntiHack.com
  3.    ExecVM this file from your !isDedicated in the init.sqf
  4. */
  5. [] spawn {
  6.     waitUntil {!isnull finddisplay 46};
  7.     waitUntil {!isNil 'dayz_animalCheck'};
  8.     fnc_adminVMexecuter =
  9.     {
  10.         //  if !((getPlayerUID player) in (PV_LowLevel_List+PV_NormalLevel_List+PV_SuperLevel_List)) exitWith {};
  11.         infiSTAR_ExecVM =
  12.         [
  13.             ['',true],
  14.             ['infiSTAR.de SQF Loader', [-1], '', -5, [['expression', '']], '1', '0'],
  15.             ['File 1', [2], '', -5, [['expression', '[] execVM ''File1.sqf'';']], '1', '1'],
  16.             ['File 2', [3], '', -5, [['expression', '[] execVM ''File2.sqf'';']], '1', '1'],
  17.             ['File 3', [4], '', -5, [['expression', '[] execVM ''File3.sqf'';']], '1', '1'],
  18.             ['File 4', [5], '', -5, [['expression', '[] execVM ''File4.sqf'';']], '1', '1'],
  19.             ['File 5', [6], '', -5, [['expression', '[] execVM ''File5.sqf'';']], '1', '1'],
  20.             ['File 6', [7], '', -5, [['expression', '[] execVM ''File6.sqf'';']], '1', '1']
  21.         ];
  22.         showCommandingMenu '#USER:infiSTAR_ExecVM';
  23.     };
  24.     fnc_adminStartKeybinds =
  25.     {
  26.         _keyDown = _this select 1;
  27.         if (_keyDown == 61) then
  28.         {
  29.             [] spawn fnc_adminVMexecuter;
  30.         };
  31.     };
  32.     while {1 == 1} do
  33.     {
  34.         if (!isNil 'adminStartKeybinds') then {(findDisplay 46) displayRemoveEventHandler ['KeyDown', adminStartKeybinds];adminStartKeybinds = nil;};
  35.         adminStartKeybinds = (findDisplay 46) displayAddEventHandler ['KeyDown','_this call fnc_adminStartKeybinds'];
  36.         sleep 5;
  37.     };
  38. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement