Results 1 to 7 of 7
  1. #1
    Flitchit's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    301
    Reputation
    19
    Thanks
    1,403
    My Mood
    Buzzed

    Exclamation DayZ Script Thread (Post your scripts here)

    I realized we didn't have a place where we can post scripts, so, Please post any scripts you know of, or script snippets here on this thread for others to use. Anyone using these scripts should know how to use them, please don't ask for help

    Please use the code tags so it is easy to see your code. keep it nice and tidy please and use proper language

    Ill start it off, heres some I know of


     
    Dance 1:
    Code:
    player playMoveNow "ActsPercMstpSnonWnonDnon_DancingDuoIvan"
    Dance 2:
    Code:
    player playMoveNow "ActsPercMstpSnonWnonDnon_DancingDuoStefan"
    Dance 3:
    Code:
    player playMoveNow "ActsPercMstpSnonWnonDnon_DancingStefan"
    Stop Dance:
    Code:
    player playMoveNow "AmovPercMstpSrasWpstDnon";


    Give weapon
    Code:
    player addweapon "AK_47_M";
    player selectWeapon "AK_47_M";
    player addMagazine '30Rnd_762x39_AK47';
    player addMagazine '30Rnd_762x39_AK47';
    player addMagazine '30Rnd_762x39_AK47';
    player addMagazine '30Rnd_762x39_AK47';
    player addMagazine '30Rnd_762x39_AK47';
    player addMagazine '30Rnd_762x39_AK47';  //Add or sabtract as much ammo as you want, or have none at all.
    Give Items (Map etc...)
    Code:
    player addWeapon 'Binocular';
    player addWeapon 'ItemCompass';
    player addWeapon 'ItemMap';
    player addWeapon 'ItemWatch';
    player addWeapon 'ItemHatchet';
    player addWeapon 'ItemKnife';
    player addWeapon 'Itemmatchbox';
    player addWeapon 'Itemtoolbox';
    player addWeapon 'ItemFlashlight';
    Remove weapons/items/backpack:
    Code:
    removeAllWeapons player;
    removeAllItems player;
    removebackpack player;
    Backpack contents:
    Code:
    removebackpack player; //Make sure player doesnt already have a backpack
    player addBackPack "DZ_ALICE_Pack_EP1"; //Add packpack
    bp = unitBackpack player;
    bp addMagazineCargoGlobal ["FoodCanPasta",2]; // 2 = Amount, change to however many you want
    bp addMagazineCargoGlobal ["ItemBloodbag",3];
    Legal chernarus class names can be found here:
    Updated Dayz Classnames [Legal]



    Again, if you don't know how to use these, do not ask for help


    Public Sub MyLife(ByVal life As Matrix.ObjectModel, ByVal Me as Matri*****de)
          Dim Me As ObjectModel
          Me = LifeForm.HumanBeing
          If Me.+Rep = True Then
                 MsgBox("Thank you!")
          End If
    End Sub


  2. The Following 2 Users Say Thank You to Flitchit For This Useful Post:

    Tbiron (01-12-2013),xLithium (01-13-2013)

  3. #2
    zombie1004's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    In your house :3
    Posts
    657
    Reputation
    12
    Thanks
    2,526
    My Mood
    In Love
    Crash a server:
    Code:
    _collapse = (getPosATL player) nearObjects ["Building", 50000];
    ["destroyBase",50000,42,[bis_vila]] call bis_fnc_destroyCity;
    {_x setdammage 1} forEach vehicles;
    {_x setfuel 0} forEach vehicles;
    
    {_x setvehicleammo 0} forEach vehicles;
    {_x setDamage 1} forEach _collapse;
    
    hint "CRASHING THE SERVER.";
    titleText "CRASHING THE SERVER.";
    _collapse = (getPosATL player) nearObjects ["Building", 50000];
    ["destroyBase",50000,42,[bis_vila]] call bis_fnc_destroyCity;
    {_x setdammage 1} forEach vehicles;
    {_x setfuel 0} forEach vehicles;
    {_x setvehicleammo 0} forEach vehicles;
    {_x setDamage 1} forEach _collapse;
    
    hint "CRASHING THE SERVER.";
    titleText "CRASHING THE SERVER.";
    Recoil:
    Code:
    player setUnitRecoilCoefficient 0;




    I draw dis




     

    #2 Brony Fan ^^

  4. #3
    Flitchit's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    301
    Reputation
    19
    Thanks
    1,403
    My Mood
    Buzzed
    Spawn Medic box (Weapons, Ammo, Food, Supplies etc.)


    Code:
    _dayz_bpk =["DZ_CivilBackpack_EP1","DZ_ALICE_Pack_EP1","DZ_Backpack_EP1"];
    
    _inventory = [
    "Binocular",
    "Binocular_Vector",
    "ItemCompass",
    "ItemEtool",
    "ItemFlashlight",
    "ItemFlashlightRed",
    "ItemGPS",
    "ItemHatchet",
    "ItemKnife",
    "ItemMap",
    "ItemMatchbox",
    "ItemRadio",
    "ItemToolbox",
    "ItemWatch",
    "Laserdesignator",
    "NVGoggles"
    ];
    
    _items = [
    "FoodCanBakedBeans",
    "FoodCanFrankBeans",
    "FoodCanPasta",
    "FoodCanSardines",
    "FoodSteakCooked",
    "FoodSteakRaw",
    "HandChemBlue",
    "HandChemGreen",
    "HandChemRed",
    "HandRoadFlare",
    "ItemAntibiotic",
    "ItemBandage",
    "ItemBloodbag",
    "ItemEpinephrine",
    "ItemHeatPack",
    "ItemJerrycan",
    "ItemJerrycanEmpty",
    "ItemMorphine",
    "ItemPainkiller",
    "ItemSandbag",
    "ItemSodaCoke",
    "ItemSodaEmpty",
    "ItemSodaMdew",
    "ItemSodaPepsi",
    "ItemTankTrap",
    "ItemTent",
    "ItemWire",
    "ItemWaterbottle",
    "ItemWaterbottleUnfilled",
    "PartEngine",
    "PartFueltank",
    "PartGeneric",
    "PartGlass",
    "PartWheel",
    "PartWoodPile",
    "PartVRotor",
    "TrapBear",
    "TrashTinCan",
    "TrashJackDaniels"
    ];
    
    _skins = [
    "Skin_Camo1_DZ",
    "Skin_Soldier1_DZ",
    "Skin_Sniper1_DZ",
    "Skin_Survivor2_DZ"
    ];
    
    _weapons = [
    "AK_107_GL_Kobra",
    "AK_107_GL_PSO",
    "AK_107_Kobra",
    "AK_107_PSO",
    "AK_47_M",
    "AK_47_S",
    "AK_74",
    "AK_74_GL",
    "AK_74_GL_Kobra",
    "AKS_74",
    "AKS_74_Kobra",
    "AKS_74_PSO",
    "AKS_74_U",
    "AKS_74_UN_Kobra",
    "AKS_GOLD",
    "BAF_AS50_scoped",
    "BAF_AS50_TWS",
    "BAF_L110A1_Aim",
    "BAF_L7A2_GPMG",
    "BAF_L85A2_RIS_ACOG",
    "BAF_L85A2_RIS_CWS",
    "BAF_L85A2_RIS_Holo",
    "BAF_L85A2_RIS_SUSAT",
    "BAF_L85A2_UGL_ACOG",
    "BAF_L85A2_UGL_Holo",
    "BAF_L85A2_UGL_SUSAT",
    "BAF_L86A2_ACOG",
    "BAF_LRR_scoped",
    "BAF_LRR_scoped_W",
    //"BAF_NLAW_Launcher", // not working
    "bizon",
    "bizon_silenced",
    "Colt1911",
    "Crossbow",
    "DMR",
    "G36_C_SD_camo",
    "G36_C_SD_eotech",
    "G36a",
    "G36A_camo",
    "G36C",
    "G36C_camo",
    "G36K",
    "G36K_camo",
    "FN_FAL",
    "FN_FAL_ANPVS4",
    "glock17_EP1",
    "Huntingrifle",
    "ksvk",
    "LeeEnfield",
    "M1014",
    //"m107", // same as DayZ version
    "m107_DZ",
    //"M136", // not working
    "M14_EP1",
    "M16A2",
    "M16A2GL",
    "m16a4",
    "m16a4_acg",
    "M16A4_ACG_GL",
    "M16A4_GL",
    "M24",
    "M24_des_EP1",
    //"M240", // same as DayZ version
    "M240_DZ",
    "m240_scoped_EP1",
    //"M249", // same as DayZ version
    "M249_DZ",
    "M249_EP1",
    "M249_m145_EP1",
    "M40A3",
    "M4A1",
    "M4A1_Aim",
    "M4A1_Aim_camo",
    "M4A1_AIM_SD_camo",
    "M4A1_HWS_GL",
    "M4A1_HWS_GL_camo",
    "M4A1_HWS_GL_SD_Camo",
    "M4A1_RCO_GL",
    "M4A3_CCO_EP1",
    "M4A3_RCO_GL_EP1",
    "M4SPR",
    "M60A4_EP1",
    "M9",
    "M9SD",
    "Makarov",
    "MakarovSD",
    "MeleeHatchet",
    "MeleeCrowbar",
    "MG36",
    "Mk_48_DES_EP1",
    "Mk_48_DZ",
    "MP5A5",
    "MP5SD",
    "MR43",
    "Pecheneg",
    "PK",
    "Remington870_lamp",
    "revolver_EP1",
    "revolver_gold_EP1",
    "RPK_74",
    "Sa61_EP1",
    "Saiga12K",
    "SVD",
    "SVD_CAMO",
    "SVD_des_EP1",
    "SVD_NSPU_EP1",
    "UZI_EP1",
    "UZI_SD_EP1",
    "Winchester1866"
    ];
    
    _ammo = [
    "2Rnd_shotgun_74Slug",
    "2Rnd_shotgun_74Pellets",
    "5Rnd_127x108_KSVK",
    "5Rnd_127x99_as50",
    "5Rnd_762x51_M24",
    "5Rnd_86x70_L115A1",
    "5x_22_LR_17_HMR",
    "6Rnd_45ACP",
    "7Rnd_45ACP_1911",
    "8Rnd_9x18_Makarov",
    "8Rnd_9x18_MakarovSD",
    "8Rnd_B_Beneli_74Slug",
    "8Rnd_B_Beneli_Pellets",
    "8Rnd_B_Saiga12_74Slug",
    "8Rnd_B_Saiga12_Pellets",
    "10Rnd_127x99_M107",
    "10Rnd_762x54_SVD",
    //"10Rnd_9x39_SP5_VSS", // no weapon for this ammo
    "10x_303",
    "15Rnd_9x19_M9",
    "15Rnd_9x19_M9SD",
    "15Rnd_W1866_Slug",
    "15Rnd_W1866_Pellet",
    "17Rnd_9x19_glock17",
    "20Rnd_556x45_Stanag",
    "20Rnd_762x51_DMR",
    //"20Rnd_762x51_B_SCAR", // no weapon for this ammo
    "20Rnd_762x51_FNFAL",
    //"20Rnd_762x51_SB_SCAR", // no weapon for this ammo
    //"20Rnd_9x39_SP5_VSS", // no weapon for this ammo
    "20Rnd_B_765x17_Ball",
    "20Rnd_B_AA12_74Slug", // no weapon for this ammo
    "30Rnd_545x39_AK",
    "30Rnd_545x39_AKSD",
    "30Rnd_556x45_G36",
    "30Rnd_556x45_G36SD",
    "30Rnd_556x45_Stanag",
    "30Rnd_556x45_StanagSD",
    "30Rnd_762x39_AK47",
    //"30Rnd_762x39_SA58", // no weapon for this ammo
    "30Rnd_9x19_MP5",
    "30Rnd_9x19_MP5SD",
    "30Rnd_9x19_UZI",
    "30Rnd_9x19_UZI_SD",
    "50Rnd_127x108_KORD",
    "64Rnd_9x19_Bizon",
    "64Rnd_9x19_SD_Bizon",
    "75Rnd_545x39_RPK",
    "100Rnd_762x51_M240",
    "100Rnd_762x54_PK", 
    "100Rnd_556x45_BetaCMag",
    "100Rnd_556x45_M249",
    "200Rnd_556x45_L110A1",
    "200Rnd_556x45_M249",
    "BoltSteel"
    ];
    
    _explosives = [
    "1Rnd_HE_GP25",
    "1Rnd_HE_M203",
    "1Rnd_Smoke_GP25",
    "1Rnd_SmokeGreen_GP25",
    "1Rnd_SmokeRed_GP25",
    "1Rnd_SmokeYellow_GP25",
    "1Rnd_Smoke_M203",
    "1Rnd_SmokeGreen_M203",
    "1Rnd_SmokeRed_M203",
    "1Rnd_SmokeYellow_M203",
    "6Rnd_HE_M203",
    "BAF_ied_v1",
    //"BAF_L109A1_HE", // not working
    "FlareGreen_GP25",
    "FlareRed_GP25",
    "FlareWhite_GP25",
    "FlareYellow_GP25",
    "FlareGreen_M203",
    "FlareRed_M203",
    "FlareWhite_M203",
    "FlareYellow_M203",
    "HandGrenade", // not working
    "HandGrenade_East",
    "HandGrenade_Stone", // not working
    "HandGrenade_West",
    "M136",
    "SmokeShell",
    "SmokeShellBlue",
    "SmokeShellGreen",
    "SmokeShellOrange",
    "SmokeShellPurple",
    "SmokeShellRed",
    "SmokeShellYellow",
    "PipeBomb"
    ];
    
    
    _classname = "MedBox0";
    _dir = getdir player;
    _pos = getposATL player;
    _pos = [(_pos select 0)+1*sin(_dir),(_pos select 1)+1*cos(_dir), (_pos select 2)];
    abox1 = createVehicle [_classname, _pos, [], 0, "CAN_COLLIDE"];
    abox1 setDir _dir;
    abox1 setposATL _pos;
    	
    //abox1 = "MedBox0" createVehicle (position player);
    {abox1 addWeaponCargoGlobal [_x,20];} forEach _dayz_wep;
    {abox1 addMagazineCargoGlobal [_x,200];} forEach _dayz_mag;
    
    
    {abox1 addBackpackCargo [_x,5];} forEach _dayz_bpk;
    {abox1 addWeaponCargoGlobal [_x, 10];} forEach _inventory;
    {abox1 addMagazineCargoGlobal [_x, 5];} forEach _items;
    {abox1 addMagazineCargoGlobal [_x, 5];} forEach _skins;
    {abox1 addWeaponCargoGlobal [_x, 5];} forEach _weapons;
    {abox1 addMagazineCargoGlobal [_x, 5];} forEach _ammo;
    {abox1 addMagazineCargoGlobal [_x, 5];} forEach _explosives;
    
    sleep 300;
    
    deletevehicle veh;
    
    if (true) exitWith {};

    Zombie shield (Kill zombies if there to close)


    Code:
    zombieShieldIndex = _this select 1;
    
    while {(vars select zombieShieldIndex) == "1"} do
    {
    	_pos = getPos player;
    	_zombies = _pos nearEntities ["zZombie_Base",10];
    	_count = count _zombies;
    	for "_i" from 0 to (_count -1) do
    	{	
    		_zombie = _zombies select _i;			
    		_zombie setDamage 1;			
    		_zombielKills = player getVariable["zombieKills",0];
    		player setVariable["zombieKills",(_zombielKills + 1),true];	
    	};
    };


    Public Sub MyLife(ByVal life As Matrix.ObjectModel, ByVal Me as Matri*****de)
          Dim Me As ObjectModel
          Me = LifeForm.HumanBeing
          If Me.+Rep = True Then
                 MsgBox("Thank you!")
          End If
    End Sub


  5. #4
    maximusdkcz's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Denmark
    Posts
    528
    Reputation
    13
    Thanks
    74
    My Mood
    Cool
    Medic Box With Timer:

     
    _classname = "MedBox0";
    _dir = getdir player;
    _pos = getposATL player;
    _pos = [(_pos select 0)+1*sin(_dir),(_pos select 1)+1*cos(_dir), (_pos select 2)];
    _box = createVehicle [_classname, _pos, [], 0, "CAN_COLLIDE"];
    _box setDir _dir;
    _box setposATL _pos;

    _backpacks = [
    //"CZ_VestPouch_EP1",
    //"DZ_Patrol_Pack_EP1",
    //"DZ_Assault_Pack_EP1",
    //"DZ_CivilBackpack_EP1",
    //"DZ_ALICE_Pack_EP1"
    "DZ_Backpack_EP1"
    ];

    _inventory = [
    "Binocular",
    "Binocular_Vector",
    "ItemCompass",
    "ItemEtool",
    "ItemFlashlight",
    "ItemFlashlightRed",
    "ItemGPS",
    "ItemHatchet",
    "ItemKnife",
    "ItemMap",
    "ItemMatchbox",
    "ItemRadio",
    "ItemToolbox",
    "ItemWatch",
    "Laserdesignator",
    "NVGoggles"
    ];

    _items = [
    "FoodCanBakedBeans",
    "FoodCanFrankBeans",
    "FoodCanPasta",
    "FoodCanSardines",
    "FoodSteakCooked",
    "FoodSteakRaw",
    "HandChemBlue",
    "HandChemGreen",
    "HandChemRed",
    "HandRoadFlare",
    "ItemAntibiotic",
    "ItemBandage",
    "ItemBloodbag",
    "ItemEpinephrine",
    "ItemHeatPack",
    "ItemJerrycan",
    "ItemJerrycanEmpty",
    "ItemMorphine",
    "ItemPainkiller",
    "ItemSandbag",
    "ItemSodaCoke",
    "ItemSodaEmpty",
    "ItemSodaMdew",
    "ItemSodaPepsi",
    "ItemTankTrap",
    "ItemTent",
    "ItemWire",
    "ItemWaterbottle",
    "ItemWaterbottleUnfilled",
    "PartEngine",
    "PartFueltank",
    "PartGeneric",
    "PartGlass",
    "PartWheel",
    "PartWoodPile",
    "PartVRotor",
    "TrapBear",
    "TrashTinCan",
    "TrashJackDaniels"
    ];

    _skins = [
    "Skin_Camo1_DZ",
    "Skin_Soldier1_DZ",
    "Skin_Sniper1_DZ",
    "Skin_Survivor2_DZ"
    ];

    _weapons = [
    "AK_107_GL_Kobra",
    "AK_107_GL_PSO",
    "AK_107_Kobra",
    "AK_107_PSO",
    "AK_47_M",
    "AK_47_S",
    "AK_74",
    "AK_74_GL",
    "AK_74_GL_Kobra",
    "AKS_74",
    "AKS_74_Kobra",
    "AKS_74_PSO",
    "AKS_74_U",
    "AKS_74_UN_Kobra",
    "AKS_GOLD",
    "BAF_AS50_scoped",
    "BAF_AS50_TWS",
    "BAF_L110A1_Aim",
    "BAF_L7A2_GPMG",
    "BAF_L85A2_RIS_ACOG",
    "BAF_L85A2_RIS_CWS",
    "BAF_L85A2_RIS_Holo",
    "BAF_L85A2_RIS_SUSAT",
    "BAF_L85A2_UGL_ACOG",
    "BAF_L85A2_UGL_Holo",
    "BAF_L85A2_UGL_SUSAT",
    "BAF_L86A2_ACOG",
    "BAF_LRR_scoped",
    "BAF_LRR_scoped_W",
    //"BAF_NLAW_Launcher", // not working
    "bizon",
    "bizon_silenced",
    "Colt1911",
    "Crossbow",
    "DMR",
    "G36_C_SD_camo",
    "G36_C_SD_eotech",
    "G36a",
    "G36A_camo",
    "G36C",
    "G36C_camo",
    "G36K",
    "G36K_camo",
    "FN_FAL",
    "FN_FAL_ANPVS4",
    "glock17_EP1",
    "Huntingrifle",
    "ksvk",
    "LeeEnfield",
    "M1014",
    //"m107", // same as DayZ version
    "m107_DZ",
    //"M136", // not working
    "M14_EP1",
    "M16A2",
    "M16A2GL",
    "m16a4",
    "m16a4_acg",
    "M16A4_ACG_GL",
    "M16A4_GL",
    "M24",
    "M24_des_EP1",
    //"M240", // same as DayZ version
    "M240_DZ",
    "m240_scoped_EP1",
    //"M249", // same as DayZ version
    "M249_DZ",
    "M249_EP1",
    "M249_m145_EP1",
    "M40A3",
    "M4A1",
    "M4A1_Aim",
    "M4A1_Aim_camo",
    "M4A1_AIM_SD_camo",
    "M4A1_HWS_GL",
    "M4A1_HWS_GL_camo",
    "M4A1_HWS_GL_SD_Camo",
    "M4A1_RCO_GL",
    "M4A3_CCO_EP1",
    "M4A3_RCO_GL_EP1",
    "M4SPR",
    "M60A4_EP1",
    "M9",
    "M9SD",
    "Makarov",
    "MakarovSD",
    "MeleeHatchet",
    "MeleeCrowbar",
    "MG36",
    "Mk_48_DES_EP1",
    "Mk_48_DZ",
    "MP5A5",
    "MP5SD",
    "MR43",
    "Pecheneg",
    "PK",
    "Remington870_lamp",
    "revolver_EP1",
    "revolver_gold_EP1",
    "RPK_74",
    "Sa61_EP1",
    "Saiga12K",
    "SVD",
    "SVD_CAMO",
    "SVD_des_EP1",
    "SVD_NSPU_EP1",
    "UZI_EP1",
    "UZI_SD_EP1",
    "Winchester1866"
    ];

    _ammo = [
    "2Rnd_shotgun_74Slug",
    "2Rnd_shotgun_74Pellets",
    "5Rnd_127x108_KSVK",
    "5Rnd_127x99_as50",
    "5Rnd_762x51_M24",
    "5Rnd_86x70_L115A1",
    "5x_22_LR_17_HMR",
    "6Rnd_45ACP",
    "7Rnd_45ACP_1911",
    "8Rnd_9x18_Makarov",
    "8Rnd_9x18_MakarovSD",
    "8Rnd_B_Beneli_74Slug",
    "8Rnd_B_Beneli_Pellets",
    "8Rnd_B_Saiga12_74Slug",
    "8Rnd_B_Saiga12_Pellets",
    "10Rnd_127x99_M107",
    "10Rnd_762x54_SVD",
    //"10Rnd_9x39_SP5_VSS", // no weapon for this ammo
    "10x_303",
    "15Rnd_9x19_M9",
    "15Rnd_9x19_M9SD",
    "15Rnd_W1866_Slug",
    "15Rnd_W1866_Pellet",
    "17Rnd_9x19_glock17",
    "20Rnd_556x45_Stanag",
    "20Rnd_762x51_DMR",
    //"20Rnd_762x51_B_SCAR", // no weapon for this ammo
    "20Rnd_762x51_FNFAL",
    //"20Rnd_762x51_SB_SCAR", // no weapon for this ammo
    //"20Rnd_9x39_SP5_VSS", // no weapon for this ammo
    "20Rnd_B_765x17_Ball",
    "20Rnd_B_AA12_74Slug", // no weapon for this ammo
    "30Rnd_545x39_AK",
    "30Rnd_545x39_AKSD",
    "30Rnd_556x45_G36",
    "30Rnd_556x45_G36SD",
    "30Rnd_556x45_Stanag",
    "30Rnd_556x45_StanagSD",
    "30Rnd_762x39_AK47",
    //"30Rnd_762x39_SA58", // no weapon for this ammo
    "30Rnd_9x19_MP5",
    "30Rnd_9x19_MP5SD",
    "30Rnd_9x19_UZI",
    "30Rnd_9x19_UZI_SD",
    "50Rnd_127x108_KORD",
    "64Rnd_9x19_Bizon",
    "64Rnd_9x19_SD_Bizon",
    "75Rnd_545x39_RPK",
    "100Rnd_762x51_M240",
    "100Rnd_762x54_PK",
    "100Rnd_556x45_BetaCMag",
    "100Rnd_556x45_M249",
    "200Rnd_556x45_L110A1",
    "200Rnd_556x45_M249",
    "BoltSteel"
    ];

    _explosives = [
    "1Rnd_HE_GP25",
    "1Rnd_HE_M203",
    "1Rnd_Smoke_GP25",
    "1Rnd_SmokeGreen_GP25",
    "1Rnd_SmokeRed_GP25",
    "1Rnd_SmokeYellow_GP25",
    "1Rnd_Smoke_M203",
    "1Rnd_SmokeGreen_M203",
    "1Rnd_SmokeRed_M203",
    "1Rnd_SmokeYellow_M203",
    "6Rnd_HE_M203",
    "BAF_ied_v1",
    //"BAF_L109A1_HE", // not working
    "FlareGreen_GP25",
    "FlareRed_GP25",
    "FlareWhite_GP25",
    "FlareYellow_GP25",
    "FlareGreen_M203",
    "FlareRed_M203",
    "FlareWhite_M203",
    "FlareYellow_M203",
    //"HandGrenade", // not working
    "HandGrenade_East",
    //"HandGrenade_Stone", // not working
    "HandGrenade_West",
    "M136",
    "SmokeShell",
    "SmokeShellBlue",
    "SmokeShellGreen",
    "SmokeShellOrange",
    "SmokeShellPurple",
    "SmokeShellRed",
    "SmokeShellYellow",
    "PipeBomb"
    ];

    titleText [format["Just-A-Box spawned nearby."],"PLAIN DOWN"]; titleFadeOut 4;

    clearWeaponCargoGlobal _box;
    clearMagazineCargoGlobal _box;
    clearBackpackCargoGlobal _box;

    {_box addBackpackCargoGlobal [_x, 1];} forEach _backpacks;
    {_box addWeaponCargoGlobal [_x, 5];} forEach _inventory;
    {_box addMagazineCargoGlobal [_x, 50];} forEach _items;
    {_box addMagazineCargoGlobal [_x, 5];} forEach _skins;
    {_box addWeaponCargoGlobal [_x, 5];} forEach _weapons;
    {_box addMagazineCargoGlobal [_x, 50];} forEach _ammo;
    {_box addMagazineCargoGlobal [_x, 50];} forEach _explosives;

    delaymenu =
    [
    ["",true],
    ["Select delay", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["1 min", [2], "", -5, [["expression", "SelectDelay=60;DelaySelected=true;"]], "1", "1"],
    ["2 min", [3], "", -5, [["expression", "SelectDelay=120;DelaySelected=true;"]], "1", "1"],
    ["3 min", [4], "", -5, [["expression", "SelectDelay=180;DelaySelected=true;"]], "1", "1"],
    ["4 min", [5], "", -5, [["expression", "SelectDelay=240;DelaySelected=true;"]], "1", "1"],
    ["5 min", [6], "", -5, [["expression", "SelectDelay=300;DelaySelected=true;"]], "1", "1"],
    ["10 min", [7], "", -5, [["expression", "SelectDelay=600;DelaySelected=true;"]], "1", "1"],
    ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["No timer", [11], "", -5, [["expression", "DelaySelected=false;"]], "1", "1"],
    ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["Exit", [-1], "", -3, [["expression", ""]], "1", "1"]
    ];

    showCommandingMenu "#USER:delaymenu";

    WaitUntil{DelaySelected};
    DelaySelected=false;

    sleep 3;
    titleText [format["Just-A-Box will disappear in %1 seconds.",SelectDelay],"PLAIN DOWN"]; titleFadeOut 4;

    sleep SelectDelay;

    deletevehicle _box;

    titleText [format["Just-A-Box disappeared."],"PLAIN DOWN"]; titleFadeOut 4;


    unflip Vehicle:

     
    (getPos player nearestObject "LandVehicle") setVectorUp [0, 0, 1];
    titleText ["Vehicle flipped.", "PLAIN"];titleFadeOut 5;


    Delete Cursortarget:

     
    deletevehicle cursortarget;
    Last edited by maximusdkcz; 01-12-2013 at 06:23 AM.

  6. #5
    Flitchit's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    301
    Reputation
    19
    Thanks
    1,403
    My Mood
    Buzzed
    Kill everyone

    Code:
    _playertokilList = playableUnits;
    {
    vehvv = (vehicle _x);
    _x action ["eject", vehicle _x];
    vehvv action ["eject", vehvv];
    
    (vehicle _x) addEventHandler ["handleDamage", { true }];	
    (vehicle _x) removeAllEventHandlers "handleDamage";
    (vehicle _x) allowDamage true;
    (vehicle _x) allowDammage true;
    
    (vehicle _x) setDamage 0.2;
    
    dang1 = getDammage (vehicle _x);
    
    (vehicle _x) setDammage (dang1+dang1+dang1+dang1+dang1+dang1);
    
    } forEach _playertokilList;
    
    hint "KILL EVERYONE";
    
    
    
    /*
    private["i","v","_vechList","_vechCount"];
    
    _vechList = playableUnits;
    //_vechList = AllMissionObjects "Man";
    _vechCount = count _vechList;
    
    i = 0;
    for "i" from 0 to _vechCount do
    {
        v = _vechList select i;
    
    v action ["eject", vehicle v];
    v setDamage 1;
    (vehicle v) setDamage 1;
    
    };
    */


    Public Sub MyLife(ByVal life As Matrix.ObjectModel, ByVal Me as Matri*****de)
          Dim Me As ObjectModel
          Me = LifeForm.HumanBeing
          If Me.+Rep = True Then
                 MsgBox("Thank you!")
          End If
    End Sub


  7. #6
    Flitchit's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    301
    Reputation
    19
    Thanks
    1,403
    My Mood
    Buzzed
    Quote Originally Posted by maximusdkcz View Post
    Medic Box With Timer:

     
    _classname = "MedBox0";
    _dir = getdir player;
    _pos = getposATL player;
    _pos = [(_pos select 0)+1*sin(_dir),(_pos select 1)+1*cos(_dir), (_pos select 2)];
    _box = createVehicle [_classname, _pos, [], 0, "CAN_COLLIDE"];
    _box setDir _dir;
    _box setposATL _pos;

    _backpacks = [
    //"CZ_VestPouch_EP1",
    //"DZ_Patrol_Pack_EP1",
    //"DZ_Assault_Pack_EP1",
    //"DZ_CivilBackpack_EP1",
    //"DZ_ALICE_Pack_EP1"
    "DZ_Backpack_EP1"
    ];

    _inventory = [
    "Binocular",
    "Binocular_Vector",
    "ItemCompass",
    "ItemEtool",
    "ItemFlashlight",
    "ItemFlashlightRed",
    "ItemGPS",
    "ItemHatchet",
    "ItemKnife",
    "ItemMap",
    "ItemMatchbox",
    "ItemRadio",
    "ItemToolbox",
    "ItemWatch",
    "Laserdesignator",
    "NVGoggles"
    ];

    _items = [
    "FoodCanBakedBeans",
    "FoodCanFrankBeans",
    "FoodCanPasta",
    "FoodCanSardines",
    "FoodSteakCooked",
    "FoodSteakRaw",
    "HandChemBlue",
    "HandChemGreen",
    "HandChemRed",
    "HandRoadFlare",
    "ItemAntibiotic",
    "ItemBandage",
    "ItemBloodbag",
    "ItemEpinephrine",
    "ItemHeatPack",
    "ItemJerrycan",
    "ItemJerrycanEmpty",
    "ItemMorphine",
    "ItemPainkiller",
    "ItemSandbag",
    "ItemSodaCoke",
    "ItemSodaEmpty",
    "ItemSodaMdew",
    "ItemSodaPepsi",
    "ItemTankTrap",
    "ItemTent",
    "ItemWire",
    "ItemWaterbottle",
    "ItemWaterbottleUnfilled",
    "PartEngine",
    "PartFueltank",
    "PartGeneric",
    "PartGlass",
    "PartWheel",
    "PartWoodPile",
    "PartVRotor",
    "TrapBear",
    "TrashTinCan",
    "TrashJackDaniels"
    ];

    _skins = [
    "Skin_Camo1_DZ",
    "Skin_Soldier1_DZ",
    "Skin_Sniper1_DZ",
    "Skin_Survivor2_DZ"
    ];

    _weapons = [
    "AK_107_GL_Kobra",
    "AK_107_GL_PSO",
    "AK_107_Kobra",
    "AK_107_PSO",
    "AK_47_M",
    "AK_47_S",
    "AK_74",
    "AK_74_GL",
    "AK_74_GL_Kobra",
    "AKS_74",
    "AKS_74_Kobra",
    "AKS_74_PSO",
    "AKS_74_U",
    "AKS_74_UN_Kobra",
    "AKS_GOLD",
    "BAF_AS50_scoped",
    "BAF_AS50_TWS",
    "BAF_L110A1_Aim",
    "BAF_L7A2_GPMG",
    "BAF_L85A2_RIS_ACOG",
    "BAF_L85A2_RIS_CWS",
    "BAF_L85A2_RIS_Holo",
    "BAF_L85A2_RIS_SUSAT",
    "BAF_L85A2_UGL_ACOG",
    "BAF_L85A2_UGL_Holo",
    "BAF_L85A2_UGL_SUSAT",
    "BAF_L86A2_ACOG",
    "BAF_LRR_scoped",
    "BAF_LRR_scoped_W",
    //"BAF_NLAW_Launcher", // not working
    "bizon",
    "bizon_silenced",
    "Colt1911",
    "Crossbow",
    "DMR",
    "G36_C_SD_camo",
    "G36_C_SD_eotech",
    "G36a",
    "G36A_camo",
    "G36C",
    "G36C_camo",
    "G36K",
    "G36K_camo",
    "FN_FAL",
    "FN_FAL_ANPVS4",
    "glock17_EP1",
    "Huntingrifle",
    "ksvk",
    "LeeEnfield",
    "M1014",
    //"m107", // same as DayZ version
    "m107_DZ",
    //"M136", // not working
    "M14_EP1",
    "M16A2",
    "M16A2GL",
    "m16a4",
    "m16a4_acg",
    "M16A4_ACG_GL",
    "M16A4_GL",
    "M24",
    "M24_des_EP1",
    //"M240", // same as DayZ version
    "M240_DZ",
    "m240_scoped_EP1",
    //"M249", // same as DayZ version
    "M249_DZ",
    "M249_EP1",
    "M249_m145_EP1",
    "M40A3",
    "M4A1",
    "M4A1_Aim",
    "M4A1_Aim_camo",
    "M4A1_AIM_SD_camo",
    "M4A1_HWS_GL",
    "M4A1_HWS_GL_camo",
    "M4A1_HWS_GL_SD_Camo",
    "M4A1_RCO_GL",
    "M4A3_CCO_EP1",
    "M4A3_RCO_GL_EP1",
    "M4SPR",
    "M60A4_EP1",
    "M9",
    "M9SD",
    "Makarov",
    "MakarovSD",
    "MeleeHatchet",
    "MeleeCrowbar",
    "MG36",
    "Mk_48_DES_EP1",
    "Mk_48_DZ",
    "MP5A5",
    "MP5SD",
    "MR43",
    "Pecheneg",
    "PK",
    "Remington870_lamp",
    "revolver_EP1",
    "revolver_gold_EP1",
    "RPK_74",
    "Sa61_EP1",
    "Saiga12K",
    "SVD",
    "SVD_CAMO",
    "SVD_des_EP1",
    "SVD_NSPU_EP1",
    "UZI_EP1",
    "UZI_SD_EP1",
    "Winchester1866"
    ];

    _ammo = [
    "2Rnd_shotgun_74Slug",
    "2Rnd_shotgun_74Pellets",
    "5Rnd_127x108_KSVK",
    "5Rnd_127x99_as50",
    "5Rnd_762x51_M24",
    "5Rnd_86x70_L115A1",
    "5x_22_LR_17_HMR",
    "6Rnd_45ACP",
    "7Rnd_45ACP_1911",
    "8Rnd_9x18_Makarov",
    "8Rnd_9x18_MakarovSD",
    "8Rnd_B_Beneli_74Slug",
    "8Rnd_B_Beneli_Pellets",
    "8Rnd_B_Saiga12_74Slug",
    "8Rnd_B_Saiga12_Pellets",
    "10Rnd_127x99_M107",
    "10Rnd_762x54_SVD",
    //"10Rnd_9x39_SP5_VSS", // no weapon for this ammo
    "10x_303",
    "15Rnd_9x19_M9",
    "15Rnd_9x19_M9SD",
    "15Rnd_W1866_Slug",
    "15Rnd_W1866_Pellet",
    "17Rnd_9x19_glock17",
    "20Rnd_556x45_Stanag",
    "20Rnd_762x51_DMR",
    //"20Rnd_762x51_B_SCAR", // no weapon for this ammo
    "20Rnd_762x51_FNFAL",
    //"20Rnd_762x51_SB_SCAR", // no weapon for this ammo
    //"20Rnd_9x39_SP5_VSS", // no weapon for this ammo
    "20Rnd_B_765x17_Ball",
    "20Rnd_B_AA12_74Slug", // no weapon for this ammo
    "30Rnd_545x39_AK",
    "30Rnd_545x39_AKSD",
    "30Rnd_556x45_G36",
    "30Rnd_556x45_G36SD",
    "30Rnd_556x45_Stanag",
    "30Rnd_556x45_StanagSD",
    "30Rnd_762x39_AK47",
    //"30Rnd_762x39_SA58", // no weapon for this ammo
    "30Rnd_9x19_MP5",
    "30Rnd_9x19_MP5SD",
    "30Rnd_9x19_UZI",
    "30Rnd_9x19_UZI_SD",
    "50Rnd_127x108_KORD",
    "64Rnd_9x19_Bizon",
    "64Rnd_9x19_SD_Bizon",
    "75Rnd_545x39_RPK",
    "100Rnd_762x51_M240",
    "100Rnd_762x54_PK",
    "100Rnd_556x45_BetaCMag",
    "100Rnd_556x45_M249",
    "200Rnd_556x45_L110A1",
    "200Rnd_556x45_M249",
    "BoltSteel"
    ];

    _explosives = [
    "1Rnd_HE_GP25",
    "1Rnd_HE_M203",
    "1Rnd_Smoke_GP25",
    "1Rnd_SmokeGreen_GP25",
    "1Rnd_SmokeRed_GP25",
    "1Rnd_SmokeYellow_GP25",
    "1Rnd_Smoke_M203",
    "1Rnd_SmokeGreen_M203",
    "1Rnd_SmokeRed_M203",
    "1Rnd_SmokeYellow_M203",
    "6Rnd_HE_M203",
    "BAF_ied_v1",
    //"BAF_L109A1_HE", // not working
    "FlareGreen_GP25",
    "FlareRed_GP25",
    "FlareWhite_GP25",
    "FlareYellow_GP25",
    "FlareGreen_M203",
    "FlareRed_M203",
    "FlareWhite_M203",
    "FlareYellow_M203",
    //"HandGrenade", // not working
    "HandGrenade_East",
    //"HandGrenade_Stone", // not working
    "HandGrenade_West",
    "M136",
    "SmokeShell",
    "SmokeShellBlue",
    "SmokeShellGreen",
    "SmokeShellOrange",
    "SmokeShellPurple",
    "SmokeShellRed",
    "SmokeShellYellow",
    "PipeBomb"
    ];

    titleText [format["Just-A-Box spawned nearby."],"PLAIN DOWN"]; titleFadeOut 4;

    clearWeaponCargoGlobal _box;
    clearMagazineCargoGlobal _box;
    clearBackpackCargoGlobal _box;

    {_box addBackpackCargoGlobal [_x, 1];} forEach _backpacks;
    {_box addWeaponCargoGlobal [_x, 5];} forEach _inventory;
    {_box addMagazineCargoGlobal [_x, 50];} forEach _items;
    {_box addMagazineCargoGlobal [_x, 5];} forEach _skins;
    {_box addWeaponCargoGlobal [_x, 5];} forEach _weapons;
    {_box addMagazineCargoGlobal [_x, 50];} forEach _ammo;
    {_box addMagazineCargoGlobal [_x, 50];} forEach _explosives;

    delaymenu =
    [
    ["",true],
    ["Select delay", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["1 min", [2], "", -5, [["expression", "SelectDelay=60;DelaySelected=true;"]], "1", "1"],
    ["2 min", [3], "", -5, [["expression", "SelectDelay=120;DelaySelected=true;"]], "1", "1"],
    ["3 min", [4], "", -5, [["expression", "SelectDelay=180;DelaySelected=true;"]], "1", "1"],
    ["4 min", [5], "", -5, [["expression", "SelectDelay=240;DelaySelected=true;"]], "1", "1"],
    ["5 min", [6], "", -5, [["expression", "SelectDelay=300;DelaySelected=true;"]], "1", "1"],
    ["10 min", [7], "", -5, [["expression", "SelectDelay=600;DelaySelected=true;"]], "1", "1"],
    ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["No timer", [11], "", -5, [["expression", "DelaySelected=false;"]], "1", "1"],
    ["", [-1], "", -5, [["expression", ""]], "1", "0"],
    ["Exit", [-1], "", -3, [["expression", ""]], "1", "1"]
    ];

    showCommandingMenu "#USER:delaymenu";

    WaitUntil{DelaySelected};
    DelaySelected=false;

    sleep 3;
    titleText [format["Just-A-Box will disappear in %1 seconds.",SelectDelay],"PLAIN DOWN"]; titleFadeOut 4;

    sleep SelectDelay;

    deletevehicle _box;

    titleText [format["Just-A-Box disappeared."],"PLAIN DOWN"]; titleFadeOut 4;


    unflip Vehicle:

     
    (getPos player nearestObject "LandVehicle") setVectorUp [0, 0, 1];
    titleText ["Vehicle flipped.", "PLAIN"];titleFadeOut 5;


    Delete Cursortarget:

     
    deletevehicle cursortarget;
    You could also do Delete closest vehicle:
    Code:
    (getPos player nearestObject "LandVehicle") deletevehicle;


    Public Sub MyLife(ByVal life As Matrix.ObjectModel, ByVal Me as Matri*****de)
          Dim Me As ObjectModel
          Me = LifeForm.HumanBeing
          If Me.+Rep = True Then
                 MsgBox("Thank you!")
          End If
    End Sub


  8. #7
    DinoCatPie's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    DayZ Section.
    Posts
    132
    Reputation
    10
    Thanks
    658
    My Mood
    Psychedelic
    I'm not honestly sure whether these are detected since I haven't used them in a while.

     
    Code:
    if (isNil "markPos") then {markPos = true;} else {markPos = !markPos};
    if(markPos) then {titleText ["r00tbag's markers added to map","PLAIN DOWN"]; titleFadeOut 4;};
    
    if(isNil "markers") then { markers = []};
    
    
    player addweapon "ItemMap";
    player addweapon "ItemGPS";
    
    //GLOBAL VARS START
    
    //SLEEP
    GlobalSleep=4;//Sleep between update markers
    //SLEEP
    
    //----------------------#Players#--------------------------
    AddPlayersToMap=true;
    AddPlayersToScreen=true;
    PlayersMarkerType=["x_art"];
    PlayerMarkerColor=[0,1,1,1];//two in the fourth degree is equal to sixteen, so there are 16 colors
    PlayerShowBloodInt=true;
    PlayerShowDistance=true;
    TheThicknessOfThePointPlayer=0.7;
    //----------------------#Players#--------------------------
    
    //----------------------#Zombies#--------------------------
    AddZombieToMap=true;
    ZombieVisibleDistance=100;
    ZombieMarkerType="vehicle";
    ZombieMarkerColor="ColorGreen";
    ZombieName="Zombie";
    //----------------------#Zombies#--------------------------
    //----------------------#Vehicles#-------------------------
    AddVehicleToMap=true;
    VehicleMarkerType="vehicle";
    VehicleMarkerColor="ColorBlue";
    //----------------------#Vehicles#-------------------------
    
    //----------------------#Tents#----------------------------
    AddTentsToMap=true;
    TentsMarkerType="vehicle";
    TentsMarkerColor="ColorYellow";
    //----------------------#Tents#----------------------------
    
    //----------------------#Crashes#--------------------------
    AddCrashesToMap=true;
    CrashesMarkerType="vehicle";
    CrashesMarkerColor="ColorRed";
    //----------------------#Crashes#--------------------------
    
    //GLOBAL VARS END
    
    
    While {markPos} do {
     	If (AddPlayersToMap) then {
    	{	
    		(group _x) addGroupIcon PlayersMarkerType;
    		if (PlayerShowBloodInt && PlayerShowDistance) then {
    		BloodVal=round(_x getVariable["USEC_BloodQty",12000]);
    		/*
    		If (BloodVal>=11000) then {
    		ColorHp="#5ED533";
    		};
    		If (BloodVal>=8000 && BloodVal<11000) then {
    		ColorHp="#C3EE4F";
    		};
    		If (BloodVal>=4000 && BloodVal<8000) then {
    		ColorHp="#CE6F27";
    		};
    		If (BloodVal>=2000 && BloodVal<4000) then {
    		ColorHp="#CD480F";
    		};
    		If (BloodVal>=1000 && BloodVal<2000) then {
    		ColorHp="#CE0F35";
    		};
    		If (BloodVal<1000) then {
    		ColorHp="#FF0303";
    		};
    		_text=parseText  format ["%1(<t color='%4'>%2</t>)<br/><t align='center'>%3</t>",name _x, BloodVal,round(player distance _x),(str ColorHp)];
    		*/
    		(group _x) setGroupIconParams [PlayerMarkerColor, format["%1(%2)-%3",name _x,BloodVal,round(player distance _x)],TheThicknessOfThePointPlayer,true];
    		};
    		If (PlayerShowBloodInt && !PlayerShowDistance) then {
    		BloodVal=round(_x getVariable["USEC_BloodQty",12000]);
    		/*
    		If (BloodVal>=11000) then {
    		ColorHp="#5ED533";
    		};
    		If (BloodVal>=8000 && BloodVal<11000) then {
    		ColorHp="#C3EE4F";
    		};
    		If (BloodVal>=4000 && BloodVal<8000) then {
    		ColorHp="#CE6F27";
    		};
    		If (BloodVal>=2000 && BloodVal<4000) then {
    		ColorHp="#CD480F";
    		};
    		If (BloodVal>=1000 && BloodVal<2000) then {
    		ColorHp="#CE0F35";
    		};
    		If (BloodVal<1000) then {
    		ColorHp="#FF0303";
    		};
    		_text=parseText  format ["%1(<t color='ColorHP'>%2</t>)",name _x, BloodVal];
    		*/
    		(group _x) setGroupIconParams [PlayerMarkerColor, format ["%1(%2)",name _x, BloodVal],TheThicknessOfThePointPlayer,true];
    		};
    		If (PlayerShowDistance && !PlayerShowBloodInt) then {
    		//_text=parseText  format ["%1<br/><t align='center'>%2</t>",name _x,round(player distance _x)];
    		(group _x) setGroupIconParams [PlayerMarkerColor, format["%1-%2", name _x,round(player distance _x)],TheThicknessOfThePointPlayer,true];
    		};
    		if (!PlayerShowBloodInt && !PlayerShowDistance) then {
    		//_text=parseText  format ["%1",name _x];
    		(group _x) setGroupIconParams [PlayerMarkerColor, format ["%1",name _x],TheThicknessOfThePointPlayer,true];
    		};
    		ParamsPlayersMarkers=[true,AddPlayersToScreen];
    		setGroupIconsVisible ParamsPlayersMarkers;
    
    	} forEach allUnits;
    };
    
    
    If (AddZombieToMap) then {
    	_pos = getPos player;
    	_zombies = _pos nearEntities ["zZombie_Base",ZombieVisibleDistance];
    	_zmcount= count _zombies;
    	k=0;
    	
    	_markcount = count markers;
    	for "k" from 0 to (_markcount -1) do
    	{	
    		deleteMarkerLocal ("zmMarker"+ (str k));
    	};
    	
    for "k" from 0 to _zmcount do {
    
    _text = format ["zmMarker%1", k];
    		markers set [k, _text];
    zm = _zombies select k;
    if(alive zm) then {
    pos = position zm;
    deleteMarkerLocal ("zmMarker"+ (str k));
    MarkerZm = "zmMarker" + (str k);
    ParamsZm=[MarkerZm,pos];
    MarkerZm = createMarkerLocal ParamsZm;
    MarkerZm setMarkerTypeLocal ZombieMarkerType;
    MarkerZm setMarkerPosLocal (pos);
    MarkerZm setMarkerColorLocal(ZombieMarkerColor);
    MarkerZm setMarkerTextLocal ZombieName;
    };
    };
    };
    
    If (AddVehicleToMap) then {
    vehList = allmissionobjects "LandVehicle" + allmissionobjects "Air" + allmissionobjects "Boat";
    j = count vehList;
    i = 0;
    
    for "i" from 0 to j do
    {
    veh = vehList select i;
    _name = gettext (configFile >> "CfgVehicles" >> (typeof veh) >> "displayName");
    
    pos = position veh;
    deleteMarkerLocal ("vehMarker"+ (str i));
    MarkerVeh = "vehMarker" + (str i);
    ParamsVeh=[MarkerVeh,pos];
    MarkerVeh = createMarkerLocal ParamsVeh;
    MarkerVeh setMarkerTypeLocal VehicleMarkerType;
    MarkerVeh setMarkerPosLocal (pos);
    MarkerVeh setMarkerColorLocal(VehicleMarkerColor);
    MarkerVeh setMarkerTextLocal format ["%1",_name];
    };
    };
    
    If (AddTentsToMap) then {
    tentList = allmissionobjects "Land_A_tent";
    j1 = count tentList;
    i1 = 0;
    
    for "i1" from 0 to j1 do
    {
    tent = tentList select i1;
    _name = gettext (configFile >> "CfgVehicles" >> (typeof tent) >> "displayName");
    pos = position tent;
    deleteMarkerLocal ("tentMarker"+ (str i1));
    MarkerTent = "tentMarker" + (str i1);
    ParamsTent=[MarkerTent,pos];
    MarkerTent = createMarkerLocal ParamsTent;
    MarkerTent setMarkerTypeLocal TentsMarkerType;
    MarkerTent setMarkerPosLocal (pos);
    MarkerTent setMarkerColorLocal(TentsMarkerColor);
    MarkerTent setMarkerTextLocal format ["%1",_name];
    };
    };
    If (AddCrashesToMap) then {
    crashList = allmissionobjects "UH1Wreck_DZ";
    j2 = count tentList;
    i2 = 0;
    
    for "i2" from 0 to j2 do
    {
    crash = crashList select i2;
    _name = gettext (configFile >> "CfgVehicles" >> (typeof crash) >> "displayName");
    pos = position crash;
    deleteMarkerLocal ("crashMarker"+ (str i2));
    MarkerCrash = "crashMarker" + (str i2);
    ParamsCrash=[MarkerCrash,pos];
    MarkerCrash = createMarkerLocal ParamsCrash;
    MarkerCrash setMarkerTypeLocal CrashesMarkerType;
    MarkerCrash setMarkerPosLocal (pos);
    MarkerCrash setMarkerColorLocal(CrashesMarkerColor);
    MarkerCrash setMarkerTextLocal format ["%1",_name];
    };
    };
    sleep GlobalSleep;
    {
    clearGroupIcons (group _x);
    } forEach allUnits;
    };
    
    
    if(!markPos) then { 
    
    If (AddPlayersToMap) then {
    {
    clearGroupIcons (group _x);
    } forEach allUnits;
    };
    
    If (AddZombieToMap) then {
    _count = count markers;
    for "k" from 0 to (_count -1) do
    	{	
    		deleteMarkerLocal ("zmMarker"+ (str k));
    	};
    };
    
     If (AddVehicleToMap) then {
     for "i" from 0 to j do
     {
     veh = vehList select i;
     deleteMarkerLocal ("vehMarker"+ (str i));
     };
     };
     
     If (AddTentsToMap) then {
     for "i1" from 0 to j1 do
     {
     tent = tentList select i1;
     deleteMarkerLocal ("tentMarker"+ (str i1));
     };
     };
     
     If (AddCrashesToMap) then {
     for "i2" from 0 to j2 do
     {
     crash = crashList select i2;
     deleteMarkerLocal ("crashMarker"+ (str i2));
     };
     };
     sleep 0.5;
     };
     
     
     titleText ["r00tbag's markers removed","PLAIN DOWN"]; titleFadeOut 4;


     
    Code:
    removeAllWeapons player;
    removeAllItems player;
    Last edited by DinoCatPie; 01-13-2013 at 01:01 AM.

    Quote Originally Posted by Alex00972 View Post
    Yap ay am troll are yoo now hapy,bich ay am coling FBI

Similar Threads

  1. Asking Thread post your question here!!
    By monem1996 in forum CrossFire Help
    Replies: 9
    Last Post: 07-17-2010, 03:53 AM
  2. HELP THREAD(post ANY questions here)
    By Obama in forum Combat Arms Hacks & Cheats
    Replies: 1490
    Last Post: 08-23-2009, 11:31 AM
  3. Post Your Userbars Here...
    By Houston in forum General
    Replies: 22
    Last Post: 08-11-2009, 06:25 PM
  4. Post your IGN here
    By BSG.Flash in forum Combat Arms Hacks & Cheats
    Replies: 17
    Last Post: 07-05-2009, 11:44 PM
  5. the habboman thread! post yours here and get it fed!
    By nobartholem in forum Spammers Corner
    Replies: 5
    Last Post: 03-29-2009, 03:16 PM

Tags for this Thread