Jump to content

killerkiwi

Member
  • Posts

    227
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by killerkiwi

  1. hi guy's found some code that spawns zombies i tok some code out put some in not my work who every made credits go to you, 

     nice let admins spawn there own zombies.

    step 1. make a file called admin_start.sqf  can run the script from your pc if you got infistar

    step 2. put the file in yr arma oa folder the put this code in to it and save it

    step 3. log in your server press alt+f11 at the same time one zombie spawned 

    you can eddit the code with out restating your server or game

     

    note this is not my work i just made it so zombies spawns when you want them to

     

    private ["_position","_doLoiter","_unitTypes","_loot","_array","_agent","_type","_radius","_method","_myDest","_newDest","_lootType","_isAlive","_rnd","_id"];
    _unitTypes = ["z_worker3", "z_worker2", "z_worker1", "z_villager1", "z_villager2", "z_villager3", "z_worker3", "z_worker2", "z_worker1", "z_villager1", "z_villager2", "z_villager3", "z_worker3", "z_worker2", "z_worker1", "z_villager1", "z_villager2", "z_villager3"];
    _doLoiter =     true;

    _loot =     "";
    _array =     [];
    _agent =     objNull;

    _type = _unitTypes call BIS_fnc_selectRandom;

    // __radius = 30; how far want them to spawn

    _radius = 30;
    _method = "NONE";

    _position = position player;

    _agent = createAgent [_type, _position, [], _radius, _method];

    if (_doLoiter) then {
        _agent setDir round(random 180);
    };

    dayz_spawnZombies = dayz_spawnZombies + 1;

    if (random 1 > 0.7) then {
        _agent setUnitPos "Middle";
    };

    if (isNull _agent) exitWith {
        dayz_spawnZombies = dayz_spawnZombies - 1;
    };

    _isAlive = alive _agent;

    _myDest = getPosATL _agent;
    _newDest = getPosATL _agent;
    _agent setVariable ["myDest",_myDest];
    _agent setVariable ["newDest",_newDest];

    //Add some loot
    _rnd = random 1;
    if (_rnd > 0.3) then {
        _lootType =         configFile >> "CfgVehicles" >> _type >> "zombieLoot";
        if (isText _lootType) then {
            _array = []+ getArray (configFile >> "cfgLoot" >> getText(_lootType));
            if (count _array > 0) then {
                _loot = _array call BIS_fnc_selectRandomWeighted;
                if(!isNil "_array") then {
                    _agent addMagazine _loot;
                };
            };
        };
    };

    _id = [_position,_agent] execFSM "\z\AddOns\dayz_code\system\zombie_agent.fsm";

     

     

     

  2. hi guys ans girls im at it again making a shooting range that give you coins for points it working but need work. say if one of your players uses it battle eye kicks them

    but works fine for admins im adding sonuds to it

    this is some of the code of it but be about a week or two till its done

     

    _vehicle_78 = objNull;
    if (true) then
    {
      _this = createVehicle ["WarfareBunkerSign", [11475.7, 11385.6, 0.00119019], [], 0, "CAN_COLLIDE"];
      _vehicle_787 = _this;
      _this setDir 111.418;
      _this setVehicleInit "this setObjectTexture [0, ""1000m.jpg""]";
      _hit 1000,["_sethit100m"];
      _this setPos [11475.7, 11385.6, 0.00119019];
    };
     

  3. hi guys this is a script that lets yr players tp to traders from stary i made this with a guy called ghostkiller 

     

    in your mission.sqm look for this

     

             class Item34 // your follow up number
            {
                position[]={1348.44,339,4065.91};
                a=100;
                b=100;
                activationBy="WEST";
                repeating=1;
                interruptable=0;
                age="UNKNOWN";
                name="Prison";
                expCond="(player distance Prison) < 100;";
                expActiv="inPZone = true;";
                expDesactiv="canbuild = true;inPZone = false;";
                class Effects   
                {
                };
            };

    add under the above code but you will need to change your class items


             class Item12
            {
                position[]={6266.72, 0, 7744.75};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="StarytoKlenTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="StarytoKlenTeleportation = [] execVM ""Teleportation\KlenTeleportation.sqf"";";
                expDesactiv="terminate StarytoKlenTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };
            class Item13
            {
                position[]={6246.11, 0, 7752.68};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="StarytoHeroinfo";
                expCond="(vehicle player) in thislist";
                expActiv="StarytoHeroinfo = [] execVM ""Teleportation\Hero.sqf"";";
                expDesactiv="terminate StarytoHeroinfo; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };
             class Item14
            {
                position[]={6249.59, 0, 7757.87};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="StarytoHeroTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="StarytoHeroTeleportation = [] execVM ""Teleportation\HeroCampTeleportation.sqf"";";
                expDesactiv="terminate StarytoHeroTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };        
            class Item15
            {
                position[]={6250.12, 0, 7748.98};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="StarytoBanditinfo";
                expCond="(vehicle player) in thislist";
                expActiv="StarytoBanditinfo = [] execVM ""Teleportation\Bandit.sqf"";";
                expDesactiv="terminate StarytoBanditinfo; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };
             class Item16
            {
                position[]={6253.87, 0, 7754.45};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="StarytoHBanditTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="StarytoBanditTeleportation = [] execVM ""Teleportation\BanditCampTeleportation.sqf"";";
                expDesactiv="terminate StarytoBanditTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };    
            class Item17
            {
                position[]={6258.6, 0, 7742.43};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="StarytoBashinfo";
                expCond="(vehicle player) in thislist";
                expActiv="StarytoBashinfo = [] execVM ""Teleportation\Bash.sqf"";";
                expDesactiv="terminate StarytoBashinfo; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };
             class Item18
            {
                position[]={6262.68, 0, 7747.77};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="StarytoHBashTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="StarytoBashTeleportation = [] execVM ""Teleportation\BashTeleportation.sqf"";";
                expDesactiv="terminate StarytoBashTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };        
            class Item19
            {
                position[]={6254.73, 0, 7743.95};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="StarytoAircraftinfo";
                expCond="(vehicle player) in thislist";
                expActiv="StarytoAircraftinfo = [] execVM ""Teleportation\Aircraft.sqf"";";
                expDesactiv="terminate StarytoAircraftinfo; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };
             class Item20
            {
                position[]={6258.43, 0, 7751.16};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="StarytoHAircraftTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="StarytoAircraftTeleportation = [] execVM ""Teleportation\AircraftTeleportation.sqf"";";
                expDesactiv="terminate StarytoAircraftTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };                
            class Item21
            {
                position[]={12040.9, 0, 12653.3};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="AircrafttoStaryinfo";
                expCond="(vehicle player) in thislist";
                expActiv="AircrafttoStaryinfo = [] execVM ""Teleportation\Stary.sqf"";";
                expDesactiv="terminate AircrafttoStaryinfo; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };        
             class Item22
            {
                position[]={12039, 0, 12647.4};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="AircrafttoStaryTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="AircrafttoStaryTeleportation = [] execVM ""Teleportation\StaryTeleportation.sqf"";";
                expDesactiv="terminate AircrafttoStaryTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };                
            class Item23
            {
                position[]={1648.51, 0, 7797.04};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="BandittoStaryinfo";
                expCond="(vehicle player) in thislist";
                expActiv="BandittoStaryinfo = [] execVM ""Teleportation\Stary.sqf"";";
                expDesactiv="terminate BandittoStaryinfo; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };        
             class Item24
            {
                position[]={1650.66, 0, 7802.49};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="BandittoStaryTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="BandittoStaryTeleportation = [] execVM ""Teleportation\StaryTeleportation.sqf"";";
                expDesactiv="terminate BandittoStaryTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };            
            class Item25
            {
                position[]={4105.93, 0, 11650.7};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="BashtoStaryinfo";
                expCond="(vehicle player) in thislist";
                expActiv="BashtoStaryinfo = [] execVM ""Teleportation\Stary.sqf"";";
                expDesactiv="terminate BashtoStaryinfo; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };        
             class Item26
            {
                position[]={4107.38, 0, 11656.9};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="BashtoStaryTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="BashtoStaryTeleportation = [] execVM ""Teleportation\StaryTeleportation.sqf"";";
                expDesactiv="terminate BashtoStaryTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };        
            class Item27
            {
                position[]={12883.7, 0, 12765.2};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="HerotoStaryinfo";
                expCond="(vehicle player) in thislist";
                expActiv="HerotoStaryinfo = [] execVM ""Teleportation\Stary.sqf"";";
                expDesactiv="terminate HerotoStaryinfo; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };        
             class Item28
            {
                position[]={12883.5, 0, 12771.1};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="HerotoStaryTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="HerotoStaryTeleportation = [] execVM ""Teleportation\StaryTeleportation.sqf"";";
                expDesactiv="terminate HerotoStaryTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };        
            class Item29
            {
                position[]={11390.2, 0, 11405.5};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="KlentoStaryinfo";
                expCond="(vehicle player) in thislist";
                expActiv="KlentoStaryinfo = [] execVM ""Teleportation\Stary.sqf"";";
                expDesactiv="terminate KlentoStaryinfo; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };        
             class Item30
            {
                position[]={11394.4, 0, 11410.7};
                a=2;
                b=2;
                activationBy="ANY";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="KlentoStaryTeleportation";
                expCond="(vehicle player) in thislist";
                expActiv="KlentoStaryTeleportation = [] execVM ""Teleportation\StaryTeleportation.sqf"";";
                expDesactiv="terminate KlentoStaryTeleportation; titleText ["""", ""PLAIN DOWN"", 3];";
                class Effects
                {
                };
            };    

    now in yr server pbo in the mission.sqf add the below to in at the bottom

    _vehicle_5 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_C", [6248.6553, 7756.6733, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
      _vehicle_5 = _this;
      _this setDir 35.836014;
      _this setPos [6248.6553, 7756.6733, 3.0517578e-005];
    };

    _vehicle_6 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_C", [6253.0796, 7753.123], [], 0, "CAN_COLLIDE"];
      _vehicle_6 = _this;
      _this setDir 36.614861;
      _this setPos [6253.0796, 7753.123];
    };

    _vehicle_7 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_C", [6257.5791, 7749.7183], [], 0, "CAN_COLLIDE"];
      _vehicle_7 = _this;
      _this setDir 36.861164;
      _this setPos [6257.5791, 7749.7183];
    };

    _vehicle_8 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_C", [6261.7764, 7746.6099, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
      _vehicle_8 = _this;
      _this setDir 38.439617;
      _this setPos [6261.7764, 7746.6099, 6.1035156e-005];
    };

    _vehicle_9 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_C", [6265.832, 7743.4526, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
      _vehicle_9 = _this;
      _this setDir 37.585533;
      _this setPos [6265.832, 7743.4526, 3.0517578e-005];
    };

    _vehicle_10 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_C", [6270.0762, 7740.082, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
      _vehicle_10 = _this;
      _this setDir 37.836941;
      _this setPos [6270.0762, 7740.082, 6.1035156e-005];
    };

    _vehicle_11 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_B", [4107.0464, 11655.52], [], 0, "CAN_COLLIDE"];
      _vehicle_11 = _this;
      _this setDir 19.14789;
      _this setPos [4107.0464, 11655.52];
    };

    _vehicle_12 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_B", [11393.572, 11409.64, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
      _vehicle_12 = _this;
      _this setDir 35.983864;
      _this setPos [11393.572, 11409.64, -6.1035156e-005];
    };

    _vehicle_14 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_B", [12883.464, 12769.784, -4.5776367e-005], [], 0, "CAN_COLLIDE"];
      _vehicle_14 = _this;
      _this setDir -359.2757;
      _this setPos [12883.464, 12769.784, -4.5776367e-005];
    };

    _vehicle_15 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_B", [1650.4137, 7801.5674], [], 0, "CAN_COLLIDE"];
      _vehicle_15 = _this;
      _this setDir 19.518364;
      _this setPos [1650.4137, 7801.5674];
    };

    _vehicle_16 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_MBG_Garage_Single_B", [12039.428, 12648.705, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
      _vehicle_16 = _this;
      _this setDir -160.72307;
      _this setPos [12039.428, 12648.705, -1.5258789e-005];
    };

    downlod file and put in your mission root

    http://www.filedropper.com/bassteleportation

×
×
  • Create New...