Jump to content
Daffy

Toggle Admin/Staff Loadout (Saves previous loadout to load when toggled off)

Recommended Posts

Does it have three "../"? If it does, just remove one so it says "../../script_macros.hpp"

I might have left the three in there by mistake, I use a different directory. I shall update the download if it has three!

Share this post


Link to post
Share on other sites
5 minutes ago, Daffy said:

Does it have three "../"? If it does, just remove one so it says "../../script_macros.hpp"

I might have left the three in there by mistake, I use a different directory. I shall update the download if it has three!

Yeah that let me launch it, however shift + 0 doesnt work and now my y menu wont open.

Share this post


Link to post
Share on other sites
Guest
56 minutes ago, Mamba said:

WEll, I have the same issue.. How did you fix it @MrExtremePulse

Rpt logs please

Share this post


Link to post
Share on other sites
1 hour ago, Mamba said:

Your just making this hard on purpose, What to do in the CfgRemoteExec.hpp ......

He is doing it so you can learn

look at the file and how the syntax works.

 

as I've said multiple times, if you can run NSS, so can other players that can exploit your server

Share this post


Link to post
Share on other sites

tried to do it whit indiehelper but he couldnt figure it out either

I also tryed to bind it to a button in admin menu but obyusly failed

Edited by Mamba

Share this post


Link to post
Share on other sites

In your fn_adminOnOffDuty.sqf you have: 

#include "..\..\..\script_macros.hpp"

at the top of the file which didn't work for me. This worked instead:

#include "..\..\script_macros.hpp"

 

I also added this to my admin menu instead of a key bind. Here's my admin_menu.hpp if anyone wants to do the same. Here

  • Like 1

Share this post


Link to post
Share on other sites

I want to add a gun and mags to the load out, i have manged to get it to spawn with the gun, but no mags, but the biggest problem im having is it wont switch back or remove the gun when going off duty.

any suggestions?

Share this post


Link to post
Share on other sites
6 hours ago, Aussie Joker said:

I want to add a gun and mags to the load out, i have manged to get it to spawn with the gun, but no mags, but the biggest problem im having is it wont switch back or remove the gun when going off duty.

any suggestions?

I would recommend swapping it all to getUnitLoadout and setUnitLoadout. Beside that pastebin your sqf file so we can see what you did.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.