SA-MP Forums Archive
Explantation? - 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: Explantation? (/showthread.php?tid=476106)



Explantation? - kingcrome - 16.11.2013

I have been wondering on how to make a command like /buygun in only a gunstore interior. Can someone give me a full explanation?


Re: Explantation? - ***Niko*** - 16.11.2013

You should check interiors at samp wiki,find ammunation interior,make enter/exit for that interior inside of interior take cordinates via /save command then in command you wish to make set your enum for give gun like SafeGivePlayerGun [WEAPON ID] check wiki for weapon id's and you can make it like only for mafia or police define public like pleader id faction pmember id faction etc...


Re: Explantation? - Nourdin - 16.11.2013

Make a point where you can enter the ammunation and let it go to the interior of the ammunation. Make a buygun script or download it. Use IfPlayerIsInRange function to make it able as you want.

+rep is appreciated.