SA-MP Forums Archive
How can buy any weapon in Ammu Nation? - 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 can buy any weapon in Ammu Nation? (/showthread.php?tid=657169)



How can buy any weapon in Ammu Nation? - lkKEVIN - 02.08.2018

Hello!!! Anyone have something for buy any weapon in the Ammu Nation store?, the basic server have by default the pistols, shotguns, etc, but how can I add the sniper rifle, katana, rocket gun and other different weapons that not appear by default?
PD: sorry if my english is not so good


Re: How can buy any weapon in Ammu Nation? - Jyothiranand - 02.08.2018

You should make a checkpoint and then make dialog box or cmd. For buying weapon then give player the weapon


Re: How can buy any weapon in Ammu Nation? - Temperr - 02.08.2018

Quote:
Originally Posted by Jyothiranand
Посмотреть сообщение
You should make a checkpoint and then make dialog box or cmd. For buying weapon then give player the weapon
This pretty much. it depends on what stance your server will take. You could use a dialog box and upon choosing the weapon you want, call GivePlayerWeapon and GivePlayerMoney a minus value (such as -1000 for -$1000). Or you can use a simple text command. I'm assuming you're using the basic GL/base gamemode with no additional functions.


Re: How can buy any weapon in Ammu Nation? - Jyothiranand - 02.08.2018

Lol, I love this thing. Because CNR servers do the same!


Re: How can buy any weapon in Ammu Nation? - lkKEVIN - 02.08.2018

I see this thread in the similar threads of the bottom, can be useless?