Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
My guess is a typo in the files that do not work.Got to get it working for 50% now! haha
somehow the display server rules and the credits dont work. while tips and server info does work
any idea?
Greetings.
ThanksVery nice! problem I am having is that I have a lot of text, and it is being cut off. Can we change the size of the frame that the text is in, or add a scrolling feature?
I am sure either your other mods are conflicting or you did not implement correctly.Thanks for the great script.
I've tried it out today but only have the Server Menu option pop up and nothing else can be operated. If I click on the SM option, nothing else happens. I already had a custom selfActions file and above the Flare section I have a chunk of code to operate global sirens & lights on certain cars. Could this be an issue? I've tried placing your code both above and below the sirens code.
scriptName "Functions\misc\fn_selfActions.sqf";
/***********************************************************
ADD ACTIONS FOR SELF
- Function
- [] call fnc_usec_selfActions;
************************************************************/
private ["_isWreckBuilding","_temp_keys","_magazinesPlayer","_isPZombie","_vehicle","_inVehicle","_hasFuelE","_hasRawMeat","_hasKnife","_hasToolbox","_onLadder","_nearLight","_canPickLight","_canDo","_text","_isHarvested","_isVehicle","_isVehicletype","_isMan","_traderType","_ownerID","_isAnimal","_isDog","_isZombie","_isDestructable","_isTent","_isFuel","_isAlive","_Unlock","_lock","_buy","_dogHandle","_lieDown","_warn","_hastinitem","_allowedDistance","_menu","_menu1","_humanity_logic","_low_high","_cancel","_metals_trader","_traderMenu","_isWreck","_isRemovable","_isDisallowRepair","_rawmeat","_humanity","_speed","_dog","_hasbottleitem","_isAir","_isShip","_playersNear","_findNearestGens","_findNearestGen","_IsNearRunningGen","_cursorTarget","_isnewstorage","_itemsPlayer","_ownerKeyId","_typeOfCursorTarget","_hasKey","_oldOwner","_combi","_key_colors","_player_deleteBuild","_player_flipveh","_player_lockUnlock_crtl","_player_butcher","_player_studybody","_player_cook","_player_boil","_hasFuelBarrelE","_hasHotwireKit","_player_SurrenderedGear","_isSurrendered","_isModular","_ownerKeyName","_temp_keys_names","_hasAttached","_allowTow","_liftHeli","_found","_posL","_posC","_height","_liftHelis","_attached"];
if (DZE_ActionInProgress) exitWith {}; // Do not allow if any script is running.
_vehicle = vehicle player;
_isPZombie = player isKindOf "PZombie_VB";
_inVehicle = (_vehicle != player);
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
// ---------------------------------------Krixes Self Bloodbag Start------------------------------------
_mags = magazines player;
// Krixes Self Bloodbag
if ("ItemBloodbag" in _mags) then {
hasBagItem = true;
} else { hasBagItem = false;};
if((speed player <= 1) && hasBagItem && _canDo) then {
if (s_player_selfBloodbag < 0) then {
s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self BloodBag") +"</t>"),"Scripts\Self BloodBag\player_selfbloodbag.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_selfBloodbag;
s_player_selfBloodbag = -1;
};
// ---------------------------------------Krixes Self Bloodbag End------------------------------------
// ---------------------------------------- Deploy Bike Start -----------------------------------------
_weapons = [currentWeapon player] + (weapons player) + (magazines player);
_isBike = typeOf cursorTarget in ["Old_bike_TK_INS_EP1","Old_bike_TK_CIV_EP1"];
if ("ItemToolbox" in _weapons) then {
hasBikeItem = true;
} else { hasBikeItem = false;};
if((speed player <= 1) && hasBikeItem && _canDo) then {
if (s_player_deploybike < 0) then {
s_player_deploybike = player addaction[("<t color=""#007ab7"">" + ("Deploy Bike") +"</t>"),"Scripts\Deploy Bikes\deploy.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_deploybike;
s_player_deploybike = -1;
};
if((_isBike) and _canDo) then {
if (s_player_deploybike2 < 0) then {
s_player_deploybike2 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack Bike") +"</t>"),"Scripts\Deploy Bikes\pack.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_deploybike2;
s_player_deploybike2 = -1;
};
// ---------------------------------------- Deploy Bike End -------------------------------------------
// ---------------------------------------- Crafting Items Start --------------------------------------
_isCraft = cursorTarget isKindOf "WorkBench_DZ";
_insight = (count ((position player) nearObjects ["WorkBench_DZ", 5]));
_isnear = _insight > 0;
if ((speed player <= 1) && _isCraft && _isnear && _canDo) then {
if (s_player_craftBullet < 0) then {
s_player_craftBullet = player addAction ["Crafting Menu","Scripts\items\excute.sqf",cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_player_craftBullet;
s_player_craftBullet = -1;
};
// ---------------------------------------- Crafting Items End ----------------------------------------
// ------------------------------------- Server Menu Script ------------------------------------------
// s_player_servermenu,s_player_servermenu1,s_player_servermenu2,s_player_servermenu3,s_player_servermenu4,s_player_servermenuCancel,
// IT07's Server Menu script
if((speed player <= 1) && _canDo) then {
if (s_player_servermenu < 0) then {
s_player_servermenu = player addAction [("<t color=""#FFFFFF"">" + ("Server Menu") +"</t>"),"Scripts\server_menu\server_menu.sqf","",-1,false,false,"", ""];
};
} else {
player removeAction s_player_servermenu;
s_player_servermenu = -1;
player removeAction s_player_servermenu1;
player removeAction s_player_servermenu2;
player removeAction s_player_servermenu3;
player removeAction s_player_servermenu4;
player removeAction s_player_servermenuCancel;
};
// ---------------------- Server Menu Script End ----------------------------------------------------
_nearLight = nearestObject [player,"LitObject"];
_canPickLight = false;
if (!isNull _nearLight) then {
if (_nearLight distance player < 4) then {
_canPickLight = isNull (_nearLight getVariable ["owner",objNull]);
};
};
Agreed. If you are going to edit your server files, get a folder to keep your server and mission pbos then copy the dayz_code.pbo from your @dayz folder (or whatever mod you are using). Unpack it and keep it there just to copy files into your mission folder and to use as a reference when you fn_selfactions.sqf doesn't work anymore.You should always pull it out of the client files![]()