DayZ Admin tools

Status
Not open for further replies.
I think I found a bug, not major but i noticed it when it happened. If you find a skin on the ground and put it on the menu will not come up anymore till you re log. If you get a humanity morph, bandit or hero, the menu disappears till you re log.

Could just be me but this is what I've added to my server if it helps
I'm on chernarus and I have added:
mission.pbo
Auto Refuel
R3F Logistics
Dogs
Heli Lift
Custom Loading Screen
Sleeping at Tents
Custom Weather
Salvaging Parts from Vehicles
And a bunch of other actions contained in fn_selfActions (boiling water ect.)

server.pbo
Custom Crash Site Loot and Timer
Death Messages
Disco Anti Combat Bot
and a remove weapon script for certain weapons.
 
What I believe is causing this menu not coming in issue is when u change skin it transfers the character over to the new one with a new skin causing a switch in character ID, this might be dropping the late-added action menu item assigned to the "player" object which no longer is the same instance. Readding the action menu to the new player instance should fix this
 
Ok just looked at the original player switch model code and it does in fact backs up your current character state(items, blood, humanity, etc) and then creates a new character and deletes the old one. So I guess u could fix it by adding a Eventhandler, add this code to your Activate.sqf file:
Code:
waituntil {!alive player ; !isnull (finddisplay 46)};
if ((getPlayerUID player) in ["######","######"]) then {
sleep 30;
player addaction [("<t color=""#0074E8"">" + ("Tools Menu") +"</t>"),"admintools\Eexcute.sqf","",5,false,true,"",""];
(format["player%1",getPlayerUID player) addPublicVariableEventHandler {player addaction [("<t color=""#0074E8"">" + ("Tools Menu") +"</t>"),"admintools\Eexcute.sqf","",5,false,true,"",""];};
};
I am unable to test this for now, if someone tests this please let me know it worked or not. My theory is that when new character gets created and assigned to "player" variable, the dayz switch model script broadcasts this public variable indicating that it was changed (i hope the player object instance gets changed) therefore triggering the above event handler resulting in addition of the Action Admin Tool menu that was lost during the deletion of the old character.
 
For the weapon scripts would something like this work?
Code:
GearRemove = (vehicle player);
removeAllWeapons GearRemove;
removeAllItems GearRemove;
removebackpack GearRemove;
GearAdd = (vehicle player);
GearAdd addWeapon 'M4A1_HWS_GL';
GearAdd addMagazine '30Rnd_556x45_Stanag';
GearAdd addMagazine '30Rnd_556x45_Stanag';
GearAdd addMagazine '30Rnd_556x45_Stanag';
GearAdd addMagazine '30Rnd_556x45_Stanag';
GearAdd addMagazine 'Skin_Sniper1_DZ';
GearAdd addMagazine 'ItemMorphine';
GearAdd addMagazine 'ItemBloodbag';
GearAdd addMagazine 'ItemPainkiller';
GearAdd addMagazine 'ItemEpinephrine';
GearAdd addMagazine 'ItemSodaPepsi';
GearAdd addMagazine 'FoodSteakCooked';
GearAdd addWeapon 'M9SD';
GearAdd addMagazine '15Rnd_9x19_M9SD';
GearAdd addMagazine '15Rnd_9x19_M9SD';
GearAdd addMagazine '15Rnd_9x19_M9SD';
GearAdd addMagazine '15Rnd_9x19_M9SD';
GearAdd addMagazine 'ItemBandage';
GearAdd addMagazine 'ItemBandage';
GearAdd addMagazine '1Rnd_HE_M203';
GearAdd addMagazine 'FlareGreen_M203';
GearAdd addWeapon 'ItemMap';
GearAdd addWeapon 'ItemWatch';
GearAdd addWeapon 'ItemHatchet';
GearAdd addWeapon 'ItemKnife';
GearAdd addWeapon 'Itemmatchbox';
GearAdd addWeapon 'Itemetool';
GearAdd addWeapon 'Itemtoolbox';
GearAdd addBackpack 'DZ_ALICE_Pack_EP1';
(Unitbackpack GearAdd) addMagazineCargo ['ItemBloodbag', 4];
(Unitbackpack GearAdd) addMagazineCargo ['ItemEpinephrine', 4];
(Unitbackpack GearAdd) addMagazineCargo ['ItemSodaPepsi', 4];
(Unitbackpack GearAdd) addMagazineCargo ['ItemBandage', 4];
(Unitbackpack GearAdd) addMagazineCargo ['FoodSteakCooked', 2];
(Unitbackpack GearAdd) addMagazineCargo ['ItemMorphine', 2];

Would this fix weapon stacking?
 
Hi guys please can someone help me? im so lost when i try to fallow this tutorial, if i post my mission.pbo and server.pbo can any help me please? i realy need help and this mod is so fucking amazing :) i can pay for help please !
 
