Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AT.sqf snippet
- I removed our UID's from adminadd for obvious reasons
- admin_fillSpecificMenu =
- {
- inSub = false;
- _ctrl = 2 call getControl;
- lbclear _ctrl;
- _ctrl ctrlSetFont "TahomaB";
- adminadd = ["111111111111","2222222222222"];
- call admin_fillsubsss;
- adminadd = adminadd + [" Teleport Player To Me",admint2me,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Teleport To Player",admintele,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" FreeRoam Cam (RightClick to exit)",admin_frcam,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + ["============================================================","","0","1","0","0",[]];
- adminadd = adminadd + [" Ban",adminBanPerm,"0","0","0","1",[0.9,0,0,1]];
- adminadd = adminadd + [" TempBan",adminbanTemp,"0","0","0","1",[0.9,0,0,1]];
- adminadd = adminadd + ["Targeted Friendly","","0","1","0","0",[]];
- adminadd = adminadd + [" Heal",adminheal,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Repair Vehicle",adminrepair,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Flip Near Vehicle",admin_flipvehicle,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Change Humanity",changeHumanity,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Give +2500 Humanity",adminHumanityPlus,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Give -2500 Humanity",adminHumanityMinus,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Change Coins",changeCoins,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Give +25,000 Coins",adminCoinsPlus,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Give -25,000 Coins",adminCoinsMinus,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Give Ammo",admin_give_ammo,"0","0","0","1",[0,0.8,1,1]];
- adminadd = adminadd + [" Clone",adminCloneTarget,"0","0","0","1",[0,0.8,1,1]];
- adminHumanityMinus =
- {
- {
- if(name _x == _this select 0)then
- {
- _humanity = _x getVariable['humanity',0];
- _x setVariable['humanity',_humanity-2500,true];
- hint format['Gave %1 -2500 Humanity!',_this select 0];
- _sl = format['%1 minus 2500 Humanity to %2',name player,_this select 0];
- PVAH_WriteLogReq = [player,toArray _sl];
- publicVariableServer 'PVAH_WriteLogReq';
- };
- } forEach playableUnits;
- };
- changeCoins = {
- disableSerialization;
- _plr = objNull;
- {if (name _x == _this select 0) exitWith {_plr = _x;};} forEach playableUnits;
- if (isNull _plr) exitWith {systemchat 'Select a Player!';};
- if (isNull findDisplay 24) exitWith {systemchat format ['open the chat, type the amount of %1 you want to add (can be negative) and doubleClick again!',CurrencyName];};
- _chat = (findDisplay 24) displayCtrl 101;
- _txt = ctrlText _chat;
- _num = 0;
- if (_txt != '') then {
- _num = parseNumber _txt;
- if (typeName _num != 'SCALAR') then {systemchat 'INSERT A NUMBER!';};
- (findDisplay 24) closeDisplay 0;
- };
- _coins = _plr getVariable[Z_moneyVariable,0];
- _plr setVariable[Z_moneyVariable,_coins+_num,true];
- hint format['Gave %1 %2 %3!',_this select 0,_num,CurrencyName];
- _sl = format['%1 %2 %4 to %3',name player,_num,_this select 0,CurrencyName];
- PVAH_WriteLogReq = [player,toArray _sl];
- publicVariableServer 'PVAH_WriteLogReq';
- };
- adminCoinsPlus = {
- {
- if (name _x == _this select 0) then {
- _coins = _x getVariable[Z_moneyVariable,0];
- _x setVariable[Z_moneyVariable,_coins + 25000,true];
- hint format['Gave %1 +25,000 %2!',_this select 0,CurrencyName];
- _sl = format['%1 +25,000 %3 to %2',name player,_this select 0,CurrencyName];
- PVAH_WriteLogReq = [player,toArray _sl];
- publicVariableServer 'PVAH_WriteLogReq';
- };
- } forEach playableUnits;
- };
- adminCoinsMinus = {
- {
- if (name _x == _this select 0) then {
- _coins = _x getVariable[Z_moneyVariable,0];
- _x setVariable[Z_moneyVariable,_coins - 25000,true];
- hint format['Gave %1 -25,000 %2!',_this select 0,CurrencyName];
- _sl = format['%1 -25,000 %3 to %2',name player,_this select 0,CurrencyName];
- PVAH_WriteLogReq = [player,toArray _sl];
- publicVariableServer 'PVAH_WriteLogReq';
- };
- } forEach playableUnits;
- };
- adminCloneTarget =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement