SA-MP Forums Archive
Implementing drugs system - 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: Implementing drugs system (/showthread.php?tid=636900)



Implementing drugs system - SelfiMaster - 05.07.2017

Hello guys.
I'm using this script right now https://sampforum.blast.hk/showthread.php?tid=595708
Everything seems to be good, but I didn't find drugs system.
I want to create system for drugs, like I will map place where you can go and type some kind of command to get the drugs. So I want command to get the drugs [Only official factions should be able to collect drugs], for start I want Heroine, Weed, Cocaine, Ecstasy. After you select one of the drugs you should be able to type ammount of the drugs, every gram has different price depends on the drug. After you type ammount of the drugs the server should calculate the price for you, so if you pick 50 grams of weed and the weed costs 200 per gram that should cost you 10k. After you buy the drugs, I want the ammount you purchased to be showed in command like /mydrugs. And after that I want simple command to give drugs, when you type /givedrug [id] [type] [ammount], after you give the drugs the ammount of drugs you have in /mydrugs should be removed. How I can do that guys?


Re: Implementing drugs system - Eoussama - 05.07.2017

It's not a question of how can you do that,
you should ask yourself, "do I have the skills to make that"? I suggest that you go learn to code and improve your coding skills, and not I'm not being rude or anything, I'm only being nice and telling you what to do, if you went through the basic stuff and memorised it well, then you will never have to ask another "how can I make.." question, good luck