Malotru
Members-
Content Count
11 -
Joined
-
Last visited
-
My basic Chat Commands Admin *test 1. Replace all init.c https://github.com/Malotruu/DayZMalotru.chernarusplus/blob/master/init.c 2. Edit L - 53 *Optional spawn admin vybor // your Steam ID 3.ingame #login yourpasse 4.ingame !heal !v3s !m4a1 …. *I am very bad at coding just fun test work for me command: https://github.com/Malotruu/DayZMalotru.chernarusplus/wiki I delete if does not work
-
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 , 1.0 ); weather.GetFog().SetLimits( 0.0 , 0.25 ); weather.GetOvercast().SetForecastChangeLimits( 0.0, 0.2 ); weather.GetRain().SetForecastChangeLimits( 0.0, 0.1 ); 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(30); weather.SetWindFunctionParams(0.1, 1.0, 50); } class CustomMission: MissionServer { void SetRandomHealth(EntityAI itemEnt) { int rndHlt = Math.RandomInt(40,100); itemEnt.SetHealth("","",rndHlt); } override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt; playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");//Creates random player Class.CastTo(m_player, playerEnt); GetGame().SelectPlayer(identity, m_player); return m_player; } //<!--------------------------------- ADMIN --------------------------------> override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { bool IsAdmin = false; string SteamId_Malotru = "76561198122445830"; // Steam id if (player.GetIdentity().GetPlainId() == SteamId_Malotru){IsAdmin = true;} if (IsAdmin){ player.RemoveAllItems(); // Remove All Items player.GetStatWater().Set(1000); // Water 100% player.SetHealth(100); // Health 100% player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); // TTsKO Jacket Camo player.GetInventory().CreateInInventory("HighCapacityVest_Olive"); // HighCapacityVest Olive player.GetInventory().CreateInInventory("TTSKOPants"); // TTSKO Pants player.GetInventory().CreateInInventory("CombatBoots_Green"); // CombatBoots Green player.GetInventory().CreateInInventory("Chemlight_Green"); // Chemlight Green player.GetInventory().CreateInInventory("CombatKnife"); // Combat Knife player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Rag"); // Rag EntityAI Makaa = player.GetInventory().CreateInInventory("MakarovIJ70"); // MakarovIJ70 Makaa.GetInventory().CreateAttachment("PistolSuppressor"); // Suppressor player.SetPosition("4107.80 342.7 11205.29"); // Position Vybor airport //<!-------------------------------- PLAYER --------------------------------> } else { switch (Math.RandomInt(0, 1)) { // Activate all classes (0, 6) case 0: EntityAI itemEnt; player.GetInventory().CreateInInventory("Roadflare"); // Roadflare ItemBase rags0 = player.GetInventory().CreateInInventory("Rag"); // Rag rags0.SetQuantity(4); SetRandomHealth(itemEnt); break; } } } }; Mission CreateCustomMission(string path) { return new CustomMission(); } tried this quickly my init light
-
my code /*---------------------------------------------------------------------------------------------------------------------\ | Starting Equip Setup | \---------------------------------------------------------------------------------------------------------------------*/ //<!--------------------------------- ADMIN --------------------------------> override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { bool IsAdmin = false; string SteamId_Malotru = "76561198122445830"; // Steam id if (player.GetIdentity().GetPlainId() == SteamId_Malotru){IsAdmin = true;} if (IsAdmin){ player.RemoveAllItems(); // Remove All Items player.GetStatWater().Set(1000); // Water 100% player.SetHealth(100); // Health 100% player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); // TTsKO Jacket Camo player.GetInventory().CreateInInventory("HighCapacityVest_Olive"); // HighCapacityVest Olive player.GetInventory().CreateInInventory("TTSKOPants"); // TTSKO Pants player.GetInventory().CreateInInventory("CombatBoots_Green"); // CombatBoots Green player.GetInventory().CreateInInventory("Chemlight_Green"); // Chemlight Green player.GetInventory().CreateInInventory("CombatKnife"); // Combat Knife player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Rag"); // Rag EntityAI Makaa = player.GetInventory().CreateInInventory("MakarovIJ70"); // MakarovIJ70 Makaa.GetInventory().CreateAttachment("PistolSuppressor"); // Suppressor player.SetPosition("4107.80 342.7 11205.29"); // Position Vybor airport //<!-------------------------------- PLAYER --------------------------------> } else { switch (Math.RandomInt(0, 1)) { // Activate all classes (0, 6) //<!-------------------------------- Normal --------------------------------> case 0: EntityAI itemEnt; player.GetInventory().CreateInInventory("Roadflare"); // Roadflare ItemBase rags0 = player.GetInventory().CreateInInventory("Rag"); // Rag rags0.SetQuantity(4); SetRandomHealth(itemEnt); break; //<!-------------------------------- Prisoner ------------------------------> case 1: player.RemoveAllItems(); // Remove All Items player.SetHealth(60); // Health 60% player.GetStatStamina().Set(100); // Stamina 10% player.GetStatEnergy().Set(900); // Energy 90% player.GetStatWater().Set(800); // Water 80% player.GetInventory().CreateInInventory("PrisonerCap"); // Prisoner Cap player.GetInventory().CreateInInventory("PrisonUniformJacket"); // PrisonUniform Jacket player.GetInventory().CreateInInventory("PrisonUniformPants"); // PrisonUniform Pants player.GetInventory().CreateInInventory("WorkingBoots_Grey"); // WorkingBoots Grey player.GetInventory().CreateInInventory("StoneKnife"); // Stone Knife player.GetHumanInventory().CreateInHands("Rope"); // Rope player.SetPosition("2763.1 26.7 1307.1"); // Position Prison Island break; //<!-------------------------------- Fire ----------------------------------> case 2: player.RemoveAllItems(); // Remove All Items player.GetInventory().CreateInInventory("FirefightersHelmet_Red"); // FirefightersHelmet Red player.GetInventory().CreateInInventory("FirefighterJacket_Black"); // FirefighterJacket Black player.GetInventory().CreateInInventory("FirefightersPants_Black"); // FirefightersPants Black player.GetInventory().CreateInInventory("Wellies_Black"); // Wellies Black player.GetInventory().CreateInInventory("Morphine"); // Morphine player.GetInventory().CreateInInventory("SodaCan_Cola"); // Cola player.GetInventory().CreateInInventory("FireExtinguisher"); // FireExtinguisher player.GetHumanInventory().CreateInHands("FirefighterAxe"); // Firefighter Axe ItemBase rags2 = player.GetInventory().CreateInInventory("Rag"); // Rag rags2.SetQuantity(4); break; //<!-------------------------------- Medic ---------------------------------> case 3: player.RemoveAllItems(); // Remove All Items player.GetInventory().CreateInInventory("ParamedicJacket_Crimson"); // Paramedic Jacket Crimson player.GetInventory().CreateInInventory("ParamedicPants_Crimson"); // Paramedic Pants Crimson player.GetInventory().CreateInInventory("Sneakers_Red"); // Sneakers Red player.GetInventory().CreateInInventory("FirstAidKit"); // FirstAid Kit player.GetInventory().CreateInInventory("SalineBagIV"); // Saline Bag IV player.GetInventory().CreateInInventory("Morphine"); // Morphine player.GetInventory().CreateInInventory("Epinephrine"); // Epinephrine player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("SodaCan_Cola"); // Cola EntityAI Defibrillator3 = player.GetHumanInventory().CreateInHands("Defibrillator"); // Defibrillator Defibrillator3.GetInventory().CreateAttachment("Battery9V"); // Battery 9V break; //<!-------------------------------- Police --------------------------------> case 4: player.RemoveAllItems(); // Remove All Items player.GetInventory().CreateInInventory("PoliceCap"); // Police Cap player.GetInventory().CreateInInventory("PoliceVest"); // Police Vest player.GetInventory().CreateInInventory("PoliceJacket"); // Police Jacket player.GetInventory().CreateInInventory("PolicePants"); // Police Pants player.GetInventory().CreateInInventory("CombatBoots_Black"); // Combat Boots Black player.GetInventory().CreateInInventory("Handcuffs"); // Handcuffs player.GetInventory().CreateInInventory("HandcuffKeys"); // Handcuff Keys player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("SodaCan_Kvass"); // Kvass player.GetInventory().CreateInInventory("Roadflare"); // Roadflare EntityAI Radio4 = player.GetInventory().CreateInInventory("PersonalRadio"); // Radio Radio4.GetInventory().CreateAttachment("Battery9V"); // Battery 9V EntityAI light4 = player.GetInventory().CreateInInventory("Flashlight"); // Flashlight light4.GetInventory().CreateAttachment("Battery9V"); // Battery 9V player.GetHumanInventory().CreateInHands("PoliceBaton"); // PoliceBaton break; //<!-------------------------------- Sniper --------------------------------> case 5: player.RemoveAllItems(); // Remove All Items player.GetStatWater().Set(1000); // Water 100% player.GetInventory().CreateInInventory("GasMask"); // Gas Mask player.GetInventory().CreateInInventory("TacticalGloves_Green"); // Tactical Gloves Green player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); // TTsKO Jacket Camo player.GetInventory().CreateInInventory("HighCapacityVest_Olive"); // HighCapacityVest Olive player.GetInventory().CreateInInventory("TTSKOPants"); // TTSKO Pants player.GetInventory().CreateInInventory("CombatBoots_Green"); // Combat Boots Green player.GetInventory().CreateInInventory("GhillieHood_Mossy"); // Ghillie Hood player.GetInventory().CreateInInventory("GhillieSuit_Mossy"); // Ghillie Suit player.GetInventory().CreateInInventory("Binoculars"); // Binoculars player.GetInventory().CreateInInventory("Lockpick"); // Lockpick player.GetInventory().CreateInInventory("ChernarusMap"); // Chernarus Map player.GetInventory().CreateInInventory("Morphine"); // Morphine player.GetInventory().CreateInInventory("Epinephrine"); // Epinephrine player.GetInventory().CreateInInventory("Battery9V"); // Battery 9V player.GetInventory().CreateInInventory("Compass"); // Compass player.GetInventory().CreateInInventory("Chemlight_Green"); // Chemlight Green player.GetInventory().CreateInInventory("Rope"); // Rope player.GetInventory().CreateInInventory("CombatKnife"); // Combat Knife player.GetInventory().CreateInInventory("DuctTape"); // DuctTape player.GetInventory().CreateInInventory("WaterBottle"); // WaterBottle player.GetInventory().CreateInInventory("WaterBottle"); // WaterBottle player.GetInventory().CreateInInventory("SpaghettiCan"); // Spaghetti player.GetInventory().CreateInInventory("SpaghettiCan"); // Spaghetti player.GetInventory().CreateInInventory("Matchbox"); // Matchbox player.GetInventory().CreateInInventory("Cannabis"); // Cannabis player.GetInventory().CreateInInventory("Cannabis"); // Cannabis player.GetInventory().CreateInInventory("Cannabis"); // Cannabis player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD EntityAI Maka5 = player.GetInventory().CreateInInventory("MakarovIJ70"); // MakarovIJ70 Maka5.GetInventory().CreateAttachment("PistolSuppressor"); // Suppressor EntityAI SVD5 = player.GetHumanInventory().CreateInHands("SVD"); // SVD SVD5.GetInventory().CreateAttachment("GhillieAtt_Woodland"); // Ghillie Weapons SVD5.GetInventory().CreateAttachment("PSO1Optic"); // PSO1 optique ItemBase rags5 = player.GetInventory().CreateInInventory("Rag"); // Rag rags5.SetQuantity(6); break; } } }
-
DayZServer\dta\scripts.pbo\3_Game\constants.c - L337 sinon sur mon serveur j'utilise TickScheduler des safzone pour la stamina illimité
-
Twitter Dayz We are aware of the current issues with crafting and the resulting irony in the previous tweet. The issue will be fixed tomorrow. Stay strong and you will survive the night!
-
part contre impossible pour moi de me connecter en admin avec #login Vous aussi ?
-
sur mon serveur les élimant son bien la <type name="Barrel_Blue"> <nominal>60</nominal> <lifetime>3888000</lifetime> <restock>0</restock> <min>20</min> <quantmin>-1</quantmin> <quantmax>-1</quantmax> <cost>100</cost> <flags count_in_cargo="1" count_in_hoarder="0" count_in_map="1" count_in_player="1" crafted="0" deloot="0"/> <category name="tools"/> <tag name="floor"/> <usage name="Industrial"/> </type> <type name="MetalPlate"> <nominal>60</nominal> <lifetime>7200</lifetime> <restock>0</restock> <min>40</min> <quantmin>-1</quantmin> <quantmax>-1</quantmax> <cost>100</cost> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> <category name="tools"/> <tag name="floor"/> <usage name="Industrial"/> </type> <type name="MetalWire"> <nominal>60</nominal> <lifetime>7200</lifetime> <restock>0</restock> <min>40</min> <quantmin>-1</quantmin> <quantmax>-1</quantmax> <cost>100</cost> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> <category name="tools"/> <usage name="Industrial"/> <usage name="Farm"/> <usage name="Village"/> </type>
-
mpmissions\dayzOffline.chernarusplus\db\economy.xml <economy> <dynamic init="1" load="1" respawn="1" save="1"/> <!-- persistance Barrel --> <animals init="1" load="0" respawn="1" save="0"/> <zombies init="1" load="0" respawn="1" save="0"/> <vehicles init="1" load="1" respawn="1" save="1"/> <randoms init="0" load="0" respawn="1" save="0"/> <custom init="0" load="0" respawn="0" save="0"/> <building init="0" load="0" respawn="0" save="0"/> <player init="1" load="1" respawn="0" save="1"/> </economy>
-
<nom value = "Tier1" /> <name value = "Tier2" /> <nom de la valeur = "Tier3" /> <nom de la valeur = "Tier4" />
-
<type name="Barrel_Red"> <nominal>500</nominal> <lifetime>3888000</lifetime> <restock>0</restock> <min>10</min> <quantmin>-1</quantmin> <quantmax>-1</quantmax> <cost>100</cost> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> <category name="containers"/> <!-- Catégorie d'apparition de butin - (liens vers mapgroupproto.xml) --> <usage name="Industrial"/> <!-- Zone d'apparition Industriel --> </type>
-
<type name="SeaChest"> <nominal>15</nominal> <lifetime>3888000</lifetime> <restock>0</restock> <min>10</min> <quantmin>-1</quantmin> <quantmax>-1</quantmax> <cost>100</cost> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> <category name="containers"/> <usage name="Industrial"/> </type>