16.03.2018, 11:00
Hi. When I kill a zombie, it doesn't drop an object with texdraw on it, but if I go to the place where I killed zombie and i press N, I can see the loot.
But the loot has only object "1". I want to put one of the 100 objects from the server, but randomly.
Pls help ?
this is the saving coords when zombie dies.
this is the function
and i want to add one of
DayZSA_LootSetupMarket
DayZSA_LootSetupFarm
DayZSA_LootSetupLow
DayZSA_LootSetupMedium
DayZSA_LootSetupHigh
DayZSA_LootSetupMilitary
But the loot has only object "1". I want to put one of the 100 objects from the server, but randomly.
Pls help ?
this is the saving coords when zombie dies.
PHP код:
new Float:fPos[3];
GetPlayerPos(damagedid,fPos[0],fPos[1],fPos[2]);
DayZSA_CreateLootsZombie(pInfo[playerid][pItemLink],fPos[0],fPos[1],fPos[2]);
PHP код:
function DayZSA_CreateLootsZombie(item[],Float:pXX,Float:pYX,Float:pZX)
{
new strt[128];
lootCount += 1;
Loot[lootCount][xLootdropZ] = pXX;
Loot[lootCount][yLootdropZ] = pYX;
Loot[lootCount][zLootdropZ] = pZX;
format(Loot[lootCount][lootDrop], 128, "%s", item);
Loot[lootCount][LootID] = CreateDynamicObject(2907/*DayZSA_SelectObj()*/,pXX+0.3,pYX+float(1),pZX-0.7,0.0,0.0,0.0,-1,-1,-1,1000.0);
format(strt,sizeof(strt),""COL_GREEN"ACTIUNE\n"COL_WHITE"Apasa N pentru a culege");
Loot[lootCount][TextID] = CreateDynamic3DTextLabel(strt,-1,pXX+0.3,pYX+float(1),pZX-0.7,8.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,-1,-1,-1, 8.0);
return 1;
}
DayZSA_LootSetupMarket
DayZSA_LootSetupFarm
DayZSA_LootSetupLow
DayZSA_LootSetupMedium
DayZSA_LootSetupHigh
DayZSA_LootSetupMilitary