For the weapon scripts would something like this work?
Code:
GearRemove = (vehicle player);
removeAllWeapons GearRemove;
removeAllItems GearRemove;
removebackpack GearRemove;
GearAdd = (vehicle player);
GearAdd addWeapon 'M4A1_HWS_GL';
GearAdd addMagazine '30Rnd_556x45_Stanag';
GearAdd addMagazine '30Rnd_556x45_Stanag';
GearAdd addMagazine '30Rnd_556x45_Stanag';
GearAdd addMagazine '30Rnd_556x45_Stanag';
GearAdd addMagazine 'Skin_Sniper1_DZ';
GearAdd addMagazine 'ItemMorphine';
GearAdd addMagazine 'ItemBloodbag';
GearAdd addMagazine 'ItemPainkiller';
GearAdd addMagazine 'ItemEpinephrine';
GearAdd addMagazine 'ItemSodaPepsi';
GearAdd addMagazine 'FoodSteakCooked';
GearAdd addWeapon 'M9SD';
GearAdd addMagazine '15Rnd_9x19_M9SD';
GearAdd addMagazine '15Rnd_9x19_M9SD';
GearAdd addMagazine '15Rnd_9x19_M9SD';
GearAdd addMagazine '15Rnd_9x19_M9SD';
GearAdd addMagazine 'ItemBandage';
GearAdd addMagazine 'ItemBandage';
GearAdd addMagazine '1Rnd_HE_M203';
GearAdd addMagazine 'FlareGreen_M203';
GearAdd addWeapon 'ItemMap';
GearAdd addWeapon 'ItemWatch';
GearAdd addWeapon 'ItemHatchet';
GearAdd addWeapon 'ItemKnife';
GearAdd addWeapon 'Itemmatchbox';
GearAdd addWeapon 'Itemetool';
GearAdd addWeapon 'Itemtoolbox';
GearAdd addBackpack 'DZ_ALICE_Pack_EP1';
(Unitbackpack GearAdd) addMagazineCargo ['ItemBloodbag', 4];
(Unitbackpack GearAdd) addMagazineCargo ['ItemEpinephrine', 4];
(Unitbackpack GearAdd) addMagazineCargo ['ItemSodaPepsi', 4];
(Unitbackpack GearAdd) addMagazineCargo ['ItemBandage', 4];
(Unitbackpack GearAdd) addMagazineCargo ['FoodSteakCooked', 2];
(Unitbackpack GearAdd) addMagazineCargo ['ItemMorphine', 2];

Would this fix weapon stacking?
that should work
 
For anyone who wants to know where I have went, I have been secretly coding and fixing some issues with the coding. Be prepared for an update tomorrow or friday.
 
If you have suggestions and bugs please post it now. For a bug please use this format...
Code:
Map: (Chernarus, Taviana, etc)
DayZ Server Version:
Mods Added: (rMod, self bloodbags, etc)
What you did to make the bug happen:
Are you the one experiencing this bug or other players as well or just admins?:
Is the mods installed correctly?:
What is the issue?:
 
oh hi is not a bug or something i just cant fallow the steps :/ so if i send you my mission.pbo and server.pbo can u add this scrip for me please? i can pay if u need :=
 
When I get close to any vehicle and look at it it will auto repair the vehicle when Look N Repair is disabled... I am using admin tools Chernarus with debug. DayZ 1.7.6.1/103419, refuel script.

Everything else with the admins tools works perfectly.
 
Pls help! I have issue, when i join my server second and subsequent times, before restart, and try to watch for players, my spectate list is empty or say something like "No vehicles" and esp\tele does not work and after 2-5 minutes appear second tools menu and both does not wont to open. This start after i update Admin tools and i dont modify any scripts except adding admins UID. THX.
 
Beta Testing will start on Thursday for the modified code. Keep it coming with the Bug Reports and suggestions. Also USE THE FORMAT I supplied above.
 
Status
Not open for further replies.
Back
Top