Jump to content
  • 0

Donor Box


Mochan

Question

I want to introduce donor boxes to my server so I thought I would make a script where I scroll wheel it verifys against my UID and click one of the options it executes a script spawning a box on my location with lots of goodies.

 

I have made the script to spawn the box that needs to be executed 

if (isServer) then {


		_vehicle_999999 = objNull;
		
		if (true) then
		{
		  _this = createVehicle ["USBasicAmmunitionBox_EP1", [8000.0,10000.0], [], 0, "CAN_COLLIDE"];
		  _vehicle_999999 = _this;
		  _this setDir 20;

		  clearWeaponCargoGlobal _this;
		  clearMagazineCargoGlobal _this;

		  
		  _this addWeaponCargoGlobal [ItemToolbox",10];
		  _this addWeaponCargoGlobal [ItemCrowbar",10];
		  _this addWeaponCargoGlobal ["ItemChainsaw",2];

		  _this addMagazineCargoGlobal ["30m_plot_kit",1];
		  _this addMagazineCargoGlobal ["cinder_door_kit",15];
		  _this addMagazineCargoGlobal ["cinder_garage_kit",15];
		  _this addMagazineCargoGlobal ["MortarBucket",150];
		  _this addMagazineCargoGlobal ["CinderBlocks",250];
		  _this addMagazineCargoGlobal ["cinder_wall_kit",100];
		  _this addMagazineCargoGlobal ["metal_floor_kit",100];
		  _this addMagazineCargoGlobal ["ItemPole",100];
		  _this addMagazineCargoGlobal ["ItemTankTrap",100];
		  _this addMagazineCargoGlobal ["ItemVault",5];
		  _this addMagazineCargoGlobal ["ItemLockbox",5];
		  _this addMagazineCargoGlobal ["bult_ItemSandbag",15];
		  _this addMagazineCargoGlobal ["ItemWoodWallLg",50];
		  _this addMagazineCargoGlobal ["ItemWoodFloor",50];
		  _this addMagazineCargoGlobal ["ItemWoodLadder",15];
		  _this addMagazineCargoGlobal ["ItemComboLock",10];
		  _this addMagazineCargoGlobal ["ItemJerryCan",3];
		  _this addMagazineCargoGlobal ["ItemMixOil",5];
		  _this addMagazineCargoGlobal ["desert_large_net_kit",3];
		  _this addMagazineCargoGlobal ["ItemBriefcase100oz",5];
		  _this addMagazineCargoGlobal ["Skin_Sniper1_DZ",10];
		  _this addMagazineCargoGlobal ["ItemComboLock",10];
		  _this addMagazineCargoGlobal ["ItemComboLock",10];
		  
		  
		};

};

But I don't know where to start with the scroll wheel. Help!

Link to comment
Share on other sites

21 answers to this question

Recommended Posts

  • 0

You can use Bluephoenix admin tool, it's using a scroll menu and with the one Gregarious edited has a way to spawn in crates with supplies in.

Here is the link, 

It's simple to remove the God mode and other kinda things you don't want your donators to have ;)

Link to comment
Share on other sites

  • 0

I already have infistar antihack, no need for another. 

I was trying to say that you can modify the admin tool into a donator tool so donators can spawn in the donator boxes, I'm sorry if you didn't understand that...

The admin tool I linked you has a Scroll menu that you want, a way to spawn in a box close to a player.

 

But like carl101 said you can use WPD's Action Menu, it's a modified version of Bluephoenix and it has all the features you want for your donators and more,

Link: 

Link to comment
Share on other sites

  • 0

I understand what you are asking for. You want to be able to point at the player and if that player is in your donor list you want to be able to spawn a box to them. In other words you want the game to check their UID to be 100% certain it is not some guy with a similar name and so you don't have to check your donor list.

 

If this is so do you want the menu to initialize in your selfactions or just through an sqf?

Link to comment
Share on other sites

  • 0

put the following somewhere in your Self Functions.

private ["_adminList","_isAdmin"];
 
// list of admins here
_adminList = ["123456"];
 
// validate you are an admin
_isAdmin = (getPlayerUID player in _adminList);
 
 
 
 
// ---------------------------------------HAMBEASTs Admin Options Start------------------------------------
 
    if(_isAdmin) then {
        if (s_player_option < 0) then {
s_player_option = player addaction[("<t color=""#47A3FF"">" + ("Your Menu Description") +"</t>"),"scripts\yourScript.sqf","",5,false,true,"", ""];
      
        };
    } else {
        player removeAction s_player_option;
        s_player_option = -1;
    };
// ---------------------------------------HAMBEASTs Admin Options End------------------------------------
 
Link to comment
Share on other sites

  • 0

Bilco, on 17 Apr 2014 - 08:53 AM, said:snapback.png

Get the updated Infistar Anti-hack. It has donator boxes built into it now.  Will save you a lot of headache. You can adjust them to fit your needs.

 

He wants the tool to work differently, not sure what exactly until he responds to my post.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...