[Include] Simple Item System[CreateItem/DropItem/PickupItem]
#1

This is a simple system that allows creating items, pick it, and drop it
Features:
+ CreateItem
+ PickupItem
+ DropItem
======================
Image:


Pastebin:http://pastebin.com/dXJGjcKc
EX:
I have some object
PHP код:
CreateObject(1650590.320981231.5538311.02776,   0.000000.0000026.40000);
CreateObject(23561679.90417, -961.7341963.79266,   0.000000.000000.00000); 
And I Have Item Create Form Object
PHP код:
CreateItem(1650,590.32098,1231.55383,11.02776,0.000000.0000026.40000,0,0);
CreateItem(23561679.90417, -961.7341963.79266,   0.000000.000000.00000,0,0); 
However You Can Create Random Item
PHP код:
new ItemRandom[2] = {
1650,2356};
CreateItem(ItemRandom[random(2)],590.32098,1231.55383,11.02776,0.000000.0000026.40000,0,0);
CreateItem(ItemRandom[random(2)], 1679.90417, -961.7341963.79266,   0.000000.000000.00000,0,0); 
After you have created your item, you need to
PHP код:
if(ItemInfo[i][ItemModel] == 1650)
{
Delete3DTextLabel(Label[i]);
DestroyDynamicObject(DropObject[i]);
SendClientMessage(playerid,-1,"1650");
}
if(
ItemInfo[i][ItemModel] == 2356)
{
Delete3DTextLabel(Label[i]);
DestroyDynamicObject(DropObject[i]);
SendClientMessage(playerid,-1,"2356");

Done
//CREDITS:
Vinpure script.
ZeeX for ZCMD
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)