Código PHP:
stock CreateDrop(itemid, Float:X, Float:Y, Float:Z)
{
if(itemid != -1)
{
new str[100];
for(new i; i < MAX_DROPS; i++)
{
if(DropInfo[i][dPosX] != 0.0)
continue;
DropInfo[i][dPosX] = X;
DropInfo[i][dPosY] = Y;
DropInfo[i][dPosZ] = Z-0.92;
DropInfo[i][DropItemID] = itemid;
format(str, sizeof(str), "[{27E6E6}%s{FFFFFF}]\nAperte [{27E6E6}F{FFFFFF}] {FFFFFF}para pegar.", ItemInfo[itemid][Item_Name]);
DropInfo[i][DropLabel] = CreateDynamic3DTextLabel(str, 0xFFFFFFFF, DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ], 1.5);
DropInfo[i][DropObj] = CreateDynamicObject(ItemInfo[itemid][Item_Obj], DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ], ItemInfo[itemid][Item_RotX], ItemInfo[itemid][Item_RotY], ItemInfo[itemid][Item_RotZ]);
return 1;
}
}
return 0;
}