Advertisement
sasaa86

rotzooi

Dec 17th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 32.64 KB | None | 0 0
  1. //! include sasaa.c to init.c  "Genexis Platinum 7840"
  2. //! #include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\sasaa.c"
  3.  
  4.  
  5.  
  6. class CustomMission: MissionServer{
  7.    
  8.     override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName){
  9.         Entity playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");
  10.         Class.CastTo(m_player, playerEnt);
  11.         GetGame().SelectPlayer(identity, m_player);
  12.         return m_player;
  13.     }
  14.    
  15.     void SetRandomHealth(EntityAI itemEnt){
  16.         int rndHlt = Math.RandomInt(70,100);
  17.         itemEnt.SetHealth("","",rndHlt);
  18.     }
  19.    
  20.     override void OnInit(){
  21.         GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(NumPLayersOnServer, 300000, true);      // 5 minutes
  22.        
  23.        
  24.        
  25.      // ############################## Bridge ##################################
  26.     Object obj;
  27.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12999.700195 -7.890600 3284.985596");
  28.     obj.SetOrientation("55.999985 0.000000 0.000000");
  29.     obj.SetPosition("12999.700195 -7.890600 3284.985596");
  30.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12988.517578 -7.890600 3301.570557");
  31.     obj.SetOrientation("55.999985 0.000000 0.000000");
  32.     obj.SetPosition("12988.517578 -7.890600 3301.570557");
  33.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12977.330078 -7.890600 3318.156250");
  34.     obj.SetOrientation("56.000000 0.000000 0.000000");
  35.     obj.SetPosition("12977.330078 -7.890600 3318.156250");
  36.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12966.149414 -7.890600 3334.729980");
  37.     obj.SetOrientation("56.000000 0.000000 0.000000");
  38.     obj.SetPosition("12966.149414 -7.890600 3334.729980");
  39.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12954.969727 -7.890600 3351.300049");
  40.     obj.SetOrientation("56.000000 0.000000 0.000000");
  41.     obj.SetPosition("12954.969727 -7.890600 3351.300049");
  42.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12943.798828 -7.890600 3367.870117");
  43.     obj.SetOrientation("56.000000 0.000000 0.000000");
  44.     obj.SetPosition("12943.798828 -7.890600 3367.870117");
  45.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12932.620117 -7.890600 3384.443604");
  46.     obj.SetOrientation("56.000000 0.000000 0.000000");
  47.     obj.SetPosition("12932.620117 -7.890600 3384.443604");
  48.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12921.450195 -7.890600 3401.000000");
  49.     obj.SetOrientation("56.000000 0.000000 0.000000");
  50.     obj.SetPosition("12921.450195 -7.890600 3401.000000");
  51.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12910.259766 -7.890600 3417.581055");
  52.     obj.SetOrientation("56.000000 0.000000 0.000000");
  53.     obj.SetPosition("12910.259766 -7.890600 3417.581055");
  54.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12899.080078 -7.890600 3434.149902");
  55.     obj.SetOrientation("56.000000 0.000000 0.000000");
  56.     obj.SetPosition("12899.080078 -7.890600 3434.149902");
  57.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12887.900391 -7.890600 3450.728027");
  58.     obj.SetOrientation("56.000000 0.000000 0.000000");
  59.     obj.SetPosition("12887.900391 -7.890600 3450.728027");
  60.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12876.709961 -7.890600 3467.312256");
  61.     obj.SetOrientation("56.000000 0.000000 0.000000");
  62.     obj.SetPosition("12876.709961 -7.890600 3467.312256");
  63.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12865.540039 -7.890600 3483.872803");
  64.     obj.SetOrientation("56.000000 0.000000 0.000000");
  65.     obj.SetPosition("12865.540039 -7.890600 3483.872803");
  66.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12854.360352 -7.890600 3500.449463");
  67.     obj.SetOrientation("56.000000 0.000000 0.000000");
  68.     obj.SetPosition("12854.360352 -7.890600 3500.449463");
  69.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12843.179688 -7.890600 3517.039795");
  70.     obj.SetOrientation("56.000000 0.000000 0.000000");
  71.     obj.SetPosition("12843.179688 -7.890600 3517.039795");
  72.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12831.998047 -7.890600 3533.620117");
  73.     obj.SetOrientation("56.000000 0.000000 0.000000");
  74.     obj.SetPosition("12831.998047 -7.890600 3533.620117");
  75.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12820.809570 -7.890600 3550.198975");
  76.     obj.SetOrientation("56.000000 0.000000 0.000000");
  77.     obj.SetPosition("12820.809570 -7.890600 3550.198975");
  78.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12809.627930 -7.890600 3566.780029");
  79.     obj.SetOrientation("56.000000 0.000000 0.000000");
  80.     obj.SetPosition("12809.627930 -7.890600 3566.780029");
  81.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12798.440430 -7.890600 3583.360107");
  82.     obj.SetOrientation("56.000000 0.000000 0.000000");
  83.     obj.SetPosition("12798.440430 -7.890600 3583.360107");
  84.     obj = GetGame().CreateObject("Land_Container_1Moh", "12809.701172 2.301730 3576.680176");
  85.     obj.SetOrientation("138.000015 0.000000 0.000000");
  86.     obj.SetPosition("12809.701172 2.301730 3576.680176");
  87.     obj = GetGame().CreateObject("Land_Container_1Moh", "12835.256836 2.086504 3538.797119");
  88.     obj.SetOrientation("-20.000008 0.000000 0.000000");
  89.     obj.SetPosition("12835.256836 2.086504 3538.797119");
  90.     obj = GetGame().CreateObject("Land_Container_1Moh", "12894.056641 2.251730 3455.602783");
  91.     obj.SetOrientation("-69.000000 0.000000 0.000000");
  92.     obj.SetPosition("12894.056641 2.251730 3455.602783");
  93.     obj = GetGame().CreateObject("Land_Container_1Moh", "12934.767578 2.301730 3387.844238");
  94.     obj.SetOrientation("0.000000 0.000000 0.000000");
  95.     obj.SetPosition("12934.767578 2.301730 3387.844238");
  96.     obj = GetGame().CreateObject("Land_Container_1Moh", "12990.190430 2.251730 3310.003662");
  97.     obj.SetOrientation("-62.000011 0.000000 0.000000");
  98.     obj.SetPosition("12990.190430 2.251730 3310.003662");
  99.     obj = GetGame().CreateObject("Land_Container_1Bo", "12999.427734 2.249999 3290.898682");
  100.     obj.SetOrientation("-17.000000 0.000000 0.000000");
  101.     obj.SetPosition("12999.427734 2.249999 3290.898682");
  102.     obj = GetGame().CreateObject("Land_Container_1Bo", "12966.283203 2.201730 3346.047607");
  103.     obj.SetOrientation("-33.000004 0.000000 0.000000");
  104.     obj.SetPosition("12966.283203 2.201730 3346.047607");
  105.     obj = GetGame().CreateObject("Land_Container_1Bo", "12947.516602 1.970427 3371.596680");
  106.     obj.SetOrientation("-30.000006 0.000000 0.000000");
  107.     obj.SetPosition("12947.516602 1.970427 3371.596680");
  108.     obj = GetGame().CreateObject("Land_Container_1Bo", "12912.168945 2.301730 3425.531006");
  109.     obj.SetOrientation("-57.999996 0.000000 0.000000");
  110.     obj.SetPosition("12912.168945 2.301730 3425.531006");
  111.     obj = GetGame().CreateObject("Land_Container_1Mo", "12900.983398 2.060063 3443.850830");
  112.     obj.SetOrientation("-4.000000 0.000000 0.000000");
  113.     obj.SetPosition("12900.983398 2.060063 3443.850830");
  114.     obj = GetGame().CreateObject("Land_Container_1Mo", "12912.173828 4.767287 3425.496338");
  115.     obj.SetOrientation("-57.999992 0.000000 0.000000");
  116.     obj.SetPosition("12912.173828 4.767287 3425.496338");
  117.     obj = GetGame().CreateObject("Land_Wreck_Uaz", "12832.424805 1.935676 3544.248535");
  118.     obj.SetOrientation("0.000000 0.000000 0.000000");
  119.     obj.SetPosition("12832.424805 1.935676 3544.248535");
  120.     obj = GetGame().CreateObject("Land_Wreck_Uaz", "12889.860352 1.985680 3460.103760");
  121.     obj.SetOrientation("-70.000000 0.000000 0.000000");
  122.     obj.SetPosition("12889.860352 1.985680 3460.103760");
  123.     obj = GetGame().CreateObject("Land_Wreck_Uaz", "12937.300781 1.935676 3383.198975");
  124.     obj.SetOrientation("0.000000 0.000000 0.000000");
  125.     obj.SetPosition("12937.300781 1.935676 3383.198975");
  126.     obj = GetGame().CreateObject("Land_Wreck_S1023_Blue", "12931.631836 2.091624 3390.962158");
  127.     obj.SetOrientation("-25.000008 0.000000 0.000000");
  128.     obj.SetPosition("12931.631836 2.091624 3390.962158");
  129.     obj = GetGame().CreateObject("Land_Wreck_Volha_Blue", "12986.588867 1.829433 3314.493896");
  130.     obj.SetOrientation("0.000000 0.000000 0.000000");
  131.     obj.SetPosition("12986.588867 1.829433 3314.493896");
  132.     obj = GetGame().CreateObject("Land_Wreck_Volha_Blue", "13003.046875 1.829433 3284.915771");
  133.     obj.SetOrientation("-17.000004 0.000000 0.000000");
  134.     obj.SetPosition("13003.046875 1.829433 3284.915771");
  135.     obj = GetGame().CreateObject("Land_Wreck_V3S", "12903.459961 2.536791 3436.341797");
  136.     obj.SetOrientation("-24.000000 -4.000000 -0.000000");
  137.     obj.SetPosition("12903.459961 2.536791 3436.341797");
  138.     obj = GetGame().CreateObject("Land_Wreck_Lada_Red", "12871.142578 1.753987 3480.337891");
  139.     obj.SetOrientation("0.000000 0.000000 0.000000");
  140.     obj.SetPosition("12871.142578 1.753987 3480.337891");
  141.     obj = GetGame().CreateObject("Land_Wreck_Lada_Red", "12849.930664 1.753987 3521.847412");
  142.     obj.SetOrientation("-65.999985 0.000000 0.000000");
  143.     obj.SetPosition("12849.930664 1.753987 3521.847412");
  144.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12860.179688 2.301730 3505.910400");
  145.     obj.SetOrientation("-32.000004 0.000000 0.000000");
  146.     obj.SetPosition("12860.179688 2.301730 3505.910400");
  147.     obj = GetGame().CreateObject("Land_Container_1Moh", "12884.648438 2.301730 3470.343018");
  148.     obj.SetOrientation("0.000000 0.000000 0.000000");
  149.     obj.SetPosition("12884.648438 2.301730 3470.343018");
  150.     obj = GetGame().CreateObject("Land_Container_1Bo", "12820.764648 2.301730 3562.224609");
  151.     obj.SetOrientation("0.000000 0.000000 0.000000");
  152.     obj.SetPosition("12820.764648 2.301730 3562.224609");
  153.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12876.986328 0.573664 3519.558594");
  154.     obj.SetOrientation("0.000000 0.000000 0.000000");
  155.     obj.SetPosition("12876.986328 0.573664 3519.558594");
  156.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12851.830078 0.312851 3463.268066");
  157.     obj.SetOrientation("-80.000000 0.000000 0.000000");
  158.     obj.SetPosition("12851.830078 0.312851 3463.268066");
  159.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12936.000977 0.579718 3442.836914");
  160.     obj.SetOrientation("94.000031 0.000000 0.000000");
  161.     obj.SetPosition("12936.000977 0.579718 3442.836914");
  162.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12936.377930 -0.158530 3346.650391");
  163.     obj.SetOrientation("34.000000 0.000000 0.000000");
  164.     obj.SetPosition("12936.377930 -0.158530 3346.650391");
  165.     obj = GetGame().CreateObject("Land_Container_1Aoh", "13002.358398 1.284515 3319.798828");
  166.     obj.SetOrientation("-74.000000 0.000000 0.000000");
  167.     obj.SetPosition("13002.358398 1.284515 3319.798828");
  168.     obj = GetGame().CreateObject("Land_Container_1Bo", "12946.557617 0.260173 3406.045410");
  169.     obj.SetOrientation("-67.000000 0.000000 0.000000");
  170.     obj.SetPosition("12946.557617 0.260173 3406.045410");
  171.     obj = GetGame().CreateObject("Land_Container_1Bo", "12821.682617 0.678651 3528.143799");
  172.     obj.SetOrientation("-64.000000 0.000000 0.000000");
  173.     obj.SetPosition("12821.682617 0.678651 3528.143799");
  174.     obj = GetGame().CreateObject("Land_Container_1Bo", "12851.442383 0.351952 3561.598877");
  175.     obj.SetOrientation("-57.999992 0.000000 0.000000");
  176.     obj.SetPosition("12851.442383 0.351952 3561.598877");
  177.     obj = GetGame().CreateObject("Land_Container_1Bo", "12918.758789 0.920032 3364.437012");
  178.     obj.SetOrientation("-60.999996 0.000000 0.000000");
  179.     obj.SetPosition("12918.758789 0.920032 3364.437012");
  180.     obj = GetGame().CreateObject("Land_Container_1Mo", "12934.750977 0.666381 3418.666992");
  181.     obj.SetOrientation("-52.000000 0.000000 0.000000");
  182.     obj.SetPosition("12934.750977 0.666381 3418.666992");
  183.     obj = GetGame().CreateObject("Land_Container_1Mo", "12856.403320 0.043793 3469.494629");
  184.     obj.SetOrientation("-45.999996 0.000000 0.000000");
  185.     obj.SetPosition("12856.403320 0.043793 3469.494629");
  186.     obj = GetGame().CreateObject("Land_Container_1Mo", "12879.313477 0.908100 3459.768066");
  187.     obj.SetOrientation("-120.999969 -64.000015 -54.999989");
  188.     obj.SetPosition("12879.313477 0.908100 3459.768066");
  189.     obj = GetGame().CreateObject("Land_Lighthouse", "13057.658203 27.043219 3247.424805");
  190.     obj.SetOrientation("0.000000 0.000000 0.000000");
  191.     obj.SetPosition("13057.658203 27.043219 3247.424805"); 
  192.     // ############################## Bridge ##################################
  193.     }
  194.    
  195.     void NumPLayersOnServer(){
  196.         ref array<Man> players = new array<Man>;
  197.         GetGame().GetPlayers( players );
  198.         int numPlayers = players.Count();
  199.         for ( int i = 0; i < players.Count(); ++i ){
  200.             Man player = players.Get(i);
  201.             if( player ){
  202.                 string messPlayers = "Players on the server: " + numPlayers.ToString() + "/120"
  203.                 Param1<string> m_MessageParam = new Param1<string>(messPlayers);
  204.                 GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, m_MessageParam, true, player.GetIdentity());
  205.             }
  206.         }
  207.     }
  208.    
  209.     override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
  210.     {  
  211.     bool IsAdmin = false;
  212.     string SteamId_sasaa =  "76561198015080948";
  213.     string SteamId_rene =   "76561197973590083";
  214.     string SteamId_Mauss =  "76561198015299671";
  215.     string SteamId_stefan = "76561198021971615";
  216.     string SteamId_tijmen = "76561198023029756";
  217.     string SteamId_kwast =  "76561198162531126";
  218.    
  219.     if (player.GetIdentity().GetPlainId() == SteamId_sasaa){
  220.         IsAdmin = true;
  221.     } else if (player.GetIdentity().GetPlainId() == SteamId_rene){
  222.         IsAdmin = true;
  223.     } else if (player.GetIdentity().GetPlainId() == SteamId_Mauss){
  224.         IsAdmin = true;
  225.     } else if (player.GetIdentity().GetPlainId() == SteamId_stefan){
  226.         IsAdmin = true;
  227.     } else if (player.GetIdentity().GetPlainId() == SteamId_tijmen){
  228.         IsAdmin = true;
  229.     } else {
  230.         IsAdmin = false;
  231.     }
  232.     if (IsAdmin){
  233.         //! start auto
  234.         EntityAI HatchBack;
  235.         vector NewPosition;
  236.         vector OldPosition;
  237.         OldPosition = player.GetPosition();
  238.         NewPosition[0] = OldPosition[0] + 2;
  239.         NewPosition[1] = OldPosition[1] + 0.2;
  240.         NewPosition[2] = OldPosition[2] + 2;
  241.         HatchBack = GetGame().CreateObject( "OffroadHatchback", NewPosition, false, true, true );                  
  242.         HatchBack.GetInventory().CreateAttachment("HatchbackHood");
  243.         HatchBack.GetInventory().CreateAttachment("HatchbackTrunk");
  244.         HatchBack.GetInventory().CreateAttachment("HatchbackDoors_Driver");
  245.         HatchBack.GetInventory().CreateAttachment("HatchbackDoors_CoDriver");
  246.         HatchBack.GetInventory().CreateAttachment("HatchbackWheel");
  247.         HatchBack.GetInventory().CreateAttachment("HatchbackWheel");
  248.         HatchBack.GetInventory().CreateAttachment("HatchbackWheel");
  249.         HatchBack.GetInventory().CreateAttachment("HatchbackWheel");
  250.         HatchBack.GetInventory().CreateAttachment("HatchbackWheel"); //spare
  251.         HatchBack.GetInventory().CreateAttachment("SparkPlug");
  252.         HatchBack.GetInventory().CreateAttachment("EngineBelt");
  253.         HatchBack.GetInventory().CreateAttachment("CarRadiator");
  254.         HatchBack.GetInventory().CreateAttachment("CarBattery");
  255.         auto carfluids = Car.Cast( HatchBack );
  256.             carfluids.Fill( CarFluid.FUEL, 1000 );
  257.             carfluids.Fill( CarFluid.OIL, 1000 );
  258.             carfluids.Fill( CarFluid.BRAKE, 1000 );
  259.             carfluids.Fill( CarFluid.COOLANT, 1000 );
  260.         // Filling hatchback's trunk
  261.         HatchBack.GetInventory().CreateInInventory("NailBox");
  262.         HatchBack.GetInventory().CreateInInventory("NailBox");
  263.         HatchBack.GetInventory().CreateInInventory("NailBox");
  264.         HatchBack.GetInventory().CreateInInventory("NailBox");
  265.         HatchBack.GetInventory().CreateInInventory("NailBox");
  266.         HatchBack.GetInventory().CreateInInventory("NailBox");
  267.         HatchBack.GetInventory().CreateInInventory("FirefighterAxe_Black");
  268.         HatchBack.GetInventory().CreateInInventory("Shovel");
  269.         HatchBack.GetInventory().CreateInInventory("Hammer");
  270.         HatchBack.GetInventory().CreateInInventory("Hammer");
  271.         HatchBack.GetInventory().CreateInInventory("CombinationLock");
  272.         HatchBack.GetInventory().CreateInInventory("Rope");
  273.         HatchBack.GetInventory().CreateInInventory("Rope");
  274.         HatchBack.GetInventory().CreateInInventory("Hammer");
  275.         HatchBack.GetInventory().CreateInInventory("Hammer");
  276.         HatchBack.GetInventory().CreateInInventory("NailBox");
  277.         HatchBack.GetInventory().CreateInInventory("NailBox");
  278.         HatchBack.GetInventory().CreateInInventory("Hacksaw");
  279.         HatchBack.GetInventory().CreateInInventory("BarbedWire");
  280.         HatchBack.GetInventory().CreateInInventory("DuctTape");
  281.         HatchBack.GetInventory().CreateInInventory("DuctTape");
  282.         HatchBack.GetInventory().CreateInInventory("DuctTape");
  283.         HatchBack.GetInventory().CreateInInventory("WoodenLog");
  284.         HatchBack.GetInventory().CreateInInventory("WoodenLog");
  285.         HatchBack.GetInventory().CreateInInventory("WoodenLog");
  286.         HatchBack.GetInventory().CreateInInventory("WoodenLog");
  287.         ItemBase WoodenPlank_1 = HatchBack.GetInventory().CreateInInventory("WoodenPlank");
  288.         WoodenPlank_1.SetQuantity(20);  
  289.         ItemBase WoodenPlank_2 = HatchBack.GetInventory().CreateInInventory("WoodenPlank");
  290.         WoodenPlank_2.SetQuantity(20);
  291.         HatchBack.GetInventory().CreateInInventory("WoodenLog");
  292.         HatchBack.GetInventory().CreateInInventory("WoodenLog");
  293.         HatchBack.GetInventory().CreateInInventory("WoodenLog");
  294.         HatchBack.GetInventory().CreateInInventory("WoodenLog");
  295.         ItemBase WoodenPlank_3 = HatchBack.GetInventory().CreateInInventory("WoodenPlank");
  296.         WoodenPlank_3.SetQuantity(20);  
  297.         ItemBase WoodenPlank_4 = HatchBack.GetInventory().CreateInInventory("WoodenPlank");
  298.         WoodenPlank_4.SetQuantity(20);
  299.         ItemBase WoodenPlank_5 = HatchBack.GetInventory().CreateInInventory("WoodenPlank");
  300.         WoodenPlank_5.SetQuantity(20);
  301.         //! einde auto
  302.        
  303.         player.RemoveAllItems();
  304.         player.GetInventory().CreateInInventory("TTSKOPants");
  305.         player.GetInventory().CreateInInventory("TTsKOJacket_Camo");
  306.         player.GetInventory().CreateInInventory("CombatBoots_Black");
  307.        
  308.         // M4A1 Green
  309.         EntityAI ghillie_m4a1 = player.GetHumanInventory().CreateInHands("M4A1_Green");
  310.         ghillie_m4a1.GetInventory().CreateAttachment("M4_Suppressor");
  311.         ghillie_m4a1.GetInventory().CreateAttachment("M4_RISHndgrd_Green");
  312.         ghillie_m4a1.GetInventory().CreateAttachment("M4_MPBttstck_Green");
  313.         ghillie_m4a1.GetInventory().CreateAttachment("acogoptic");
  314.         //! glitched ghillie_m4a1.GetInventory().CreateAttachment("Mag_STANAGCoupled_30Rnd");
  315.        
  316.         if (player.GetIdentity().GetPlainId() == SteamId_sasaa){
  317.             player.GetInventory().CreateInInventory("GhillieSuit_Woodland");
  318.             player.GetInventory().CreateInInventory("GhillieHood_Woodland");
  319.             EntityAI SmershVestBackpack1 = player.GetHumanInventory().CreateInInventory("SmershVest");
  320.             SmershVestBackpack1.GetInventory().CreateAttachment("SmershBag");
  321.             ghillie_m4a1.GetInventory().CreateAttachment("GhillieAtt_Woodland");
  322.         } else if (player.GetIdentity().GetPlainId() == SteamId_rene){
  323.             player.GetInventory().CreateInInventory("GhillieSuit_Woodland");
  324.             player.GetInventory().CreateInInventory("GhillieHood_Woodland");
  325.             EntityAI SmershVestBackpack2 = player.GetHumanInventory().CreateInInventory("SmershVest");
  326.             SmershVestBackpack1.GetInventory().CreateAttachment("SmershBag");
  327.             ghillie_m4a1.GetInventory().CreateAttachment("GhillieAtt_Woodland");
  328.         } else {
  329.             player.GetInventory().CreateInInventory("HuntingBag");
  330.         }
  331.         player.GetInventory().CreateInInventory("StoneKnife");
  332.         player.GetInventory().CreateInInventory("SodaCan_Cola");
  333.         player.GetInventory().CreateInInventory("SodaCan_Cola");
  334.         player.GetInventory().CreateInInventory("SodaCan_Cola");
  335.         player.GetInventory().CreateInInventory("SodaCan_Cola");
  336.         player.GetInventory().CreateInInventory("TacticalBaconCan");
  337.         player.GetInventory().CreateInInventory("TacticalBaconCan");
  338.         player.GetInventory().CreateInInventory("CanOpener");
  339.         player.GetInventory().CreateInInventory("BandageDressing");
  340.         player.GetInventory().CreateInInventory("BandageDressing");
  341.         player.GetInventory().CreateInInventory("DuctTape");
  342.         player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  343.         player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  344.         player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  345.         player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  346.         player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
  347.         player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
  348.         player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
  349.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  350.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  351.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  352.         player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
  353.         player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
  354.        
  355.         EntityAI ghilly_flashlight = player.GetHumanInventory().CreateInInventory("Flashlight");
  356.         ghilly_flashlight.GetInventory().CreateAttachment("Battery9V");
  357.        
  358.         // Marakov
  359.         EntityAI ghillie_marakov = player.GetHumanInventory().CreateInInventory("MakarovIJ70");
  360.         ghillie_marakov.GetInventory().CreateAttachment("PistolSuppressor");
  361.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  362.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  363.        
  364.         /*!  - Not working jet
  365.         //Glock19
  366.         EntityAI Glock_ghilly = player.GetHumanInventory().CreateInInventory("Glock19");
  367.         Glock_ghilly.GetInventory().CreateAttachment("PistolSuppressor");
  368.         player.GetInventory().CreateInInventory("Mag_Glock_15Rnd");
  369.         player.GetInventory().CreateInInventory("Mag_Glock_15Rnd");
  370.         player.GetInventory().CreateInInventory("Mag_VSS_10Rnd");
  371.         player.GetInventory().CreateInInventory("Mag_VSS_10Rnd");
  372.         ItemBase sp6_ammo0 = player.GetInventory().CreateInInventory("Ammo_9x39");
  373.         sp6_ammo0.SetQuantity(20);
  374.         ItemBase sp6_ammo1 = player.GetInventory().CreateInInventory("Ammo_9x39");
  375.         sp6_ammo1.SetQuantity(20);
  376.         // Vss - Not working jet
  377.         EntityAI vss = player.GetHumanInventory().CreateInHands("VSS");
  378.         vss.GetInventory().CreateAttachment("GhillieAtt_Woodland");
  379.         vss.GetInventory().CreateAttachment("PSO11Optic");
  380.         // Rangefinder
  381.         EntityAI Tools_rangefinder = player.GetHumanInventory().CreateInInventory("Rangefinder");
  382.         Tools_rangefinder.GetInventory().CreateAttachment("Battery9V");
  383.         */
  384.        
  385.         // Fireaxe
  386.         EntityAI Fireaxe_ghilly = player.GetHumanInventory().CreateInInventory("FirefighterAxe_Green");
  387.     } else {
  388.         switch (Math.RandomInt(3, 11)) {
  389.             case 0:
  390.             // Knight
  391.             player.RemoveAllItems();
  392.             player.GetInventory().CreateInInventory("TaloonBag_Blue");
  393.             player.GetInventory().CreateInInventory("GreatHelm");
  394.             player.GetInventory().CreateInInventory("Kiwi");
  395.             player.GetInventory().CreateInInventory("Kiwi");
  396.             player.GetInventory().CreateInInventory("SodaCan_cola");
  397.             player.GetInventory().CreateInInventory("SodaCan_spite");
  398.             EntityAI Melee_Sword = player.GetInventory().CreateInInventory("Sword");
  399.             break;
  400.  
  401.             case 1:
  402.             // Miner
  403.             player.RemoveAllItems();
  404.             player.GetInventory().CreateInInventory("TaloonBag_Green");
  405.             player.GetInventory().CreateInInventory("WorkingGloves_Yellow");
  406.             player.GetInventory().CreateInInventory("Apple");
  407.             player.GetInventory().CreateInInventory("Apple");
  408.             player.GetInventory().CreateInInventory("SodaCan_Pipsi");
  409.             player.GetInventory().CreateInInventory("SodaCan_cola");
  410.             player.GetInventory().CreateInInventory("SpaghettiCan");
  411.             EntityAI Melee_Pickaxe = player.GetHumanInventory().CreateInInventory("Pickaxe");
  412.             break;
  413.            
  414.             case 2:
  415.             // Lumberjack
  416.             player.RemoveAllItems();
  417.             player.GetInventory().CreateInInventory("Shirt_RedCheck");
  418.             player.GetInventory().CreateInInventory("WorkingGloves_Brown");
  419.             player.GetInventory().CreateInInventory("Jeans_Blue");
  420.             player.GetInventory().CreateInInventory("WorkingBoots_Brown");
  421.             player.GetInventory().CreateInInventory("Ushanka_Green");
  422.             EntityAI Melee_woodaxe = player.GetHumanInventory().CreateInInventory("WoodAxe");
  423.             break;
  424.            
  425.             case 4:
  426.             // firefighter
  427.             player.RemoveAllItems();
  428.             player.GetInventory().CreateInInventory("FirefightersPants_Black");
  429.             player.GetInventory().CreateInInventory("FirefighterJacket_Black");
  430.             player.GetInventory().CreateInInventory("FirefightersHelmet_Red");
  431.             player.GetInventory().CreateInInventory("WorkingGloves_Black");
  432.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  433.             player.GetInventory().CreateInInventory("SodaCan_Pipsi");
  434.             player.GetInventory().CreateInInventory("SodaCan_Cola");
  435.             player.GetInventory().CreateInInventory("BakedBeansCan");
  436.             EntityAI Melee_Fireaxe = player.GetInventory().CreateInInventory("FirefighterAxe_Black");
  437.             break;
  438.            
  439.             case 5:
  440.             // armyman
  441.             player.RemoveAllItems();
  442.             player.GetInventory().CreateInInventory("TTSKOPants");
  443.             player.GetInventory().CreateInInventory("TTsKOJacket_Camo");
  444.             player.GetInventory().CreateInInventory("TacticalGloves_Green");
  445.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  446.             player.GetInventory().CreateInInventory("ImprovisedBag");
  447.             player.GetInventory().CreateInInventory("CombatKnife");
  448.             player.GetInventory().CreateInInventory("SodaCan_Cola");
  449.             player.GetInventory().CreateInInventory("SodaCan_Pipsi");
  450.             player.GetInventory().CreateInInventory("TacticalBaconCan");
  451.             player.GetInventory().CreateInInventory("BandageDressing");
  452.             player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  453.             player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  454.             // Army_porta
  455.             EntityAI portable1 = player.GetHumanInventory().CreateInInventory("PersonalRadio");
  456.             portable1.GetInventory().CreateAttachment("Battery9V");
  457.             break;
  458.  
  459.             case 6:
  460.             // paramedic
  461.             player.RemoveAllItems();           
  462.             player.GetInventory().CreateInInventory("TaloonBag_Black");
  463.             player.GetInventory().CreateInInventory("ParamedicPants_Green");
  464.             player.GetInventory().CreateInInventory("ParamedicJacket_Green");
  465.             player.GetInventory().CreateInInventory("Athleticshoes_Grey");
  466.             player.GetInventory().CreateInInventory("KitchenKnife");
  467.             player.GetInventory().CreateInInventory("TaloonBag_Red");
  468.             player.GetInventory().CreateInInventory("Canteen");
  469.             player.GetInventory().CreateInInventory("SalineBagIV");
  470.             player.GetInventory().CreateInInventory("BandageDressing");
  471.             player.GetInventory().CreateInInventory("Morphine");
  472.             player.GetInventory().CreateInInventory("BloodBagIV");
  473.             player.GetInventory().CreateInInventory("Morphine");
  474.             player.GetInventory().CreateInInventory("KitchenKnife");
  475.             break;
  476.  
  477.            
  478.             case 7:
  479.             // Hunter Autumn
  480.             player.RemoveAllItems();
  481.             player.GetInventory().CreateInInventory("HunterPants_Autumn");
  482.             player.GetInventory().CreateInInventory("HuntingJacket_Autumn");
  483.             player.GetInventory().CreateInInventory("TacticalGloves_Black");
  484.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  485.             player.GetInventory().CreateInInventory("HuntingKnife");
  486.             player.GetInventory().CreateInInventory("ImprovisedBag");
  487.             break;
  488.  
  489.  
  490.             case 8:
  491.             // hunter Spring
  492.             player.RemoveAllItems();
  493.             player.GetInventory().CreateInInventory("HuntingJacket_Spring");
  494.             player.GetInventory().CreateInInventory("HunterPants_Spring");
  495.             player.GetInventory().CreateInInventory("TacticalGloves_Green");
  496.             player.GetInventory().CreateInInventory("HuntingJacket_Spring");
  497.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  498.             player.GetInventory().CreateInInventory("ImprovisedBag");
  499.             player.GetInventory().CreateInInventory("HuntingKnife");
  500.             player.GetInventory().CreateInInventory("Canteen");
  501.             player.GetInventory().CreateInInventory("TacticalBaconCan");
  502.             player.GetInventory().CreateInInventory("TacticalBaconCan");
  503.             break;
  504.            
  505.             case 9:
  506.             // Cop
  507.             player.RemoveAllItems();
  508.             player.GetInventory().CreateInInventory("PoliceJacket");
  509.             player.GetInventory().CreateInInventory("PolicePants");
  510.             player.GetInventory().CreateInInventory("CombatBoots_Grey");
  511.             player.GetInventory().CreateInInventory("Apple");
  512.             player.GetInventory().CreateInInventory("Apple");
  513.             player.GetInventory().CreateInInventory("Apple");
  514.             // Porto
  515.             EntityAI Police_porto = player.GetHumanInventory().CreateInInventory("PersonalRadio");
  516.             Police_porto.GetInventory().CreateAttachment("Battery9V");
  517.             // flashlight
  518.             EntityAI Police_flashlight = player.GetHumanInventory().CreateInInventory("Flashlight");
  519.             Police_flashlight.GetInventory().CreateAttachment("Battery9V");
  520.             break;
  521.            
  522.             case 10:
  523.             // Biker
  524.             player.RemoveAllItems();
  525.             player.GetInventory().CreateInInventory("Jeans_Black");
  526.             player.GetInventory().CreateInInventory("RidersJacket_Black");
  527.             player.GetInventory().CreateInInventory("MotoHelmet_Black");
  528.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  529.             player.GetInventory().CreateInInventory("WorkingGloves_Black");
  530.             player.GetInventory().CreateInInventory("HuntingKnife");
  531.             player.GetInventory().CreateInInventory("BaseballBat");
  532.             break;
  533.            
  534.             case 11:
  535.             // mule
  536.             player.RemoveAllItems();
  537.             player.GetInventory().CreateInInventory("Jeans_Black");
  538.             player.GetInventory().CreateInInventory("Hoodie_Black");
  539.             player.GetInventory().CreateInInventory("AliceBag_Black");
  540.             player.GetInventory().CreateInInventory("Wellies_Black");
  541.             player.GetInventory().CreateInInventory("SodaCan_cola");
  542.             player.GetInventory().CreateInInventory("SodaCan_cola");
  543.             player.GetInventory().CreateInInventory("SodaCan_spite");
  544.             player.GetInventory().CreateInInventory("SodaCan_spite");
  545.             player.GetInventory().CreateInInventory("SodaCan_Kvass");
  546.             player.GetInventory().CreateInInventory("SodaCan_Kvass");
  547.             player.GetInventory().CreateInInventory("SodaCan_pipsi");
  548.             player.GetInventory().CreateInInventory("SodaCan_pipsi");
  549.             player.GetInventory().CreateInInventory("SpaghettiCan_Opened");
  550.             player.GetInventory().CreateInInventory("SpaghettiCan_Opened");
  551.             player.GetInventory().CreateInInventory("Apple");
  552.             player.GetInventory().CreateInInventory("Apple");
  553.             player.GetInventory().CreateInInventory("Apple");
  554.             player.GetInventory().CreateInInventory("Apple");
  555.             player.GetInventory().CreateInInventory("AmmoBox_00buck_10rnd");
  556.             player.GetInventory().CreateInInventory("AmmoBox_00buck_10rnd");
  557.             player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
  558.             player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
  559.             player.GetInventory().CreateInInventory("AmmoBox_45ACP_25rnd");
  560.             player.GetInventory().CreateInInventory("AmmoBox_45ACP_25rnd");
  561.             player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  562.             player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  563.             player.GetInventory().CreateInInventory("AmmoBox_762x39_20Rnd");
  564.             player.GetInventory().CreateInInventory("AmmoBox_762x39_20Rnd");
  565.             player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  566.             player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  567.             player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
  568.             player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
  569.             ItemBase sp6_ammo2 = player.GetInventory().CreateInInventory("Ammo_9x39");
  570.             sp6_ammo2.SetQuantity(20);
  571.             ItemBase sp6_ammo3 = player.GetInventory().CreateInInventory("Ammo_9x39");
  572.             sp6_ammo3.SetQuantity(20);
  573.             break;
  574.            
  575.            
  576.             case 12:
  577.             // Woodsman
  578.             player.RemoveAllItems();
  579.             player.GetInventory().CreateInInventory("BandanaMask_CamoPattern");
  580.             player.GetInventory().CreateInInventory("HuntingJacket_Autumn");
  581.             player.GetInventory().CreateInInventory("HunterPants_Autumn");
  582.             player.GetInventory().CreateInInventory("BaseballCap_Cammo");
  583.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  584.             player.GetInventory().CreateInInventory("ImprovisedBag");
  585.             player.GetInventory().CreateInInventory("HuntingKnife");
  586.             player.GetInventory().CreateInInventory("HuntingKnife");
  587.             player.GetInventory().CreateInInventory("BaseballCap_Cammo");
  588.             player.GetInventory().CreateInInventory("Mag_Arrows_Quiver");
  589.             player.GetInventory().CreateInInventory("RecurveBow");
  590.             player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
  591.             ItemBase Arrow_ammo0 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
  592.             Arrow_ammo0.SetQuantity(5);
  593.             ItemBase Arrow_ammo1 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
  594.             Arrow_ammo1.SetQuantity(5);
  595.             ItemBase Arrow_ammo2 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
  596.             Arrow_ammo1.SetQuantity(5);
  597.             break;
  598.         }
  599.        
  600.         // Rags
  601.         ItemBase Items_Rags = player.GetInventory().CreateInInventory("Rag");
  602.         Items_Rags.SetQuantity(Math.RandomInt(3, 6));//WoodenPlank
  603.        
  604.         // Marakov
  605.         EntityAI default_marakov = player.GetHumanInventory().CreateInInventory("MakarovIJ70");
  606.         default_marakov.GetInventory().CreateAttachment("PistolSuppressor");
  607.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  608.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  609.        
  610.         // AK74
  611.         EntityAI default_AK74_Black = player.GetHumanInventory().CreateInHands("AK74_Black");
  612.         default_AK74_Black.GetInventory().CreateAttachment("AK74_Hndgrd_Black");
  613.         default_AK74_Black.GetInventory().CreateAttachment("AK74_WoodBttstck_Black");
  614.         player.GetInventory().CreateInInventory("Mag_AK74_30Rnd_Black");
  615.         player.GetInventory().CreateInInventory("Mag_AK74_30Rnd_Black");
  616.     }
  617.     }
  618. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement