Advertisement
iKurdo

Init.c Admins

Feb 2nd, 2023 (edited)
748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 7.55 KB | None | 0 0
  1.     ref TStringArray admins = {"76561198205607135","ADMIN_Xn_STEAMID64"};  
  2.     //////////////////////////////////////////////////////////////////////
  3.         for ( int i = 0; i < admins.Count(); ++i ) 
  4.         if (player.GetIdentity().GetPlainId() == admins[i])
  5.         {
  6.             player.RemoveAllItems();           
  7.  
  8.             player.GetInventory().CreateAttachment("NVGHeadstrap").GetInventory().CreateAttachment("NVGoggles").GetInventory().CreateAttachment("Battery9V");
  9.             player.GetInventory().CreateAttachment("BoonieHat_DPM").GetInventory().CreateAttachment("Bait");
  10.             player.GetInventory().CreateAttachment("Balaclava3Holes_Green");
  11.  
  12.             EntityAI PrimTop = player.GetInventory().CreateAttachment("M65Jacket_Olive");
  13.             PrimTop.GetInventory().CreateInInventory("ChernarusMap");
  14.             PrimTop.GetInventory().CreateInInventory("BandageDressing");
  15.             PrimTop.GetInventory().CreateInInventory("BandageDressing");
  16.             PrimTop.GetInventory().CreateInInventory("Compass");
  17.             PrimTop.GetInventory().CreateInInventory("CanOpener");
  18.             PrimTop.GetInventory().CreateInInventory("Matchbox");
  19.             PrimTop.GetInventory().CreateInInventory("Lockpick");
  20.             PrimTop.GetInventory().CreateInInventory("TacticalBaconCan_Opened");
  21.             PrimTop.GetInventory().CreateInInventory("TacticalBaconCan");
  22.             PrimTop.GetInventory().CreateInInventory("Whetstone");
  23.             PrimTop.GetInventory().CreateInInventory("SewingKit");
  24.  
  25.             player.GetInventory().CreateAttachment("Armband_Bohemia");
  26.             player.GetInventory().CreateAttachment("TacticalGloves_Green");
  27.  
  28.             EntityAI PrimVest = player.GetInventory().CreateAttachment("PlateCarrierVest_Camo");
  29.             PrimVest.GetInventory().CreateAttachment("Grenade_ChemGas");
  30.             PrimVest.GetInventory().CreateAttachment("M18SmokeGrenade_White");
  31.             PrimVest.GetInventory().CreateAttachment("M67Grenade");
  32.             PrimVest.GetInventory().CreateAttachment("FlashGrenade");
  33.            
  34.             EntityAI Pouches = PrimVest.GetInventory().CreateAttachment("PlateCarrierPouches_Camo");
  35.             EntityAI Mag0 = Pouches.GetInventory().CreateInInventory("Mag_STANAG_30Rnd");
  36.             Pouches.GetInventory().CreateInInventory("Mag_STANAG_30Rnd");
  37.             Pouches.GetInventory().CreateInInventory("Mag_STANAG_30Rnd");
  38.             EntityAI MagD0 = Pouches.GetInventory().CreateInInventory("Mag_Deagle_9rnd");
  39.             Pouches.GetInventory().CreateInInventory("Mag_Deagle_9rnd");
  40.             Pouches.GetInventory().CreateInInventory("Mag_SVD_10Rnd");
  41.             Pouches.GetInventory().CreateInInventory("Mag_SVD_10Rnd");
  42.             Pouches.GetInventory().CreateInInventory("Mag_SVD_10Rnd");
  43.            
  44.             EntityAI Holst0 = PrimVest.GetInventory().CreateAttachment("PlateCarrierHolster_Camo");
  45.             EntityAI Gold0 = Holst0.GetInventory().CreateAttachment("Deagle_Gold");
  46.             Gold0.GetInventory().CreateAttachment("PistolOptic");
  47.             Gold0.GetInventory().CreateAttachment("PistolSuppressor");
  48.  
  49.             EntityAI PrimBelt = player.GetInventory().CreateAttachment("MilitaryBelt");
  50.             EntityAI Cant0 = PrimBelt.GetInventory().CreateAttachment("Canteen");
  51.             EntityAI PrimNylon = PrimBelt.GetInventory().CreateAttachment("NylonKnifeSheath");
  52.             PrimNylon.GetInventory().CreateInInventory("CombatKnife")
  53.             EntityAI Holst00 = PrimBelt.GetInventory().CreateAttachment("PlateCarrierHolster_Camo");
  54.             Holst00.GetInventory().CreateAttachment("Magnum");
  55.  
  56.             EntityAI PrimPant = player.GetInventory().CreateAttachment("USMCPants_Woodland");
  57.             EntityAI Rod0 = PrimPant.GetInventory().CreateInInventory("FishingRod").GetInventory().CreateAttachment("Bait");
  58.  
  59.             player.GetInventory().CreateAttachment("MilitaryBoots_Black").GetInventory().CreateAttachment("FangeKnife");       
  60.  
  61.             EntityAI PrimBag = player.GetInventory().CreateAttachment("AliceBag_Camo");
  62.             EntityAI PrimRadio = PrimBag.GetInventory().CreateAttachment("GPSReceiver").GetInventory().CreateAttachment("Battery9V");
  63.             EntityAI PrimAbox = PrimBag.GetInventory().CreateInInventory("AmmoBox");
  64.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  65.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  66.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  67.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  68.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  69.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_357_20Rnd");
  70.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_357_20Rnd");
  71.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_357_20Rnd");
  72.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_357_20Rnd");
  73.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_357_20Rnd");
  74.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  75.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  76.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  77.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  78.             PrimAbox.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  79.             PrimBag.GetInventory().CreateAttachment("Chemlight_Green");
  80.             EntityAI Axe0 = PrimBag.GetInventory().CreateInInventory("FirefighterAxe_Green");
  81.  
  82.             EntityAI FirstA0 = PrimBag.GetInventory().CreateInInventory("FirstAidKit");
  83.             FirstA0.GetInventory().CreateInInventory("VitaminBottle");
  84.             FirstA0.GetInventory().CreateInInventory("TetracyclineAntibiotics");
  85.             FirstA0.GetInventory().CreateInInventory("PurificationTablets");
  86.             FirstA0.GetInventory().CreateInInventory("BloodTestKit");
  87.             EntityAI FirstA00 = PrimBag.GetInventory().CreateInInventory("FirstAidKit");
  88.             FirstA00.GetInventory().CreateInInventory("Epinephrine");
  89.             FirstA00.GetInventory().CreateInInventory("Morphine");
  90.             FirstA00.GetInventory().CreateInInventory("AntiChemInjector");
  91.             FirstA00.GetInventory().CreateInInventory("BloodTestKit");
  92.  
  93.             EntityAI PrimGun0 = player.GetHumanInventory().CreateInHands("M4A1");
  94.             PrimGun0.GetInventory().CreateAttachment("M4_RISHndgrd");
  95.             PrimGun0.GetInventory().CreateAttachment("M4_CQBBttstck");
  96.             PrimGun0.GetInventory().CreateAttachment("M4_Suppressor");
  97.             PrimGun0.GetInventory().CreateAttachment("ACOGOptic");
  98.             PrimGun0.GetInventory().CreateAttachment("UniversalLight").GetInventory().CreateAttachment("Battery9V");
  99.  
  100.             EntityAI PrimGun00 = player.GetHumanInventory().CreateAttachment("SVD");
  101.             PrimGun00.GetInventory().CreateAttachment("AK_Suppressor");
  102.             PrimGun00.GetInventory().CreateAttachment("PSO1Optic").GetInventory().CreateAttachment("Battery9V");
  103.  
  104.             player.SetQuickBarEntityShortcut(PrimGun0, 0, true);
  105.             player.SetQuickBarEntityShortcut(Mag0, 1, true);
  106.             player.SetQuickBarEntityShortcut(Gold0, 2, true);
  107.             player.SetQuickBarEntityShortcut(MagD0, 3, true);
  108.             player.SetQuickBarEntityShortcut(Axe0, 4, true);
  109.             player.SetQuickBarEntityShortcut(PrimAbox, 5, true);
  110.             player.SetQuickBarEntityShortcut(FirstA0, 6, true);
  111.  
  112.             rand = Math.RandomFloatInclusive(0.0, 1.0);
  113.             if ( rand < 0.25 )
  114.             itemEnt = player.GetInventory().CreateInInventory("SodaCan_Cola");
  115.             else if ( rand > 0.75 )
  116.             itemEnt = player.GetInventory().CreateInInventory("SodaCan_Spite");
  117.             else
  118.             itemEnt = player.GetInventory().CreateInInventory("SodaCan_Pipsi");
  119.  
  120.             SetRandomHealth(itemEnt);
  121.  
  122.             rand = Math.RandomFloatInclusive(0.0, 1.0);
  123.             if ( rand < 0.35 )
  124.             itemEnt = player.GetInventory().CreateInInventory("Apple");
  125.             else if ( rand > 0.65 )
  126.             itemEnt = player.GetInventory().CreateInInventory("Pear");
  127.             else
  128.             itemEnt = player.GetInventory().CreateInInventory("Plum");
  129.      
  130.             player.GetStatWater().Set( 900 );
  131.             player.GetStatEnergy().Set( 1100 );
  132.         }
  133.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement