Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

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

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

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

Stay safe out there,
Your DayZ Team

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

    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(); }
  5. 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 );
  6. 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
  7. Mostabdel

    Scripters Question & Answer Thread

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

    file .ADM

    how can i find the file .ADM with server Vilayer ? pls help
  9. 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 !!!
  10. Mostabdel

    Vanilla++ v 0.4

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

    Vanilla++ v 0.4

    so what can i do ?
  12. Mostabdel

    Remove Vehicle Damage since update

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

    Persistence Files?

    i agree that
  14. Mostabdel

    DayZLauncher Ceash

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

    DayZLauncher Ceash

    i need it to activate admin tools on line
  16. 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
  17. Mostabdel

    cfgplayerspawnpoints dont work

    thx :)
  18. 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
  19. 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
  20. 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
  21. 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); }
  22. Mostabdel

    DayZ Server local dont start

    my dayzServer dont start ? 10:11:54 Hôte dédié créé. 10:11:55 [Inputs] Loading inputs cfg "dz/data/inputsdefault/core.xml" 10:11:55 [Inputs] Exporting inputs cfg "C:\Program\Users\Survivor\Server.core.xml" 10:11:59 [ERROR][Server config] :: instanceId parameter is mandatory and must be valid 32-bit integer.
  23. Mostabdel

    Need Help with this script

    no the server dont start
  24. Mostabdel

    Admin Script ?!!!

    hello here is an admin script, but I have a problem when I write an admin command on the chat in game, I receive a battle eye message like whatever I write on the global channel and it gives me 4 messages like its after it kick me. Isn't that normal? need help please...!!!!! bool freecam_active = false; bool verify_admins = false; // true=verify presence of BI UID in admin list string cmd_prefix = "/"; // Must be special character ref TStringArray admins = {""}; // Add your BI UID or SteamID bool IsPlayerAnAdmin(PlayerBase player) { bool found = false; for ( int i = 0; i < admins.Count(); ++i ) { if(player.GetIdentity().GetId() == admins[i] || player.GetIdentity().GetPlainId() == admins[i]) { found=true; break; } } return found; } void SendMessageToPlayer(PlayerBase player, string message) { Param1<string> param = new Param1<string>( message ); GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, param, true, player.GetIdentity()); } bool IsPlayer(string name) { PlayerBase p; array<Man> players = new array<Man>; GetGame().GetPlayers(players); for ( int i = 0; i < players.Count(); ++i ) { p = players.Get(i); if(p.GetIdentity().GetName() == name) return true; } return false; } PlayerBase GetPlayer(string name) { PlayerBase p; array<Man> players = new array<Man>; GetGame().GetPlayers(players); for ( int i = 0; i < players.Count(); ++i ) { p = players.Get(i); if(p.GetIdentity().GetName() == name) return p; } return NULL; } override void OnEvent(EventType eventTypeId, Param params) { int i; PlayerBase player, temp_player; array<Man> players = new array<Man>; GetGame().GetPlayers(players); if(eventTypeId != ChatMessageEventTypeID) { super.OnEvent(eventTypeId,params); return; } ChatMessageEventParams chat_params = ChatMessageEventParams.Cast( params ); if(chat_params.param1 != 0 || chat_params.param2 == "") { super.OnEvent(eventTypeId,params); return; } player = GetPlayer(chat_params.param2); if(player == NULL) { super.OnEvent(eventTypeId,params); return; } string message = chat_params.param3, prefix, param0, command; TStringArray tokens = new TStringArray; message.Replace("` ", "&SPCESC!"); message.Split(" ", tokens); int count = tokens.Count(); for ( i = 0; i < count; ++i ) { message = tokens[i]; message.Replace("&SPCESC!", " "); tokens[i] = message; } param0 = tokens.Get(0); param0.ParseStringEx(prefix); if(prefix != cmd_prefix) { super.OnEvent(eventTypeId,params); return; }; param0.ParseStringEx(command); if(verify_admins && !IsPlayerAnAdmin(player)) { GetGame().AdminLog("[ADMCMD] (Unauthorized) " + player.GetIdentity().GetName() +" ("+player.GetIdentity().GetPlainId()+", "+player.GetIdentity().GetId()+") tried to execute "+ chat_params.param3); return; } GetGame().AdminLog("[ADMCMD] PLAYER: "+ player.GetIdentity().GetName() +" ("+player.GetIdentity().GetPlainId()+", "+player.GetIdentity().GetId()+") CMD: "+ command); switch(command) { case "spawn": { if(count != 2) { SendMessageToPlayer(player, "/spawn [object]"); return; } GetGame().CreateObject(tokens[1], player.GetPosition(), false, true ); SendMessageToPlayer(player, "[ObjectSpawn] Object spawned: " + tokens[1]); break; } case "inv": { if(count != 2) { SendMessageToPlayer(player, "/inv [object]"); return; } player.GetInventory().CreateInInventory(tokens[1]); SendMessageToPlayer(player, "[ObjectSpawn] Object spawned in inventory: " + tokens[1]); break; } case "weapon": { if(count != 2) { SendMessageToPlayer(player, "/weapon [weapon]"); return; } EntityAI weapon; switch(tokens[1]) { case "ump": { weapon = player.GetHumanInventory().CreateInHands("UMP45"); player.GetInventory().CreateInInventory("Mag_UMP_25Rnd"); break; } case "cz61": { weapon = player.GetHumanInventory().CreateInHands("CZ61"); player.GetInventory().CreateInInventory("Mag_CZ61_20Rnd"); break; } case "mp5": { weapon = player.GetHumanInventory().CreateInHands("MP5K"); weapon.GetInventory().CreateAttachment("MP5k_StockBttstck"); weapon.GetInventory().CreateAttachment("MP5_PRailHndgrd"); player.GetInventory().CreateInInventory("Mag_MP5_30Rnd"); break; } case "svd": { weapon = player.GetHumanInventory().CreateInHands("SVD"); weapon.GetInventory().CreateAttachment("PSO11Optic"); player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); break; } case "mp133": { weapon = player.GetHumanInventory().CreateInHands("Mp133Shotgun"); player.GetInventory().CreateInInventory("Ammo_12gaPellets"); break; } case "mosin": { weapon = player.GetHumanInventory().CreateInHands("Mosin9130"); weapon.GetInventory().CreateAttachment("PUScopeOptic"); player.GetInventory().CreateInInventory("Ammo_762x54"); break; } case "m4": { weapon = player.GetHumanInventory().CreateInHands("M4A1_Black"); weapon.GetInventory().CreateAttachment("M4_RISHndgrd_Black"); weapon.GetInventory().CreateAttachment("M4_MPBttstck_Black"); weapon.GetInventory().CreateAttachment("BUISOptic"); player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd"); break; } case "akm": { weapon = player.GetHumanInventory().CreateInHands("AKM"); weapon.GetInventory().CreateAttachment("AK_RailHndgrd"); weapon.GetInventory().CreateAttachment("AK_PlasticBttstck"); player.GetInventory().CreateInInventory("Mag_AKM_30Rnd"); break; } case "izh18": { weapon = player.GetHumanInventory().CreateInHands("Izh18"); player.GetInventory().CreateInInventory("Ammo_762x39"); break; } case "fnx": { weapon = player.GetHumanInventory().CreateInHands("FNX45"); player.GetInventory().CreateInInventory("Mag_FNX45_15Rnd"); break; } default: { SendMessageToPlayer(player, "[WeaponSpawner] " + tokens[1] + " not found"); break; } } break; } case "strip": { if(count != 2) { SendMessageToPlayer(player, "/strip [player]"); return; } temp_player = GetPlayer(tokens[1]); if(temp_player == NULL) { SendMessageToPlayer(player, "[Strip] Can't find player called: '"+tokens[1]+"'"); } else { temp_player.RemoveAllItems(); SendMessageToPlayer(player, "[Strip] You stripped " + temp_player.GetIdentity().GetName()); SendMessageToPlayer(temp_player, "You have been stripped by an admin"); } break; } case "slap": { if(count != 2) { SendMessageToPlayer(player, "/slap [player]"); return; } temp_player = GetPlayer(tokens[1]); if(temp_player == NULL) { SendMessageToPlayer(player, "[Slap] Can't find player called: '"+tokens[1]+"'"); } else { temp_player.SetPosition(temp_player.GetPosition() + "0 3 0"); SendMessageToPlayer(player, "[Slap] You stripped " + temp_player.GetIdentity().GetName()); SendMessageToPlayer(temp_player, "You have been slapped by an admin"); } break; } case "topos": { if (count < 3) { SendMessageToPlayer(player, "/topos [x] [y] (player)"); return; } float ATL_Z = GetGame().SurfaceY(tokens[1].ToFloat(), tokens[2].ToFloat()); vector reqpos = Vector(tokens[1].ToFloat(), ATL_Z, tokens[2].ToFloat()); temp_player = player; if (count == 4) { temp_player = GetPlayer(tokens[3]); if (temp_player == NULL) { SendMessageToPlayer(player, "[Teleport] Can't find player called: '"+tokens[3]+"'"); return; } else { SendMessageToPlayer(temp_player, "[Teleport] You've been teleported to " + reqpos + " by admin " + player.GetIdentity().GetName()); } } temp_player.SetPosition(reqpos); SendMessageToPlayer(player, "[Teleport] Target teleported to " + temp_player.GetPosition()); break; } case "goto": { if(count != 2) { SendMessageToPlayer(player, "/goto [player]"); return; } temp_player = GetPlayer(tokens[1]); if(temp_player == NULL) { SendMessageToPlayer(player, "[Teleport] Can't find player called: '"+tokens[1]+"'"); } else { player.SetPosition(temp_player.GetPosition()); SendMessageToPlayer(player, "[Teleport] You teleported to " + temp_player.GetIdentity().GetName()); } break; } case "allgoto": { PlayerBase allgoto_target; if(count != 2) { SendMessageToPlayer(player, "/allgoto [player]"); return; } allgoto_target = GetPlayer(tokens[1]); if(allgoto_target == NULL) { SendMessageToPlayer(player, "[Teleport] Can't find player called: '"+tokens[1]+"'"); } else { SendMessageToPlayer(player, "[Teleport] You teleported everyone to your location"); for (i = 0; i < players.Count(); i++) { temp_player = players.Get(i); SendMessageToPlayer(temp_player, "[Teleport] You have been teleported to player " + allgoto_target.GetIdentity().GetName()); temp_player.SetPosition(allgoto_target.GetPosition()); } } break; } case "here": { if(count != 2) { SendMessageToPlayer(player, "/here [player]"); return; } temp_player = GetPlayer(tokens[1]); if(temp_player == NULL) { SendMessageToPlayer(player, "[Teleport] Can't find player called: '"+tokens[1]+"'"); } else { temp_player.SetPosition(player.GetPosition()); SendMessageToPlayer(temp_player, "[Teleport] You have been teleported to admin " + player.GetIdentity().GetName()); SendMessageToPlayer(player, "[Teleport] You teleported " + temp_player.GetIdentity().GetName() + " to your location"); } break; } case "allhere": { SendMessageToPlayer(player, "[Teleport] You teleported everyone to your location"); for (i = 0; i < players.Count(); i++) { temp_player = players.Get(i); SendMessageToPlayer(temp_player, "[Teleport] You have been teleported to admin " + player.GetIdentity().GetName()); temp_player.SetPosition(player.GetPosition()); } break; } case "time": { if(count != 3) { SendMessageToPlayer(player, "/time [hour] [minute]"); return; } GetGame().GetWorld().SetDate( 2018, 1, 7, tokens[1].ToInt(), tokens[2].ToInt()); SendMessageToPlayer(player, "[Servertime] You have set the servertime to " + tokens[1] + ":"+tokens[2]); break; } case "day": { GetGame().GetWorld().SetDate( 2018, 1, 7, 12, 0); SendMessageToPlayer(player, "[Servertime] You have set the servertime to daytime"); break; } case "night": { GetGame().GetWorld().SetDate( 2018, 1, 7, 24, 0); SendMessageToPlayer(player, "[Servertime] You have set the servertime to daytime"); break; } case "rain": { if(count != 2) { SendMessageToPlayer(player, "/rain [value 0-100]"); return; } float rain = tokens[1].ToFloat() / 100; GetGame().GetWeather().GetRain().Set(rain, 0, 600); SendMessageToPlayer(player, "[Weather] You have set Rain to " + tokens[1] + "% ["+rain+"]"); break; } case "fog": { if(count != 2) { SendMessageToPlayer(player, "/rain [value 0-100]"); return; } float fog = tokens[1].ToFloat() / 100; GetGame().GetWeather().GetFog().Set(fog, 0, 600); SendMessageToPlayer(player, "[Weather] You have set Fog to " + tokens[1] + "% ["+fog+"]"); break; } case "overcast": { if(count != 2) { SendMessageToPlayer(player, "/rain [value 0-100]"); return; } float overcast = tokens[1].ToFloat() / 100; GetGame().GetWeather().GetOvercast().Set(overcast, 0, 600); SendMessageToPlayer(player, "[Weather] You have set Overcast to " + tokens[1] + "% ["+overcast+"]"); break; } case "kill": { if(count == 2) { temp_player = GetPlayer(tokens[1]); if(temp_player == NULL) { SendMessageToPlayer(player, "[Kill] Can't find player called: '"+tokens[1]+"'"); } else { temp_player.SetHealth(0); SendMessageToPlayer(player, "[Kill] You killed " + temp_player.GetIdentity().GetName()); } } else { player.SetHealth(0); SendMessageToPlayer(player, "[Kill] You killed yourself"); } break; } case "killall": { SendMessageToPlayer(player, "[Kill] You killed everyone"); for (i = 0; i < players.Count(); i++) { temp_player = players.Get(i); if(temp_player.GetIdentity().GetId() == player.GetIdentity().GetId()) continue; temp_player.SetHealth(0); } break; } case "heal": { PlayerBase heal_target; if(count == 2) { heal_target = GetPlayer(tokens[1]); if(heal_target == NULL) { SendMessageToPlayer(player, "[Heal] Can't find player called: '"+tokens[1]+"'"); } else { SendMessageToPlayer(player, "[Heal] You healed " + heal_target.GetIdentity().GetName()); } } else { heal_target = player; SendMessageToPlayer(player, "[Heal] You healed yourself"); } if(heal_target != NULL) { heal_target.SetHealth(heal_target.GetMaxHealth("", "")); heal_target.SetHealth("", "Blood", heal_target.GetMaxHealth("", "Blood")); heal_target.GetStatStamina().Set(1000); heal_target.GetStatEnergy().Set(1000); heal_target.GetStatWater().Set(1000); } break; } case "freecam": { PlayerBase body = player; if(freecam_active) { freecam_active = false; GetGame().SelectPlayer(player.GetIdentity(), body); SendMessageToPlayer(player, "[Freecam] Exited"); } else { freecam_active = true; GetGame().SelectPlayer(player.GetIdentity(), NULL); GetGame().SelectSpectator(player.GetIdentity(), "freedebugcamera", player.GetPosition()); SendMessageToPlayer(player, "[Freecam] Entered"); } break; } case "offroad": { SendMessageToPlayer(player, "[Offroad] Vehicled spawned"); Car v; float playerAngle = MiscGameplayFunctions.GetHeadingAngle(player); vector posModifier = Vector(-(3 * Math.Sin(playerAngle)), 0, 3 * Math.Cos(playerAngle)); v = Car.Cast(GetGame().CreateObject( "OffroadHatchback", player.GetPosition() + posModifier)); v.GetInventory().CreateAttachment("SparkPlug"); v.GetInventory().CreateAttachment("EngineBelt"); v.GetInventory().CreateAttachment("CarRadiator"); v.GetInventory().CreateAttachment("CarBattery"); v.GetInventory().CreateAttachment("HatchbackHood"); v.GetInventory().CreateAttachment("HatchbackTrunk"); v.GetInventory().CreateAttachment("HatchbackDoors_CoDriver"); v.GetInventory().CreateAttachment("HatchbackWheel"); v.GetInventory().CreateAttachment("HatchbackWheel"); v.GetInventory().CreateAttachment("HatchbackWheel"); v.GetInventory().CreateAttachment("HatchbackWheel"); v.GetInventory().CreateAttachment("HatchbackWheel"); // spare break; } case "refuel": { ref array<Object> nearest_objects = new array<Object>; ref array<CargoBase> proxy_cargos = new array<CargoBase>; Car toBeFilled; vector position = player.GetPosition(); GetGame().GetObjectsAtPosition ( position, 10, nearest_objects, proxy_cargos ); for (i = 0; i < nearest_objects.Count(); i++) { if (nearest_objects[i].IsKindOf("CarScript")) { SendMessageToPlayer(player, "[Refuel] Found car: '"+nearest_objects[i]+"'"); toBeFilled = Car.Cast(nearest_objects[i]); float fuelReq = toBeFilled.GetFluidCapacity( CarFluid.FUEL ) - (toBeFilled.GetFluidCapacity( CarFluid.FUEL ) * toBeFilled.GetFluidFraction( CarFluid.FUEL )); float oilReq = toBeFilled.GetFluidCapacity( CarFluid.OIL ) - (toBeFilled.GetFluidCapacity( CarFluid.OIL ) * toBeFilled.GetFluidFraction( CarFluid.OIL )); float coolantReq = toBeFilled.GetFluidCapacity( CarFluid.COOLANT ) - (toBeFilled.GetFluidCapacity( CarFluid.COOLANT ) * toBeFilled.GetFluidFraction( CarFluid.COOLANT )); float brakeReq = toBeFilled.GetFluidCapacity( CarFluid.BRAKE ) - (toBeFilled.GetFluidCapacity( CarFluid.BRAKE ) * toBeFilled.GetFluidFraction( CarFluid.BRAKE )); toBeFilled.Fill( CarFluid.FUEL, fuelReq ); toBeFilled.Fill( CarFluid.OIL, oilReq ); toBeFilled.Fill( CarFluid.COOLANT, coolantReq ); toBeFilled.Fill( CarFluid.BRAKE, brakeReq ); SendMessageToPlayer( } break; } default: { SendMessageToPlayer(player, "Unknown command: " + command); break; } } }
  25. Mostabdel

    Admin Script ?!!!

    THX . J'ai un autre problème que tout joueur voit ce que j'écris comme commande d'admin. je ne peux pas changer ça? aidez-moi merci thx !!!
×