Admin Script Injector

Hey! You need to use some scripts but don't know how to do it ? I gonna help you buddy :D
You can bind key with your script.
!Read!: U can't be banned with scripts activated from server side!
Sorry for my bad english. Russian.
_________________________________________________________________
1.Download 'admin.sqf' and place it at your MPMission file (where init.sqf)
http://pastebin.com/Z9Tb91UE (Inject scripts with script XD)
2.Edit init.sqf, add string
_admin = [] execVM "admin.sqf";
after
_playerMonitor =[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
Editing admin.sqf
HTML:
if ((getPlayerUID player) in ["ADMIN_ID1","ADMIN_ID2"]) then { \\Here change to your ID
if (!isnil "adminkey") then
{
    (findDisplay 46) displayRemoveEventHandler ["KeyUp", adminkey];
};
adminkey =
{
    switch (_this) do
    {
      case KEY_CODE: //Replace "KEY_CODE" with http://community.bistudio.com/wiki/ListOfKeyCodes
        {
          execVM "YOUR_SCRIPT.sqf"; //U can use path like "my_scripts\script.sqf"
        };
    };
};
 
waituntil {!isnull (finddisplay 46)};
adminkey = (findDisplay 46) displayAddEventHandler ["KeyUp", "_this select 1 call adminkey; false;"];
};
ALL YOUR SCRIPTS MUST BE IN GAME FOLDER!
Example (my 'admin.sqf')
HTML:
if ((getPlayerUID player) in ["14483**"]) then {
if (!isnil "adminkey") then
{
        (findDisplay 46) displayRemoveEventHandler ["KeyUp", adminkey];
};
 
adminkey =
{
        switch (_this) do
        {
                case 64:
                {
                        execVM "ajmenu.sqf"; //F6_Silent
                };
                case 65:
                {
                        execVM "startup.sqf"; //F7_Rustler
                };
        };
};
 
waituntil {!isnull (finddisplay 46)};
adminkey = (findDisplay 46) displayAddEventHandler ["KeyUp", "_this select 1 call adminkey; false;"];
};
 
ajmenu.sqf = Aimjunkies/virtualadvantage's hacker script menu. $5 says this gets you battleye banned even on your own server lmao
 
Back
Top