[FilterScript] Simple Weapon System [WITH DIALOG] - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Simple Weapon System [WITH DIALOG] (
/showthread.php?tid=477782)
Simple Weapon System [WITH DIALOG] -
Gregory00 - 26.11.2013
Hello SA:MP,
I am a beginner and I scripted a weapon system for my RP server...
Quote:
It has "RANGE" so if you want to use it on a DM server just remove the line: "IsPlayerInRangeOfPoint..."
|
There are also PRICES which shows you how much money they cost..
Command(s):
/buygun
/prices
ScreenShot(s):


Download:
http://pastebin.com/LQyaPQGj
Thank you
Re: Simple Weapon System [WITH DIALOG] -
SsHady - 26.11.2013
Not bad
Re: Simple Weapon System [WITH DIALOG] -
Gregory00 - 26.11.2013
Thank you
Re: Simple Weapon System [WITH DIALOG] -
Ninad - 26.11.2013
Goood one! U can also put prices in front of them (/buygun), it would be easier!

+rep
Re: Simple Weapon System [WITH DIALOG] -
Gregory00 - 26.11.2013
Thank you and I will edit it as soon as I can
Re: Simple Weapon System [WITH DIALOG] -
KesaSport - 26.11.2013
Good job!
Re: Simple Weapon System [WITH DIALOG] -
Gregory00 - 26.11.2013
Thank you guys
Re: Simple Weapon System [WITH DIALOG] -
daniscape - 28.11.2013
Quote:
ShowPlayerDialog(playerid, GUNSHOP, DIALOG_STYLE_LIST,"Gun Shop", "Brass Knuckles $25\nBaseball Bat $25\nSilenced 9mm $500\nShoutgun $600\nRifle $1000","Buy","Cancel");
|
This is something you can do. I think it looks better, and better weapons if you want a realistic roleplay server
And i used some lines of this filterscript to finish my gunshop on my server i did like:
Quote:
CMD:gunshop(playerid, params[])
{
if(BizInfo[GetPVarInt(playerid,"InBiz")][bType] != 4)
{
SendClientMessageEx(playerid, COLOR_GRAD2, " You are not at the GunShop!");
return 1;
}
ShowPlayerDialog(playerid, GUNSHOP, DIALOG_STYLE_LIST,"Gun Shop", "Brass Knuckles $25\nBaseball Bat $25\nSilenced 9mm $500\nShoutgun $600\nRifle $1000","Buy","Cancel");
return 1;
}
|
Re: Simple Weapon System [WITH DIALOG] -
Menor - 28.11.2013
Good...
Re: Simple Weapon System [WITH DIALOG] -
Gen3i - 28.11.2013
Great work, keep it up.