Coder Social home page Coder Social logo

dayzsa_vip_loadouts's Introduction

โœจ DayZSA Custom VIP and Admin Loadouts using init.c

In case you're thinking of using this script to monetize your server, read this first.

Pro Tip: Fork this repository so you can edit and track your own changes (top right Fork icon)

Advanced users can simply use the merge files provided.

Everyone else please follow these instructions:

  1. Rename your existing missions init.c to backup_init.c
  2. Download this repository and unzip it to a temporary folder, or your desktop.
  3. Copy the init.c from the appropriate <Mission.Folder> to your <Mission.Folder> (same location as your old init.c).
  4. Edit the new init.c file and add your VIP / Admin IDs to the appropriate list. They are clearly marked with comments.
	// Example with Steam64 ID: 	adminMembers.Insert( "76561198040948171" );
		
	// ADMIN MEMBERS: Can be Steam64 ID or Bohemia UID
	adminMembers.Insert( "ReplaceWithUniqueID" ); // Admins Name
        adminMembers.Insert( "ReplaceWithUniqueID" ); // Admins Name
		
	// Silver VIP MEMBERS: Can be Steam64 ID or Bohemia UID
	vipMembersSilver.Insert( "ReplaceWithUniqueID" ); // Players Name
        vipMembersSilver.Insert( "ReplaceWithUniqueID" ); // Players Name

Careful to add your ID's to the correct lists.

You can find your player ID by looking through your console and server logs for entries like this:

12:20:20 Player RandomGuy connected (id=Iju6RjrohthfN7ITmRaf8eerbS4hjSfyzGs1vhHvm8g=)

You want to cut and paste everything after id= and before )

like this: Iju6RjrohthfN7ITmRaf8eerbS4hjSfyzGs1vhHvm8g=

Get your Steam64 ID from this website: https://steamidfinder.com/

  1. Now you can edit the loadouts.
	EntityAI adminLoadOut(PlayerBase player) 
	{
		ref TStringArray hatArray = {"BallisticHelmet_Black"};
		ref TStringArray topArray = {"M65Jacket_Black","M65Jacket_Green"};
		ref TStringArray pantsArray = {"CargoPants_Black"};	
		ref TStringArray vestArray  = {""};

Each Array can be either empty, contain a single item or contain multiple items. If an array contains multiple items then one of those items will be selected at random. You can list multiple items like this "item1","item2","item3","etc". There is no comma or full stop after the last item in an Array. If you don't want any items listed in an Array just add "" (see above for examples).

Lines like this player.GetInventory().CreateInInventory(hatArray.GetRandomElement()); don't need to be edited. But you can however replace hatArray.GetRandomElement() with "BallisticHelmet_Blue" for example, which would override any hat array from the previous code example above. You can see an example in the init.c file with the Admin loadout, where I've given the admin a LockPick. Remember these are mostly just examples, you can either keep them, edit them or remove them.

NOTE: Do not delete any lines, just delete the "item_classname" and leave the quotes empty like this "". You can do this for the ammo, weapon, rags, etc.. too! Always backup your files before editing

DISCLAIMER: Use these configs at your own risk. I'm under no obligations to fix your configs or to teach you how to code. I've done my best to answer the most frequently asked questions Here on my FAQ Wiki page.

Donations are welcome via PayPal (Thank you)

๐Ÿค Credits

LieutenantMaster, Expansion developer for his help with improving the script.
Blain, Playbox.Survival server for helping me thoroughly test the script.
Chopper, Better Loadouts for the sample loadouts.

dayzsa_vip_loadouts's People

Contributors

haywardgg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.