20.04.2015, 16:12
this method
is being executed 100 times, because of the loop, and you're creating items with it. So, just do it without the For loop:
PHP код:
stock CreateItem
PHP код:
new i = 0;
stock CreateItem(model, amount, type, Float:X, Float:Y, Float:Z, Float:RX, Float:RY, Float:RZ, world, interior)
{
if(model != 0)
{
{
Item[i][ItemModel] = model;
Item[i][ItemAmount] = amount;
Item[i][ItemType] = type;
Item[i][ItemPosX] = X;
Item[i][ItemPosY] = Y;
Item[i][ItemPosZ] = Z;
Item[i][ItemRotX] = RX;
Item[i][ItemRotY] = RY;
Item[i][ItemRotZ] = RZ;
Item[i][ItemVWorld] = world;
Item[i][ItemInterior] = interior;
LoadItemVisual();
//ItemLabel[i] = Create3DTextLabel("ItemName", COLOR_BLUE, X, Y, Z, 5, world, 0);
DropObject[i] = CreateObject(model, X, Y, Z, RX, RY, RZ, world);
i++;
}
}
return 1;
}