Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
John Mccalum

script equipment

Recommended Posts

Hi all I am looking for a command to allow the player to appear with a complete equipment of the style all the clothes in black with an M4 in hand and ammunition in the pockets.
thank you in advance

Share this post


Link to post
Share on other sites

here you go just adjust what you want players to spawn with  just paste this into your init and make sure its where it starts with override void StartingEquipSetup(PlayerBase player, bool clothesChosen)

 

 

override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
{
    player.RemoveAllItems();

    EntityAI itemEnt;
    ItemBase itemBs;

    switch (Math.RandomInt(0, 12)) {
    case 0:
    // Player 0
    player.GetInventory().CreateInInventory("TTSKOPants");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("TShirt_Green");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("CombatBoots_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("CombatKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("FirefighterAxe");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("TortillaBag");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("UMP45");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("PistolSuppressor");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Mag_UMP_25Rnd");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Mag_UMP_25Rnd");itemBs = ItemBase.Cast(itemEnt);
    
    break;
    case 1:
    // Player 1
    player.GetInventory().CreateInInventory("ParamedicPants_Green");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("ParamedicJacket_Green");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);    
    player.GetInventory().CreateInInventory("SalineBagIV");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("BandageDressing");itemBs = ItemBase.Cast(itemEnt);
    break;
    case 2:
    // player 2
    player.GetInventory().CreateInInventory("SlacksPants_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("WoolCoat_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("AthleticShoes_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Paper");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("SodaCan_Cola");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("ThinFramesGlasses");itemBs = ItemBase.Cast(itemEnt);
    break;
            case 3:
    // player 3
    player.GetInventory().CreateInInventory("Jeans_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("RidersJacket_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("MotoHelmet_Red");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("HikingBootsLow_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Matchbox");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Pipe");itemBs = ItemBase.Cast(itemEnt);
    break;
            case 4:
    // player 4
    player.GetInventory().CreateInInventory("HikingJacket_Red");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("CargoPants_Blue");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("HikingBootsLow_Blue");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("MountainBag_Blue");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Compass");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("WaterBottle");itemBs = ItemBase.Cast(itemEnt);
    break;
            case 5:
    // player 5
    player.GetInventory().CreateInInventory("PoliceJacket");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("PolicePants");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("CombatBoots_Grey");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Flashlight");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Battery9V");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("PersonalRadio");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Apple");itemBs = ItemBase.Cast(itemEnt);
    
    break;
            case 6:
    // player 6
    player.GetInventory().CreateInInventory("Shirt_RedCheck");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Jeans_Blue");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("WoodAxe");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("WorkingBoots_Brown");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Ushanka_Green");itemBs = ItemBase.Cast(itemEnt);
    break;
            case 7:
    // player 7
    player.GetInventory().CreateInInventory("TrackSuitPants_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("TrackSuitJacket_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("AthleticShoes_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("SodaCan_Kvass");itemBs = ItemBase.Cast(itemEnt);
    
    break;
            case 8:
    // player 8
    player.GetInventory().CreateInInventory("FirefighterJacket_Beige");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("FirefightersPants_Beige");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("FirefightersHelmet_White");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("WorkingBoots_Yellow");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("FirefighterAxe");itemBs = ItemBase.Cast(itemEnt);
    
    break;
    case 9:
    // player 9
    player.GetInventory().CreateInInventory("TTsKOJacket_Camo");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("TTSKOPants");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Ssh68Helmet");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("CombatBoots_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("FirefighterAxe");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("ImprovisedBag");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("M4A1");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("M4_RISHndgrd_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("M4_MPBttstck_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("ACOGOptic");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Mag_STANAG_30Rnd");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Mag_STANAG_30Rnd");itemBs = ItemBase.Cast(itemEnt);
    
    break;
    case 10:
    // player 10
    player.GetInventory().CreateInInventory("GorkaEJacket_Summer");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("GorkaPants_Summer");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Ssh68Helmet");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("CombatBoots_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("FirefighterAxe");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("TortillaBag");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("AKM");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("AK_WoodHndgrd_Camo");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("AK_WoodBttstck_Camo");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("PSO1Optic");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Mag_AKM_Drum75Rnd");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("AmmoBox_762x39_20Rnd");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Mag_AKM_30Rnd");itemBs = ItemBase.Cast(itemEnt);
    
    break;
    case 11:
    // player 11
    player.GetInventory().CreateInInventory("GorkaEJacket_Summer");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("GorkaPants_Summer");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Ssh68Helmet");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("CombatBoots_Black");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("KitchenKnife");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("FirefighterAxe");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("TortillaBag");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("SVD");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("PSO1Optic");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Mag_SVD_10Rnd");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("Mag_SVD_10Rnd");itemBs = ItemBase.Cast(itemEnt);
    player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");itemBs = ItemBase.Cast(itemEnt);
    
    break;    
                                    }
