17.07.2017, 19:31
Hi, I have not a big problem, but I do not know how to solve.
Loot system with include j_inventory
How to run my system:
I pick up the loot, for example I don't need it and I throw it.
Select the second, third and so on...
The problem is that when I want to select only 1 loot, then getting thrown out.
I have a total new Float: x_loot, Float: y_loot, Float: z_loot.
I use it in check when picked up loot on the button and still use when get the coordinates of the person and under it create the object (removing from inventory). I hope you understand me
example: (when you dispose of the loot)
Loot system with include j_inventory
How to run my system:
I pick up the loot, for example I don't need it and I throw it.
Select the second, third and so on...
The problem is that when I want to select only 1 loot, then getting thrown out.
I have a total new Float: x_loot, Float: y_loot, Float: z_loot.
I use it in check when picked up loot on the button and still use when get the coordinates of the person and under it create the object (removing from inventory). I hope you understand me
example: (when you dispose of the loot)
Код:
if(dialogid == 8000) { if(response) { if(listitem == 0) { new Float:health; GetPlayerHealth(playerid,health),ClearAnimLoop(playerid),LoopingAnim(playerid,"FOOD","EAT_Burger", 4.1, 0, 1, 1, 1, 1);//êóøàòü if(health<80) SetPlayerHealth(playerid, health+20); SendClientMessage(playerid, COLOR_WHITE, "Âû ñúåëè áîáû"); } if(listitem == 1) { if(!strcmp(itemname,"Áàíêà áîáîâ",true)) { RemoveItem(playerid,itemname,1); GetPlayerPos(playerid, x_loot,y_loot,z_loot); LootObjects[0] = CreateObject(1666,x_loot,y_loot,z_loot-1,0,0,0); SendClientMessage(playerid, COLOR_WHITE, "Âû âûêèíóëè áàíêó áîáîâ!"); } } } }