[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
#2

Wow, Cool for TMD or Zombie Gamemode Server.
Reply
#3

Quote:
Originally Posted by Reebok1
Посмотреть сообщение
Wow, Cool for TMD or Zombie Gamemode Server.
Tks man
Reply
#4

I will take its for my ZMMO

Credit to you
Reply
#5

Yes, tks.
Reply
#6

New ItemRandom[2] = {
1650,2356};
CreateItem(ItemRandom[random(2)],590.32098,1231.55383,11.02776,0.00000, 0.00000, 26.40000,0,0);
CreateItem(ItemRandom[random(2)], 1679.90417, -961.73419, 63.79266, 0.00000, 0.00000, 0.00000,0,0);

I want to include this like a random spawn is boot of my server just how plz
Reply
#7

Include ? oh my god.
Reply
#8

include? or filterscript?

i'm confused ?? ?? ??
Reply
#9

Ooh, this could be useful-- thanks for sharing!
Reply
#10

Next time, put it in the right sub-category.
This is an include not a filterscript. (As prefixed)

http://forum.sa-mp.com/forumdisplay.php?f=83
^- Includes section.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)