//   Give universal gear
    itemEnt = player.GetInventory().CreateInInventory("Rag");
    itemBs = ItemBase.Cast(itemEnt);
    itemBs.SetQuantity(4);
//        SetRandomHealth(itemEnt);
//        player.GetInventory().CreateInInventory("HuntingKnife");
}
};
Mission CreateCustomMission(string path)
{
return new CustomMission();
}

Share this post


Link to post
Share on other sites

or use this:

 

// eKTveY09zb9pZCJt2KEjzuonYdgaAaG9n6PgvKbW7Qw=
  void main()
{
	Hive ce = CreateHive();
	if ( ce )
		ce.InitOffline();

	Weather weather = g_Game.GetWeather();

	weather.GetOvercast().SetLimits( 0.0 , 1.0 );
	weather.GetRain().SetLimits( 0.0 , 0.0 );
	weather.GetFog().SetLimits( 0.0 , 0.25 );

	weather.GetOvercast().SetForecastChangeLimits( 0.0, 0.2 );
	weather.GetRain().SetForecastChangeLimits( 0.0, 0.0 );
	weather.GetFog().SetForecastChangeLimits( 0.15, 0.45 );

	weather.GetOvercast().SetForecastTimeLimits( 1800 , 1800 );
	weather.GetRain().SetForecastTimeLimits( 600 , 600 );
	weather.GetFog().SetForecastTimeLimits( 1800 , 1800 );

	weather.GetOvercast().Set( Math.RandomFloatInclusive(0.0, 0.3), 0, 0);
	weather.GetRain().Set( Math.RandomFloatInclusive(0.0, 0.2), 0, 0);
	weather.GetFog().Set( Math.RandomFloatInclusive(0.0, 0.1), 0, 0);
	
	weather.SetWindMaximumSpeed(15);
	weather.SetWindFunctionParams(0.1, 0.3, 50);
}



