Jump to content

Mostabdel

Members
  • Content Count

    91
  • Joined

  • Last visited

Everything posted by Mostabdel

  1. Mostabdel

    Fal Dont Found

    Hi All after this update of the 1.02 and the add of new weapon like winchester & Fal in Our Server Dont Found or find a Fal its normal . i add it in type.xml help pls ..!!!
  2. Mostabdel

    Fal Dont Found

    thx
  3. Mostabdel

    Fal Dont Found

    thx i will try this
  4. Mostabdel

    Stable Update 1.02

    we dont find a Fal or FAL dont spawn its normal ?
  5. Mostabdel

    Stable Update 1.02

    many lags and beug realy
  6. Mostabdel

    What is Mean This Script

    void Set(ChatMessageEventParams params) // Param 1 --> Channel, Param 2 --> sender name, Param 3 --> message, Param 4 ?? { int channel; m_NameWidget.SetText(""); m_TextWidget.SetText(""); SetColour(DEFAULT_COLOUR); m_RootWidget.Show(true); channel = params.param1; // 0 = Survior 1 = Game/System 2 = Admin Print(channel); /* if (params.param2 != "") { m_NameWidget.SetText( params.param2 + " : "); } if( channel & CCSystem ) { if(params.param2 != "") { m_NameWidget.SetText(GAME_PREFIX + ": " ); } SetColour(GAME_TEXT_COLOUR); } else if( channel & CCAdmin ) { m_NameWidget.SetText(ADMIN_PREFIX + ": "); SetColour(ADMIN_TEXT_COLOUR); } else if( channel & CCTransmitter ) { m_NameWidget.SetText(RADIO_PREFIX + params.param2 + " : "); } */ if ( channel & CCSystem ) { // Game if(params.param2 != "") { m_NameWidget.SetText(GAME_PREFIX + ": " ); } SetColour(GAME_TEXT_COLOUR); } else if ( channel & CCAdmin ) { // Admin m_NameWidget.SetText(ADMIN_PREFIX + ": "); SetColour(ADMIN_TEXT_COLOUR); } else if ( channel & CCTransmitter ) { // Radio - Trasnmitter m_NameWidget.SetText(RADIO_PREFIX + params.param2 + " : "); } else if ( channel == 0 || channel & CCDirect ) { // Player if(params.param2 != "") { m_NameWidget.SetText(params.param2 + " : "); } } m_TextWidget.SetText(params.param3); m_FadeTimer.FadeIn(m_RootWidget, FADE_IN_DURATION); m_TimeoutTimer.Run(FADE_TIMEOUT, m_FadeTimer, "FadeOut", new Param2<Widget, float>(m_RootWidget, FADE_OUT_DURATION)); } private void SetColour(int colour) { m_NameWidget.SetColor(colour); m_TextWidget.SetColor(colour); } void Clear() { m_RootWidget.Show( false ); m_TimeoutTimer.Stop(); m_FadeTimer.Stop(); }
  7. Mostabdel

    Stable Update 1.0150627

    what with vilayer must reinstal the server or what ? i make update with steamcmd but stil dont work and tell me bad version
  8. Mostabdel

    Stable Update 1.0150627

    what hapen with vilayer we cant make this update and server autorestart all time ? what can i do now ?
  9. Mostabdel

    Vehicles spawn repaired - How to do?

    Who can tell me what is mean this ? Fill( CarFluid.FUEL, 50 ); Fill( CarFluid.COOLANT, 6.0 ); Fill( CarFluid.OIL, 4.0 );
  10. Mostabdel

    Log Crash Server

    What it mean this messages in file log Crash : NULL pointer to instance. Variable 'PlayerObject' Class: 'PermissionsFramework' Function: 'ReloadPlayerList' Stack trace: JM/PermissionsFramework/Scripts/5_Mission/permissionsframework.c:138 scripts/3_Game/dayzgame.c:1669 and : [cheat] HandleInputData man=SurvivorBase<53e48160> is cheating with cmd=HAND_EVENT event=HandEventTake<f9937690> Class: 'DayZPlayerInventory' Function: 'Error' Stack trace: scripts/1_Core/proto\endebug.c:44 scripts/4_World/systems\inventory\dayzplayerinventory.c:384 scripts/4_World/systems\inventory\dayzplayerinventory.c:292
  11. Mostabdel

    Scripters Question & Answer Thread

    hi all who can help me with script to have cars spawn with full fuild ? !! thx for all
  12. Mostabdel

    file .ADM

    how can i find the file .ADM with server Vilayer ? pls help
  13. Mostabdel

    car spawn full

    how i can change this for have cars spawn full FUEL, OIL, BRAKE & COOLANT ? override void OnFluidChanged( CarFluid fluid, float newValue, float oldValue ) { switch ( fluid ) { case CarFluid.FUEL: m_FuelAmmount = newValue; break; case CarFluid.OIL: m_OilAmmount = newValue; break; case CarFluid.BRAKE: m_BrakeAmmount = newValue; break; case CarFluid.COOLANT: m_CoolantAmmount = newValue; break; } } help pls !!!
  14. Mostabdel

    Vanilla++ v 0.4

    how can i add rags to new players spawn in the mod ?
  15. Mostabdel

    Vanilla++ v 0.4

    so what can i do ?
  16. Mostabdel

    Remove Vehicle Damage since update

    can I add water to the car at the spawn? with Essence and Oil
  17. Mostabdel

    Persistence Files?

    i agree that
  18. Mostabdel

    DayZLauncher Ceash

    hi all if some one can help me. my DayZLauncher crash after 5s whene i start it i dont known why ? !!!
  19. Mostabdel

    DayZLauncher Ceash

    i need it to activate admin tools on line
  20. Mostabdel

    cfgplayerspawnpoints dont work

    Hi All i see that cfgplayerspawnpoints.XML dont work. i just change spawns of players in our server and dont work why. ? help pls
  21. Mostabdel

    cfgplayerspawnpoints dont work

    thx :)
  22. Mostabdel

    Help to edit init.c

    Quelqu'un peut m'aider à changer cette init.c pour ne pas avoir de pluie sur le serveur (0 pluie, 0 brouillard, 0 couvert) and if i can change it in weather.c ? what can i change to have no rain, no fog and no overcast !!! thx
  23. Mostabdel

    Persistance down

    why this noobs devs take so long time to fix this beug of persistance and they lanch game in 1.0 whit this beug realy they are very very very very pro devs pffffffffffffff
  24. Mostabdel

    Server Persistance Still Broken

    why you take so long time to fix persistance pffffff i dont understand you lanch game in 1.0 with beug of persistance wowwww you are very very pro devs pffffffffffff
  25. Mostabdel

    Need Help with this script

    Hi all i have change this script and i need help if it work or no ? 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.5, 0.8 ); weather.GetRain().SetForecastChangeLimits( 0.1, 0.3 ); weather.GetFog().SetForecastChangeLimits( 0.05, 0.10 ); weather.GetOvercast().SetForecastTimeLimits( 3600 , 3600 ); weather.GetRain().SetForecastTimeLimits( 300 , 300 ); weather.GetFog().SetForecastTimeLimits( 3600 , 3600 ); 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 { 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; } 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(); Param1<string> m_MessageParam = new Param1<string>(messPlayers); GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, m_MessageParam, true, player.GetIdentity()); Param1<string> empty = new Param1<string>(" "); GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, empty, true, player.GetIdentity()); } } } void addMags(PlayerBase player, string mag_type, int count) { if (count < 1) return; EntityAI mag; for (int i = 0; i < count; i++) { mag = player.GetInventory().CreateInInventory(mag_type); } player.SetQuickBarEntityShortcut(mag, 1, true); } EntityAI Firefighter_BeigeClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("FNX45"); handgun.GetInventory().CreateAttachment("FNP45_MRDSOptic"); EntityAI FNP45_MRDSOptic = FNP45_MRDSOptic.GetInventory().CreateAttachment("Battery9V"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_FNX45_15Rnd", 2); addMags(player, "Ammo_45ACP", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI Firefighter_BeigeClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("FirefighterJacket_Beige"); jacket.GetInventory().CreateInInventory("TacticalBaconCan"); jacket.GetInventory().CreateInInventory("Apple"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Pear"); ItemBase pants = player.GetInventory().CreateInInventory("FirefightersPants_Beige"); pants.GetInventory().CreateInInventory("CombatKnife"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("WorkingBoots_Yellow"); player.GetInventory().CreateInInventory("WorkingGloves_Yellow"); player.GetInventory().CreateInInventory("FirefightersHelmet_Yellow"); player.GetInventory().CreateInInventory("AviatorGlasses"); player.GetInventory().CreateInInventory("FirefighterAxe"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("SmershBag"); player.GetInventory().CreateInInventory("Hammer"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } EntityAI Firefighter_BlackClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("FNX45"); handgun.GetInventory().CreateAttachment("FNP45_MRDSOptic"); EntityAI FNP45_MRDSOptic = FNP45_MRDSOptic.GetInventory().CreateAttachment("Battery9V"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_FNX45_15Rnd", 2); addMags(player, "Ammo_45ACP", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI Firefighter_BlackClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("FirefighterJacket_Black"); jacket.GetInventory().CreateInInventory("Pear"); jacket.GetInventory().CreateInInventory("Pear"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Plum"); ItemBase pants = player.GetInventory().CreateInInventory("FirefightersPants_Black"); pants.GetInventory().CreateInInventory("CombatKnife"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("Wellies_Black"); player.GetInventory().CreateInInventory("WorkingGloves_Black"); player.GetInventory().CreateInInventory("FirefightersHelmet_Red"); player.GetInventory().CreateInInventory("AviatorGlasses"); player.GetInventory().CreateInInventory("Balaclava3Holes_Black"); player.GetInventory().CreateInInventory("FirefighterAxe_Black"); player.GetInventory().CreateInInventory("SmershBag"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("Hammer"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } EntityAI ParamedicClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("CZ75"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_CZ75_15Rnd", 2); addMags(player, "Ammo_9x19", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI ParamedicClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("ParamedicJacket_Blue"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Pear"); jacket.GetInventory().CreateInInventory("CharcoalTablets"); jacket.GetInventory().CreateInInventory("PainkillerTablets"); ItemBase pants = player.GetInventory().CreateInInventory("ParamedicPants_Blue"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("HikingBootsLow_Blue"); player.GetInventory().CreateInInventory("SurgicalGloves_LightBlue"); player.GetInventory().CreateInInventory("Thermometer"); player.GetInventory().CreateInInventory("AviatorGlasses"); player.GetInventory().CreateInInventory("SurgicalMask"); player.GetInventory().CreateInInventory("Morphine"); player.GetInventory().CreateInInventory("SmershBag"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("VitaminBottle"); player.GetInventory().CreateInInventory("Epinephrine"); player.GetInventory().CreateInInventory("TetracyclineAntibiotics"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("SalineBagIV"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(6); return gear; } EntityAI Jumpsuit_BlueClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("MakarovIJ70"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_IJ70_8Rnd", 2); addMags(player, "Ammo_380", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI Jumpsuit_BlueClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("JumpsuitJacket_Blue"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Pear"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Pear"); ItemBase pants = player.GetInventory().CreateInInventory("JumpsuitPants_Blue"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("HikingBootsLow_Blue"); player.GetInventory().CreateInInventory("SurgicalGloves_LightBlue"); player.GetInventory().CreateInInventory("DarkMotoHelmet_Blue"); player.GetInventory().CreateInInventory("SportGlasses_Blue"); player.GetInventory().CreateInInventory("Balaclava3Holes_Blue"); player.GetInventory().CreateInInventory("WoodAxe"); player.GetInventory().CreateInInventory("SmershBag"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("Hammer"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } EntityAI Jumpsuit_GrayClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("FNX45"); handgun.GetInventory().CreateAttachment("FNP45_MRDSOptic"); EntityAI FNP45_MRDSOptic = FNP45_MRDSOptic.GetInventory().CreateAttachment("Battery9V"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_FNX45_15Rnd", 2); addMags(player, "Ammo_45ACP", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI Jumpsuit_GrayClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("JumpsuitJacket_Gray"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Pear"); jacket.GetInventory().CreateInInventory("Pear"); ItemBase pants = player.GetInventory().CreateInInventory("JumpsuitPants_Grey"); pants.GetInventory().CreateInInventory("CombatKnife"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("Sneakers_Gray"); player.GetInventory().CreateInInventory("DesignerGlasses"); player.GetInventory().CreateInInventory("DarkMotoHelmet_Grey"); player.GetInventory().CreateInInventory("PeachesCan"); player.GetInventory().CreateInInventory("NBCGlovesGray"); player.GetInventory().CreateInInventory("WoodAxe"); player.GetInventory().CreateInInventory("SmershBag"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("Hammer"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } EntityAI Jumpsuit_GreenClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("CZ75"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_CZ75_15Rnd", 2); addMags(player, "Ammo_9x19", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI Jumpsuit_GreenClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("JumpsuitJacket_Green"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Pear"); jacket.GetInventory().CreateInInventory("Pear"); ItemBase pants = player.GetInventory().CreateInInventory("JumpsuitPants_Green"); pants.GetInventory().CreateInInventory("CombatKnife"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("Sneakers_Green"); player.GetInventory().CreateInInventory("SportGlasses_Green"); player.GetInventory().CreateInInventory("DarkMotoHelmet_Green"); player.GetInventory().CreateInInventory("PeachesCan"); player.GetInventory().CreateInInventory("SurgicalGloves_Green"); player.GetInventory().CreateInInventory("WoodAxe"); player.GetInventory().CreateInInventory("SmershBag"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("Hammer"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } EntityAI Jumpsuit_RedClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("MakarovIJ70"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_IJ70_8Rnd", 2); addMags(player, "Ammo_380", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI Jumpsuit_RedClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("JumpsuitJacket_Red"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Pear"); jacket.GetInventory().CreateInInventory("Pear"); ItemBase pants = player.GetInventory().CreateInInventory("JumpsuitPants_Red"); pants.GetInventory().CreateInInventory("CombatKnife"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("Sneakers_Red"); player.GetInventory().CreateInInventory("SportGlasses_Orange"); player.GetInventory().CreateInInventory("DarkMotoHelmet_Red"); player.GetInventory().CreateInInventory("PeachesCan"); player.GetInventory().CreateInInventory("Bandana_Redpattern"); player.GetInventory().CreateInInventory("WoodAxe"); player.GetInventory().CreateInInventory("SmershBag"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("Hammer"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } EntityAI NBCGrayClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("CZ75"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_CZ75_15Rnd", 2); addMags(player, "Ammo_9x19", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI NBCGrayClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("NBCJacketGray"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Pear"); jacket.GetInventory().CreateInInventory("Pear"); ItemBase pants = player.GetInventory().CreateInInventory("NBCPantsGray"); pants.GetInventory().CreateInInventory("CombatKnife"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("NBCBootsGray"); player.GetInventory().CreateInInventory("AviatorGlasses"); player.GetInventory().CreateInInventory("NBCHoodGray"); player.GetInventory().CreateInInventory("PeachesCan"); player.GetInventory().CreateInInventory("NBCGlovesGray"); player.GetInventory().CreateInInventory("GP5GasMask"); player.GetInventory().CreateInInventory("WoodAxe"); player.GetInventory().CreateInInventory("SmershBag"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("Hammer"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } EntityAI PrisonClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("MakarovIJ70"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_IJ70_8Rnd", 2); addMags(player, "Ammo_380", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI PrisonClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("PrisonUniformJacket"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Pear"); jacket.GetInventory().CreateInInventory("Pear"); ItemBase pants = player.GetInventory().CreateInInventory("PrisonUniformPants"); pants.GetInventory().CreateInInventory("CombatKnife"); player.GetInventory().CreateInInventory("PrisonerCap"); player.GetInventory().CreateInInventory("PersonalRadio"); player.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("ChestHolster"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(2); return gear; } EntityAI BlackClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("FNX45"); handgun.GetInventory().CreateAttachment("FNP45_MRDSOptic"); EntityAI FNP45_MRDSOptic = FNP45_MRDSOptic.GetInventory().CreateAttachment("Battery9V"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_FNX45_15Rnd", 2); addMags(player, "Ammo_45ACP", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI BlackClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("RidersJacket_Black"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Apple"); jacket.GetInventory().CreateInInventory("Apple"); ItemBase pants = player.GetInventory().CreateInInventory("SlacksPants_Black"); pants.GetInventory().CreateInInventory("Pear"); pants.GetInventory().CreateInInventory("Pear"); player.GetInventory().CreateInInventory("CowboyHat_black"); player.GetInventory().CreateInInventory("SportGlasses_Black"); player.GetInventory().CreateInInventory("DressShoes_Black"); player.GetInventory().CreateInInventory("WorkingGloves_Black"); player.GetInventory().CreateInInventory("Bandana_Blackpattern"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("DryBag_Black"); player.GetInventory().CreateInInventory("PeachesCan"); player.GetInventory().CreateInInventory("WoodAxe"); player.GetInventory().CreateInInventory("Hammer"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } EntityAI LeatherNaturalClass(PlayerBase player) { EntityAI handgun = player.GetHumanInventory().CreateInInventory("CZ75"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_CZ75_15Rnd", 2); addMags(player, "Ammo_9x19", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return handgun; } EntityAI LeatherNaturalClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("LeatherJacket_Natural"); jacket.GetInventory().CreateInInventory("TacticalBaconCan"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Apple"); jacket.GetInventory().CreateInInventory("Apple"); ItemBase pants = player.GetInventory().CreateInInventory("LeatherPants_Natural"); pants.GetInventory().CreateInInventory("CombatKnife"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("LeatherHat_Natural"); player.GetInventory().CreateInInventory("ThinFramesGlasses"); player.GetInventory().CreateInInventory("LeatherShoes_Natural"); player.GetInventory().CreateInInventory("LeatherGloves_Natural"); player.GetInventory().CreateInInventory("Balaclava3Holes_Beige"); player.GetInventory().CreateInInventory("LeatherSack_Natural"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("PeachesCan"); player.GetInventory().CreateInInventory("WoodAxe"); player.GetInventory().CreateInInventory("Hammer"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("NailBox"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } EntityAI PoliceClass(PlayerBase player) { EntityAI gun = player.GetHumanInventory().CreateInHands("CZ61"); gun.GetInventory().CreateAttachment("Suppressor_East"); addMags(player, "Mag_CZ61_20Rnd", 2); addMags(player, "AmmoBox_380_35rnd", 2); EntityAI handgun = player.GetHumanInventory().CreateInInventory("FNX45"); handgun.GetInventory().CreateAttachment("FNP45_MRDSOptic"); EntityAI FNP45_MRDSOptic = FNP45_MRDSOptic.GetInventory().CreateAttachment("Battery9V"); handgun.GetInventory().CreateAttachment("PistolSuppressor"); addMags(player, "Mag_FNX45_15Rnd", 2); addMags(player, "Ammo_45ACP", 1); player.SetQuickBarEntityShortcut(handgun, 1, true); return gun; } EntityAI PoliceClassgear(PlayerBase player) { EntityAI gear; ItemBase jacket = player.GetInventory().CreateInInventory("PoliceJacket"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Plum"); jacket.GetInventory().CreateInInventory("Apple"); jacket.GetInventory().CreateInInventory("Apple"); ItemBase pants = player.GetInventory().CreateInInventory("PolicePants"); pants.GetInventory().CreateInInventory("PersonalRadio"); pants.GetInventory().CreateInInventory("Battery9V"); player.GetInventory().CreateInInventory("PoliceCap"); player.GetInventory().CreateInInventory("AviatorGlasses"); player.GetInventory().CreateInInventory("SurgicalGloves_Blue"); player.GetInventory().CreateInInventory("DressShoes_Black"); player.GetInventory().CreateInInventory("TaloonBag_Blue"); player.GetInventory().CreateInInventory("PoliceVest"); player.GetInventory().CreateInInventory("PeachesCan"); player.GetInventory().CreateInInventory("ChestHolster"); player.GetInventory().CreateInInventory("WoodAxe"); player.GetInventory().CreateInInventory("HandcuffKeys"); player.GetInventory().CreateInInventory("Handcuffs"); player.GetInventory().CreateInInventory("Handcuffs"); player.GetInventory().CreateInInventory("WaterBottle"); player.GetInventory().CreateInInventory("ChernarusMap"); player.GetInventory().CreateInInventory("Compass"); player.GetInventory().CreateInInventory("DuctTape"); player.GetInventory().CreateInInventory("Matchbox"); itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(3); return gear; } override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { player.RemoveAllItems(); EntityAI gear; EntityAI primary; //EntityAI axe = player.GetInventory().CreateInInventory("Morphine"); switch (Math.RandomInt(0, 12)) { case 0: primary = Firefighter_BeigeClass(player); gear = Firefighter_BeigeClassgear(player); break; case 1: primary = Firefighter_BlackClass(player); gear = Firefighter_BlackClassgear(player); break; case 2: primary = ParamedicClass(player); gear = ParamedicClassgear(player); break; case 3: primary = Jumpsuit_BlueClass(player); gear = Jumpsuit_BlueClassgear(player); break; case 4: primary = Jumpsuit_GrayClass(player); gear = Jumpsuit_GrayClassgear(player); break; case 5: primary = Jumpsuit_GreenClass(player); gear = Jumpsuit_GreenClassgear(player); break; case 6: primary = Jumpsuit_RedClass(player); gear = Jumpsuit_RedClassgear(player); break; case 7: primary = NBCGrayClass(player); gear = NBCGrayClassgear(player); break; case 8: primary = PrisonClass(player); gear = PrisonClassgear(player); break; case 9: primary = BlackClass(player); gear = BlackClassgear(player); break; case 10: primary = LeatherNaturalClass(player); gear = LeatherNaturalClassgear(player); break; case 11: primary = PoliceClass(player); gear = PoliceClassgear(player); break; } player.LocalTakeEntityToHands(primary); player.SetQuickBarEntityShortcut(primary, 0, true); }
×