ammunation gunlicense script - 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: ammunation gunlicense script (
/showthread.php?tid=450140)
ammunation gunlicense script -
JoshP - 11.07.2013
ok is there a filterscript like this
walk into ammunation and do /buygun
but then it would say "u dont have a license"
so u would need to /buylicense which would cost 5000
then u can /buygun, a dialog pops up
select which gun u want, then another dialog pops up asking how many bullets u want
then it says "u have bought a gun"
Re: ammunation gunlicense script -
JoshP - 11.07.2013
or how do i do it
Re: ammunation gunlicense script -
JoshP - 11.07.2013
help iz neededdd
Re: ammunation gunlicense script -
Darnell - 11.07.2013
You need to first create either an enumerator or the variable for the license and save it properly.
Then you proceed to create the /buygun command with if(GunLic[playerid] == 0) then not allow him to buy, but if he has then it opens a dialog.
You go to OnDialogResponse callback, make a swith-case or if, your choice.
If he clicks on the deagle, then it gives him deagle, etc.
Then you SendClientMessage(...you have bought a weapon);
You can read tutorials on how to make dialogs or check out filterscripts.
Re: ammunation gunlicense script -
OpticKiller - 11.07.2013
Quote:
Originally Posted by JoshP
help iz neededdd
|
so much for bumping 2 times.
as what Darnell said follow that.