class CustomMission: MissionServer
{	
	override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName)
	{
		Entity playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");
		Class.CastTo(m_player, playerEnt);
		GetGame().SelectPlayer(identity, m_player);
		return m_player;
	}
	
	
	void SetRandomHealth(EntityAI itemEnt)
	{
		int rndHlt = Math.RandomInt(60,100);
		itemEnt.SetHealth("","",rndHlt);
	}
	
	
	override void OnInit()
    {
        GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(NumPLayersOnServer, 300000, true);      // 5 minutes
	}
   
    void NumPLayersOnServer()
    {
        ref array<Man> players = new array<Man>;
        GetGame().GetPlayers( players );
        int numPlayers = players.Count();
        for ( int i = 0; i < players.Count(); ++i )
        {
            Man player = players.Get(i);
            if( player )
            {
                string messPlayers = "Players on the server: " + numPlayers.ToString() + "/120"
                Param1<string> m_MessageParam = new Param1<string>(messPlayers);
                GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, m_MessageParam, true, player.GetIdentity());
            }
        }
    }
	
	override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
	{
	// Admins 
	// Sasaa_virus_86 	76561198015080948
	// Rene 			76561197973590083
	// Mauss			76561198015299671
	// stefan			76561198021971615

	bool IsAdmin = false;
	string SteamId_sasaa = "76561198015080948";
	string SteamId_rene = "76561197973590083";
	string SteamId_Mauss = "76561198015299671";
	string SteamId_stefan = "76561198021971615";
	
	if (player.GetIdentity().GetPlainId() == SteamId_sasaa){
		IsAdmin = true;
	} else if (player.GetIdentity().GetPlainId() == SteamId_rene){
		IsAdmin = true;
	} else if (player.GetIdentity().GetPlainId() == SteamId_Mauss){
		IsAdmin = true;
	} else if (player.GetIdentity().GetPlainId() == SteamId_stefan){
		IsAdmin = true;
	} else {
		IsAdmin = false;
	}

	if (IsAdmin){
		// Admins
		player.RemoveAllItems();
		player.GetInventory().CreateInInventory("TTSKOPants");
		player.GetInventory().CreateInInventory("TTsKOJacket_Camo");
		player.GetInventory().CreateInInventory("CombatBoots_Black");
		player.GetInventory().CreateInInventory("SmershVestBackpack");
		player.GetInventory().CreateInInventory("GhillieSuit_Woodland");
		player.GetInventory().CreateInInventory("GhillieHood_Woodland");
		player.GetInventory().CreateInInventory("StoneKnife");
		player.GetInventory().CreateInInventory("SodaCan_Cola");
		player.GetInventory().CreateInInventory("SodaCan_Cola");
		player.GetInventory().CreateInInventory("TacticalBaconCan");
		player.GetInventory().CreateInInventory("TacticalBaconCan");
		player.GetInventory().CreateInInventory("CanOpener");
		player.GetInventory().CreateInInventory("BandageDressing");
		player.GetInventory().CreateInInventory("BandageDressing");
		player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
		player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
		player.GetInventory().CreateInInventory("Syringe");
		
		player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
		player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
		player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
		player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
		player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
		player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
		player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
		player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
		player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
			
		// M4A1 Green
		EntityAI ghillie_m4a1 = player.GetHumanInventory().CreateInInventory("M4A1_Green");
		ghillie_m4a1.GetInventory().CreateAttachment("M4_Suppressor");
		ghillie_m4a1.GetInventory().CreateAttachment("M4_RISHndgrd_Green");
		ghillie_m4a1.GetInventory().CreateAttachment("M4_MPBttstck_Green");
		ghillie_m4a1.GetInventory().CreateAttachment("GhillieAtt_Woodland");
		// Marakov
		EntityAI ghillie_marakov = player.GetHumanInventory().CreateInInventory("MakarovIJ70");
		ghillie_marakov.GetInventory().CreateAttachment("PistolSuppressor");
			/*!  - Not working jet
			player.GetInventory().CreateInInventory("Mag_Glock_15Rnd");
			player.GetInventory().CreateInInventory("Mag_Glock_15Rnd");
			player.GetInventory().CreateInInventory("Mag_VSS_10Rnd");
			player.GetInventory().CreateInInventory("Mag_VSS_10Rnd");
			ItemBase sp6_ammo0 = player.GetInventory().CreateInInventory("Ammo_9x39");
			sp6_ammo0.SetQuantity(20);
			ItemBase sp6_ammo1 = player.GetInventory().CreateInInventory("Ammo_9x39");
			sp6_ammo1.SetQuantity(20);
			
			//Glock19
			EntityAI Glock_ghilly = player.GetHumanInventory().CreateInInventory("Glock19");
			Glock_ghilly.GetInventory().CreateAttachment("PistolSuppressor");
			*/
		// Porto
		EntityAI Tools_portable = player.GetHumanInventory().CreateInInventory("PersonalRadio");
		Tools_portable.GetInventory().CreateAttachment("Battery9V");
		// Fireaxe
		EntityAI Fireaxe_ghilly = player.GetHumanInventory().CreateInInventory("FirefighterAxe_Green");
		// Rangefinder
		EntityAI Tools_rangefinder = player.GetHumanInventory().CreateInInventory("Rangefinder");
		Tools_rangefinder.GetInventory().CreateAttachment("Battery9V");
			/*! Vss - Not working jet
			EntityAI vss = player.GetHumanInventory().CreateInHands("VSS");
			vss.GetInventory().CreateAttachment("GhillieAtt_Woodland");
			vss.GetInventory().CreateAttachment("PSO11Optic");
			*/
	} else {
		switch (Math.RandomInt(3, 11)) {
			case 0:
			// Knight
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("TaloonBag_Blue");
			player.GetInventory().CreateInInventory("GreatHelm");
			player.GetInventory().CreateInInventory("Kiwi");
			player.GetInventory().CreateInInventory("Kiwi");
			player.GetInventory().CreateInInventory("SodaCan_cola");
			player.GetInventory().CreateInInventory("SodaCan_spite");
			EntityAI Melee_Sword = player.GetInventory().CreateInInventory("Sword");
			break;

			case 1:
			// Miner
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("TaloonBag_Green");
			player.GetInventory().CreateInInventory("WorkingGloves_Yellow");
			player.GetInventory().CreateInInventory("Apple");
			player.GetInventory().CreateInInventory("Apple");
			player.GetInventory().CreateInInventory("SodaCan_Pipsi");
			player.GetInventory().CreateInInventory("SodaCan_cola");
			player.GetInventory().CreateInInventory("SpaghettiCan");
			EntityAI Melee_Pickaxe = player.GetHumanInventory().CreateInInventory("Pickaxe");
			break;
			
			case 2:
			// Lumberjack
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("Shirt_RedCheck");
			player.GetInventory().CreateInInventory("WorkingGloves_Brown");
			player.GetInventory().CreateInInventory("Jeans_Blue");
			player.GetInventory().CreateInInventory("WorkingBoots_Brown");
			player.GetInventory().CreateInInventory("Ushanka_Green");
			EntityAI Melee_woodaxe = player.GetHumanInventory().CreateInInventory("WoodAxe");
			break;
			
			case 4:
			// firefighter
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("FirefightersPants_Black");
			player.GetInventory().CreateInInventory("FirefighterJacket_Black");
			player.GetInventory().CreateInInventory("FirefightersHelmet_Red");
			player.GetInventory().CreateInInventory("WorkingGloves_Black");
			player.GetInventory().CreateInInventory("CombatBoots_Black");
			player.GetInventory().CreateInInventory("SodaCan_Pipsi");
			player.GetInventory().CreateInInventory("SodaCan_Cola");
			player.GetInventory().CreateInInventory("BakedBeansCan");
			EntityAI Melee_Fireaxe = player.GetInventory().CreateInInventory("FirefighterAxe_Black");
			break;
			
			case 5:
			// armyman
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("TTSKOPants");
			player.GetInventory().CreateInInventory("TTsKOJacket_Camo");
			player.GetInventory().CreateInInventory("TacticalGloves_Green");
			player.GetInventory().CreateInInventory("CombatBoots_Black");
			player.GetInventory().CreateInInventory("SmershBag");
			player.GetInventory().CreateInInventory("CombatKnife");
			player.GetInventory().CreateInInventory("SodaCan_Cola");
			player.GetInventory().CreateInInventory("SodaCan_Pipsi");
			player.GetInventory().CreateInInventory("TacticalBaconCan");
			player.GetInventory().CreateInInventory("BandageDressing");
			player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
			player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
			player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
			player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
			// M4A1 Green
			EntityAI m4a1 = player.GetHumanInventory().CreateInInventory("M4A1_Green");
			m4a1.GetInventory().CreateAttachment("M4_Suppressor");
			m4a1.GetInventory().CreateAttachment("M4_RISHndgrd_Green");
			m4a1.GetInventory().CreateAttachment("M4_OEBttstk_Green");
			// Army_porta
			EntityAI portable1 = player.GetHumanInventory().CreateInInventory("PersonalRadio");
			portable1.GetInventory().CreateAttachment("Battery9V");
			break;

			case 6:
			// paramedic
			player.RemoveAllItems();			
			player.GetInventory().CreateInInventory("TaloonBag_Black");
			player.GetInventory().CreateInInventory("ParamedicPants_Green");
			player.GetInventory().CreateInInventory("ParamedicJacket_Green");
			player.GetInventory().CreateInInventory("Athleticshoes_Grey");
			player.GetInventory().CreateInInventory("KitchenKnife");
			player.GetInventory().CreateInInventory("TaloonBag_Red");
			player.GetInventory().CreateInInventory("Canteen");
			player.GetInventory().CreateInInventory("SalineBagIV");
			player.GetInventory().CreateInInventory("BandageDressing");
			player.GetInventory().CreateInInventory("Morphine");
			player.GetInventory().CreateInInventory("BloodBagIV");
			player.GetInventory().CreateInInventory("ClearSyringe");
			player.GetInventory().CreateInInventory("Morphine");
			player.GetInventory().CreateInInventory("KitchenKnife");
			break;

			
			case 7:
			// Hunter Autumn
			player.RemoveAllItems();
			// Hunter_pants = [HunterPants_Autumn,HunterPants_Brown,HunterPants_Spring,HunterPants_Summer,HunterPants_Winter]
			// Hunter_jacket = [HuntingJacket_Autumn,HunterPants_Brown,HuntingJacket_Spring,HuntingJacket_Summer,HuntingJacket_Winter]
			// Hunter_change = Math.RandomInt(3, 4)
			player.GetInventory().CreateInInventory("unterPants_Autumn");
			player.GetInventory().CreateInInventory("HuntingJacket_Autumn");
			player.GetInventory().CreateInInventory("TacticalGloves_Black");
			player.GetInventory().CreateInInventory("CombatBoots_Black");
			player.GetInventory().CreateInInventory("HuntingKnife");
			player.GetInventory().CreateInInventory("SmershBag");
			break;


			case 8:
			// hunter Spring
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("HuntingJacket_Spring");
			player.GetInventory().CreateInInventory("HunterPants_Spring");
			player.GetInventory().CreateInInventory("TacticalGloves_Green");
			player.GetInventory().CreateInInventory("HuntingJacket_Spring");
			player.GetInventory().CreateInInventory("CombatBoots_Black");
			player.GetInventory().CreateInInventory("SmershBag");
			player.GetInventory().CreateInInventory("HuntingKnife");
			player.GetInventory().CreateInInventory("Canteen");
			player.GetInventory().CreateInInventory("TacticalBaconCan");
			player.GetInventory().CreateInInventory("TacticalBaconCan");
			break;
			
			case 9:
			// Cop
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("PoliceJacket");
			player.GetInventory().CreateInInventory("PolicePants");
			player.GetInventory().CreateInInventory("CombatBoots_Grey");
			player.GetInventory().CreateInInventory("Apple");
			player.GetInventory().CreateInInventory("Apple");
			player.GetInventory().CreateInInventory("Apple");
			// Porto
			EntityAI Police_porto = player.GetHumanInventory().CreateInInventory("PersonalRadio");
			Police_porto.GetInventory().CreateAttachment("Battery9V");
			// flashlight
			EntityAI Police_flashlight = player.GetHumanInventory().CreateInInventory("Flashlight");
			Police_flashlight.GetInventory().CreateAttachment("Battery9V");
			break;
			
			case 10:
			// Biker
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("Jeans_Black");
			player.GetInventory().CreateInInventory("RidersJacket_Black");
			player.GetInventory().CreateInInventory("MotoHelmet_Black");
			player.GetInventory().CreateInInventory("CombatBoots_Black");
			player.GetInventory().CreateInInventory("WorkingGloves_Black");
			player.GetInventory().CreateInInventory("HuntingKnife");
			player.GetInventory().CreateInInventory("BaseballBat");
			break;
			
			case 11:
			// mule
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("Jeans_Black");
			player.GetInventory().CreateInInventory("Hoodie_Black");
			player.GetInventory().CreateInInventory("AliceBag_Black");
			player.GetInventory().CreateInInventory("Wellies_Black");
			player.GetInventory().CreateInInventory("SodaCan_cola");
			player.GetInventory().CreateInInventory("SodaCan_cola");
			player.GetInventory().CreateInInventory("SodaCan_spite");
			player.GetInventory().CreateInInventory("SodaCan_spite");
			player.GetInventory().CreateInInventory("SodaCan_Kvass");
			player.GetInventory().CreateInInventory("SodaCan_Kvass");
			player.GetInventory().CreateInInventory("SodaCan_pipsi");
			player.GetInventory().CreateInInventory("SodaCan_pipsi");
			player.GetInventory().CreateInInventory("SpaghettiCan_Opened");
			player.GetInventory().CreateInInventory("SpaghettiCan_Opened");
			player.GetInventory().CreateInInventory("Apple");
			player.GetInventory().CreateInInventory("Apple");
			player.GetInventory().CreateInInventory("Apple");
			player.GetInventory().CreateInInventory("Apple");
			player.GetInventory().CreateInInventory("AmmoBox_00buck_10rnd");
			player.GetInventory().CreateInInventory("AmmoBox_00buck_10rnd");
			player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
			player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
			player.GetInventory().CreateInInventory("AmmoBox_45ACP_25rnd");
			player.GetInventory().CreateInInventory("AmmoBox_45ACP_25rnd");
			player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
			player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
			player.GetInventory().CreateInInventory("AmmoBox_762x39_20Rnd");
			player.GetInventory().CreateInInventory("AmmoBox_762x39_20Rnd");
			player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
			player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
			player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
			player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
			ItemBase sp6_ammo2 = player.GetInventory().CreateInInventory("Ammo_9x39");
			sp6_ammo2.SetQuantity(20);
			ItemBase sp6_ammo3 = player.GetInventory().CreateInInventory("Ammo_9x39");
			sp6_ammo3.SetQuantity(20);
			break;
			
			
			case 12:
			// Woodsman
			player.RemoveAllItems();
			player.GetInventory().CreateInInventory("BandanaMask_CamoPattern");
			player.GetInventory().CreateInInventory("HuntingJacket_Autumn");
			player.GetInventory().CreateInInventory("HunterPants_Autumn");
			player.GetInventory().CreateInInventory("BaseballCap_Cammo");
			player.GetInventory().CreateInInventory("CombatBoots_Black");
			player.GetInventory().CreateInInventory("ImprovisedBag");
			player.GetInventory().CreateInInventory("HuntingKnife");
			player.GetInventory().CreateInInventory("HuntingKnife");
			player.GetInventory().CreateInInventory("BaseballCap_Cammo");
			player.GetInventory().CreateInInventory("Mag_Arrows_Quiver");
			player.GetInventory().CreateInInventory("RecurveBow");
			player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
			ItemBase Arrow_ammo0 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
			Arrow_ammo0.SetQuantity(5);
			ItemBase Arrow_ammo1 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
			Arrow_ammo1.SetQuantity(5);
			ItemBase Arrow_ammo2 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
			Arrow_ammo1.SetQuantity(5);
			break;
		}
		
		// Rags
        ItemBase Items_Rags = player.GetInventory().CreateInInventory("Rag");
        Items_Rags.SetQuantity(Math.RandomInt(3, 6));
	}
	}
};
  
Mission CreateCustomMission(string path)
{
	return new CustomMission();
}

Only edit the admin part to your steamid64 key

Share this post


Link to post
Share on other sites
Sign in to follow this  

×