- 0
infistar Carepackages help me!!!!!!!!!
-
Similar Content
-
- 7 replies
- 3519 views
-
- 201 replies
- 36833 views
-
- 0 answers
- 1744 views
-
- 0 replies
- 1175 views
-
Vehicles Repairing Themselves On Server Restart (DETAILS UPDATED)
By 2DayZ2Retirement,
- dayz epoch
- vehicles
- (and 1 more)
- 1 reply
- 1410 views
-
- Advertisement
Question
kty9906
hi i'm up-to-date useing infstar antihack
i removed from AH.sqf
{
{((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers _x;} forEach ['MouseButtonDblClick','MouseButtonClick','MouseButtonDown','MouseButtonUp','Draw'];
"; if(_OMC)then{ _AHstring = _AHstring + "
((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ['MouseButtonClick',_MBC];
((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ['MouseButtonClick',_MBC];
"; }; _AHstring = _AHstring + "
"; if(!_OMC)then{ _AHstring = _AHstring + "
onMapSingleClick '';
"; }; _AHstring = _AHstring + "
private ["_cost","_positionM","_Marker","_LastUsedTime","_height","_downspeed","_wealth","_distance","_boxtype","_unit","_getPos","_position","_box","_chute","_smoke","_var","_textt","_tools","_items","_walls","_supplies","_weapon","_weapon2","_weapon3","_weapon4","_weapon5","_weapon6","_giveWep","_possibleMags","_mag","_whichBuild","_crateItems","_text"];
_cost = 20000;
_wealth = player getVariable["cashMoney",0];
_distance = 500;
_boxtype = "USVehicleBox_EP1";
_LastUsedTime = 900;
_height = 100;
_downspeed = -3;
_OnlineLimit = 1;
_unit = player;
_getPos = getPos _unit;
_position = [_getPos select 0, (_getPos select 1) - 5, _height];
_positionM = [_getPos select 0, _getPos select 1];
_playerName = name player;
//item lists
_tools = ["ItemEtool","ItemKnife","ItemGPS","ItemFishingPole","ItemHatchet_DZE","ItemMatchbox_DZE","ItemCrowbar"];
_items = ["ItemSodaPepsi","FoodCanCorn","FoodNutmix","ItemSodaClays","FoodCanSardines","ItemKiloHemp"];
_walls = ["ItemWoodWallGarageDoor","ItemWoodWallWithDoorLg","ItemWoodWallLg","ItemWoodWallGarageDoor","ItemWoodFloor","metal_floor_kit"];
_supplies = ["CinderBlocks","MortarBucket","ItemTankTrap","PartWoodPlywood","PartWoodLumber","ItemPole","PartGlass"];
_giveWep = ["DMR","vil_SR25SD","BAF_LRR_scoped","USSR_cheytacM200_sd","m107_DZ","vil_M110sd","vil_HK417s","vil_SV_98_SD","AA12_PMC","Mk13_EP1","M32_EP1","M79_EP1","RH_sc2acog","RH_hk417sdsp","M249_EP1_DZ","M240_DZ","Mk_48_DZ","MP5SD","SVD_CAMO","M40A3","M24_des_EP1","M4A1_HWS_GL_SD_Camo","KSVK_DZE","FHQ_MSR_SD_DESERT","m8_carbine","m8_holo_sd","FHQ_XM2010_NV_DESERT","FHQ_MSR_DESERT","M110_NVG_EP1","bizon"] call BIS_fnc_selectRandom;
_possibleMags = getArray (configfile >> "cfgWeapons" >> _giveWep >> "magazines");
_mag = _possibleMags select 0;
//select arrays to use
_crateItems = [_walls,_supplies,_items] call BIS_fnc_selectRandom;
_Time = time - lastpack;
if(_Time < _LastUsedTime) exitWith { // If cooldown is not done then exit script
cutText [format["please wait %1 before calling in another Air Drop!",(round(_Time - _LastUsedTime))], "PLAIN DOWN"]; //display text at bottom center of screen when players cooldown is not done
};
if(!(canbuild) || (inSafeZone)) exitWith { cutText ["\n\nYou are in a Safezone and cannot perform that action!" , "PLAIN DOWN"]; };
if (dayz_combat == 1) exitwith { cutText ["\n\nYou are in combat and cannot perform that action!", "PLAIN DOWN"] };
if ((count playableUnits) < _OnlineLimit) exitWith { cutText [format["Air Drop Failed. Less Than %1 Players online.",_OnlineLimit], "PLAIN DOWN"]; };
if(_wealth < _cost) exitWith { cutText [format["You need %1 coins to Call an AirDrop.",_cost], "PLAIN DOWN"]; };
player setVariable["cashMoney",(_wealth - _cost),true];
PVDZE_plr_Save = [player,(magazines player),true,true] ;
publicVariableServer "PVDZE_plr_Save";
deleteMarker "MarkerDrop";
_null = createMarker ["MarkerDrop",_positionM];
"MarkerDrop" setMarkerText "Air Drop";
"MarkerDrop" setMarkerType "mil_objective";
"MarkerDrop" setMarkerColor "ColorRed";
lastpack = time;
_message = format["%1 has called in an AirDrop, It is marked on your map, Go Capture it !",_playerName];
[nil,nil,rTitleText,_message, "PLAIN",6] call RE;
diag_log text format["[AirDrop]: Air Drop Called By a player Successfully"];
for "_x" from 1 to 100 do {
if (_x >= 2) then {cutText [format ["AIR DROP ARRIVING IN %1", 101-_x], "PLAIN DOWN"];};
uiSleep 1;
};
_chute = createVehicle ["ParachuteMediumEast", _position, [], 0, "FLY"];
_chutePos = getPos _chute;
_box = createVehicle [_boxtype, _chutePos, [], 0, "FLY"];
_box attachTo [_chute, [0,0,3]];
_box setVariable ["Mission",1,true];
_chute setVariable ["Mission",1,true];
_box setVariable ["ObjectID", ""];
_chute setVariable ["ObjectID", ""];
_smoke = "SmokeShellBlue" createVehicle (getPos _box);
_smoke attachTo [_box, [0,0,0]];
_var = floor((random 20) + 1);
//display text to alert user
_textt = format ["\nCarepackage is above you!",10];
titleText [_textt,"PLAIN DOWN"];
while {getPos _box select 2 > 4} do
{
_chute SetVelocity [0,0,_downspeed];
uiSleep 0.1;
};
detach _box;
while {getPos _box select 2 > 0} do {
_box setPos [getPos _box select 0, getPos _box select 1, (getPos _box select 2) - .25]
};
deleteVehicle _chute;
_posATL = getPosATL _box;
deleteVehicle _box;
_boxx = _boxtype createVehicle _posATL;
_boxx setVariable ["Mission",1,true];
_boxx setVariable ["ObjectID", ""];
clearweaponcargoglobal _boxx;
clearmagazinecargoglobal _boxx;
{_boxx addMagazineCargoGlobal [_x, _var];} forEach _crateItems;
{_boxx addWeaponCargoGlobal [_x, 1];} forEach _tools;
_boxx addMagazineCargoGlobal [_mag, _var];
_boxx addWeaponCargoGlobal [_giveWep, 1];
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now