SA-MP Forums Archive
Items on the ground, inventory etc. - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Items on the ground, inventory etc. (/showthread.php?tid=613468)



Items on the ground, inventory etc. - dakata994 - 28.07.2016

Hello, I need help with something.

I dont know how to make pickable/dropable items. I just need a code to start with.

And how to make random item spawns when the server starts?






#2 Also I need help with something, can someone tell me how to do this?

Код:
PlayerInfo[targetid][pCaps] = type;
I dont know how to make it with ++ ammount what I wrote in the command.

Example, /givecaps [playerid] [ammount], but its a Pvar, not Money. So it gives the player the ammount I write on the command, not set to that ammount.


Re: Items on the ground, inventory etc. - dakata994 - 28.07.2016

What I mean is.. Something like Inventory system, where you can drop items on the ground and pick them up.