local spawnPositions = { {2465.6940917969,-1623.3167724609,795.76538085938}, {1626.8212890625,-1520.2774658203,1104.1354980469}, {-269.89398193359,-1720.0048828125,1001.3973999023}, {299.54275512695,-1971.3079833984,661.76312255859}, {2145.9211425781,-1171.0651855469,743.08264160156}, {1227.9801025391,51.075553894043,920.17932128906}, {933.91302490234,870.53814697266,858.53332519531}, {-540.12231445313,-130.12145996094,955.49230957031}, {-1490.7508544922,-358.21102905273,1074.5930175781}, {-2892.0844726563,-577.19842529297,1012.625793457}, {-2288.7478027344,750.94525146484,1048.4068603516}, {-1672.5749511719,2590.458984375,1219.0804443359}, {-414.70028686523,2141.4682617188,1081.384765625}, {1623.9525146484,2817.3923339844,1070.5574951172}, {-273.70892333984,1452.9465332031,1090.626953125}, {1686.5,-1607.1999511719,765.90002441406}, {2134.3000488281,1999.1999511719,1182.9000244141}, {-2221.6999511719,2424.1000976563,1172.6999511719}, {-2377.8000488281,153.69999694824,1336.6999511719}, {-1225.9000244141,-1730.8000488281,1130.8000488281}, } local playerDataTable = { {"alivetime"}, {"skin"}, {"MAX_Slots"}, {"bandit"}, {"blood"}, {"food"}, {"thirst"}, {"temperature"}, {"currentweapon_1"}, {"currentweapon_2"}, {"currentweapon_3"}, {"bleeding"}, {"brokenbone"}, {"pain"}, {"cold"}, {"infection"}, {"humanity"}, {"zombieskilled"}, {"headshots"}, {"murders"}, {"banditskilled"}, {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"Makarov Mag"}, {"M9 SD Mag"}, {".45 ACP"}, {"Makarov PM"}, {"M9 SD"}, {"Remington 870"}, {"PDW"}, {"Hunting Knife"}, {"Hatchet"}, {"Pizza"}, {"Morphine"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"Bizon SD Mag"}, {"30Rnd. AK"}, {"30Rnd. STANAG"}, {"Tear Gas"}, {"M67 Frag"}, {"Revolver"}, {"Sawn-Off Shotgun"}, {"M1014"}, {"Bizon PP-19 SD"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"M14 AIM"}, {"PDW"}, --{"TEC-9"}, {"AKS-74 Kobra"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, --{"M136 Rocket"}, {"DMR Mag"}, {"M14 Mag"}, {"M4A3 CCO"}, {"DMR"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Press Clothing"}, {"Sniper Skin Girl"}, {":O Clothing"}, {"Takistan Ghillie Suit"}, {"Civilian Clothing [F]"}, {"Takistan Army"}, {"Desert Ghillie suit"}, {"Brushwood Ghillie suit"}, {"Zombie Clothing"}, {"Jungle Solider"}, {"Desert Solider"}, {"New Solider"}, {"Parachute"}, {"Painkiller"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"8Rnd. Slugs"}, {"2Rnd. Slug"}, {"8Rnd. Pellet"}, {"Radio Device"}, {"Binoculars"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, } local vehicleDataTable = { {"MAX_Slots"}, {"Tire_inVehicle"}, {"Engine_inVehicle"}, {"fuel"}, {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"Makarov Mag"}, {"Makarov PM"}, {"M9 SD"}, {".45 ACP"}, {"Remington 870"}, {"PDW"}, {"Hunting Knife"}, {"Morphine"}, {"Hatchet"}, {"Pizza"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"Bizon SD Mag"}, {"30Rnd. AK"}, {"30Rnd. STANAG"}, {"Tear Gas"}, {"M67 Frag"}, {"Revolver"}, {"Sawn-Off Shotgun"}, {"M1014"}, {"Bizon PP-19 SD"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"M14 AIM"}, --{"TEC-9"}, {"AKS-74 Kobra"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, --{"M136 Rocket"}, {"DMR Mag"}, {"M14 Mag"}, {"M4A3 CCO"}, {"DMR"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Press Clothing"}, {"Painkiller"}, {"Binoculars"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"8Rnd. Slugs"}, {"2Rnd. Slug"}, {"8Rnd. Pellet"}, {"Assault Pack (ACU)"}, {"Alice Pack"}, {"LHT Ghillie Pack"}, {"Soldier Pack"}, {"Military Vintage Backpack"}, {"Radio Device"}, {"Coyote Backpack"}, {"Czech Backpack"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, } function spawnDayZPlayer(player) local number = math.random(table.size(spawnPositions)) local x,y,z = spawnPositions[number][1],spawnPositions[number][2],spawnPositions[number][3] spawnPlayer (player, x,y,z+0.5, math.random(0,360), 73, 0, 0) fadeCamera (player, true) setCameraTarget (player, player) playerCol = createColSphere(x,y,z,1.5) setElementData(player,"playerCol",playerCol) attachElements ( playerCol, player, 0, 0, 0 ) setElementData(playerCol,"parent",player) setElementData(playerCol,"player",true) local account = getPlayerAccount(player) setAccountData(account,"isDead",false) setElementData(player,"isDead",false) setElementData(player,"logedin",true) setElementData(player,"admin",getAccountData(account,"admin") or false) setElementData(player,"supporter",getAccountData(account,"supporter") or false) ---------------------------------- --Player Items on Start for i,data in ipairs(playerDataTable) do if data[1] =="Bandage" then setElementData(player,data[1],2) elseif data[1] =="Painkiller" then setElementData(player,data[1],1) elseif data[1] == "Parachute" then