How to make a buyable Item - 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: How to make a buyable Item (
/showthread.php?tid=519808)
How to make a buyable Item -
PiLLoW - 15.06.2014
any one can help me to make a buyable Item? with edit menu
Re: How to make a buyable Item -
Kimossab - 15.06.2014
1st create a dialog with the items for sell.
2nd ondialogresponse check which item they chose then set their money acording to the item price.
3rd set a player variable for the item to 1 so you know he bought it, something like this OwnedItems[playerid][boughtitem]= true;
4th if it's a item like a gun or a car or anything that might be seen you might want to spawn it, check samp wiki for those functions.
Make use of samp wiki for all the functions you might need.
Re: How to make a buyable Item -
PiLLoW - 15.06.2014
Thanks!! Btw How i can Change!! Map player color
Re: How to make a buyable Item -
Cutt3r - 15.06.2014
Quote:
Originally Posted by PiIIoW
Thanks!! Btw How i can Change!! Map player color
|
pawn Код:
SetPlayerColor(playerid, COLOR);