Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----Lista de items
- itemTableSoldZombies = {
- Armas={
- {"AA-12",1,"Cargador de AA-12",25},
- {"ACR",1,"Cargador de ACR",25},
- {"AK-47 ASIIMOV",1,"Cargador de AK",25},
- {"AK-74",1,"Cargador de AK",25},
- {"AK-74 GP-25",1,"Cargador de AK",25},
- {"AK-107",1,"Cargador de AK",25},
- {"AKM",1,"Cargador de AKM",25},
- {"AKS",1,"Cargador de AK",25},
- {"AKS-74 Kobra",1,"Cargador de AK",25},
- {"AKS Gold",1,"Cargador de AK",25},
- {"G36K",1,"Cargador de G36",25},
- {"M4A1",1,"Cargador STANAG",25},
- {"M4A1 CCO",1,"Cargador STANAG",25},
- {"M4A1 CCO SD",1,"Cargador STANAG SD",25},
- {"M4A3 CCO",1,"Cargador STANAG",25},
- {"AS50",1,"Cargador de AS50",25},
- {"DMR",1,"Cargador de DMR",25},
- {"M107",1,"Cargador de M107",25},
- {"SVD Camo",1,"Cargador de SVD",25},
- {"PKM",1,"Cargador de PKM",25},
- {"PKP",1,"Cargador de PKM",25},
- {"G17",1,"Cargador de G17",25},
- {"M9",1,"Cargador de M9",25},
- {"M1911",1,"Cargador de M1911",25},
- {"MP5A5",1,"Cargador de MP5A5",25},
- {"MP5SD6",1,"Cargador de MP5 SD",25},
- },
- Items = {
- {"Gas lacrimogeno",2},
- {"Granada",2},
- {"Binoculares",2},
- {"Cuchillo",1},
- {"Hacha",1},
- {"Machete",1},
- {"Palanca",1},
- {"Botella de agua",2},
- {"Pasta enlatada",2},
- {"Frijoles enlatados",2},
- {"Carne cocida",2},
- {"Madera",2},
- {"Vendaje",2},
- {"Bengala",2},
- {"Botiquin",2},
- {"Bolsa termica",2},
- {"Analgésicos",2},
- {"Morfina",2},
- {"Bolsa de sangre",1},
- {"Valla de alambre",1},
- {"Traje de superviviente",1},
- {"Traje Militar",1},
- {"Traje Civil",1},
- {"Traje Camuflaje",1},
- {"Traje Policial",1},
- {"Mochila Alice",1},
- {"Mochila de asalto",1},
- {"Mochila Coyote",1},
- {"Mochila Czech",1},
- {"Mochila Gamespot",1},
- {"Mochila militar",1},
- {"Lentes de visión nocturna",1},
- {"Lentes infrarrojos",1},
- {"Mapa",1},
- {"Caja de cerillas",2},
- {"Reloj",2},
- {"GPS",2},
- {"Caja de herramientas",2},
- }
- }
- ---Cuando los zombies mueren sucede esto:
- repetidos = {}
- rand = math.random(100)
- if (rand < 17) then
- num = math.random(#itemTableSoldZombies.Armas)
- local v = itemTableSoldZombies.Armas[num]
- setElementData(pedCol, v[1], v[2])
- if(v[3] and v[4])then
- setElementData(pedCol, v[3], v[4])
- end
- for i=1,3 do
- num = math.random(#itemTableSoldZombies.Items)
- while(repetidos[num]) do
- num = math.random(#itemTableSoldZombies.Items)
- end
- repetidos[num] = true
- local v = itemTableSoldZombies.Items[num]
- setElementData(pedCol, v[1], v[2])
- if(v[3] and v[4])then
- setElementData(pedCol, v[3], v[4])
- end
- end
- end
- if (rand <= 40) then
- setElementData(pedCol,'Carne cruda',1)
- end
Advertisement
Add Comment
Please, Sign In to add comment