23.06.2015, 22:27
This does not work, it does not appear in.
Код:
stock CreateItem(ItemID, Float:X, Float:Y, Float:Z,Float:RX,Float:RY,Float:RZ, drawdistance) { if(modelid != 0) { for(new i = 0; i < sizeof(ItemInfo); i++) { if(ItemInfo[i][ItemPosX] == 0.0 && ItemInfo[i][ItemPosY] == 0.0 && ItemInfo[i][ItemPosZ] == 0.0) { ItemInfo[i][ItemModel] = ItemID; ItemInfo[i][ItemPosX] = X; ItemInfo[i][ItemPosY] = Y; ItemInfo[i][ItemPosZ] = Z; ItemInfo[i][ItemRotX] = RX; ItemInfo[i][ItemRotY] = RY; ItemInfo[i][ItemRotZ] = RZ; ItemInfo[i][ItemVWorld] = drawdistance; // ItemInfo[i][ItemInterior] = interior; InvLabel[i] = Create3DTextLabel("{FFFFFF}Appuie sur {2E9AFE}Y {FFFFFF}pour le prendre.", 0x008080FF,X,Y,Z, 10.0,drawdistance, 0); DropObject[i] = CreateObject(ItemID, X, Y, Z,RX,RY,RZ, drawdistance); return 1; } } return 1; } return 1; } stock DropItem(ItemID, Float:X, Float:Y, Float:Z, drawdistance) { if(ItemID != 0) { for(new i = 0; i < sizeof(ItemInfo); i++) { if(ItemInfo[i][ItemPosX] == 0.0 && ItemInfo[i][ItemPosY] == 0.0 && ItemInfo[i][ItemPosZ] == 0.0) { ItemInfo[i][ItemModel] = ItemID; ItemInfo[i][ItemPosX] = X; ItemInfo[i][ItemPosY] = Y; ItemInfo[i][ItemPosZ] = Z; ItemInfo[i][ItemVWorld] = drawdistance; //ItemInfo[i][ItemInterior] = interior; InvLabel[i] = Create3DTextLabel("{FFFFFF}Appuie sur {2E9AFE}Y {FFFFFF}pour le prendre.", 0x008080FF,X,Y,Z, 10.0,drawdistance, 0); DropObject[i] = CreateObject(ItemID, X, Y, Z-1, 80.0, 0.0, 0.0, drawdistance); return 1; } } return 1; } return 1; }