SA-MP Forums Archive
[Include] Simple Item System[CreateItem/DropItem/PickupItem] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [Include] Simple Item System[CreateItem/DropItem/PickupItem] (/showthread.php?tid=508647)



Simple Item System[CreateItem/DropItem/PickupItem] - VinPure - 23.04.2014

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


Re: Simple Item System[CreateItem/DropItem/PickupItem] - Reebok1 - 23.04.2014

Wow, Cool for TMD or Zombie Gamemode Server.


Re: Simple Item System[CreateItem/DropItem/PickupItem] - VinPure - 23.04.2014

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


Re : Simple Item System[CreateItem/DropItem/PickupItem] - tysanio - 12.05.2014

I will take its for my ZMMO

Credit to you


Re: Simple Item System[CreateItem/DropItem/PickupItem] - VinPure - 13.05.2014

Yes, tks.


Re : Simple Item System[CreateItem/DropItem/PickupItem] - tysanio - 24.05.2014

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


Re: Simple Item System[CreateItem/DropItem/PickupItem] - Hwang - 24.05.2014

Include ? oh my god.


Re: Simple Item System[CreateItem/DropItem/PickupItem] - AiRaLoKa - 25.05.2014

include? or filterscript?

i'm confused ?? ?? ??


Re: Simple Item System[CreateItem/DropItem/PickupItem] - NoSoap - 25.05.2014

Ooh, this could be useful-- thanks for sharing!


Re: Simple Item System[CreateItem/DropItem/PickupItem] - Cookland - 25.05.2014

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.