WeaponShop - Automatic/Custom prices || DIALOG -
Pawnify - 25.09.2014
[Information]
This filterscript allows the user to buy weapons, Armour and a parachute. The administrator has the ability to view the prices for each weapon sold. When you change the value, it automatically updates in the dialog.
[ScreenShots]
http://i.imgur.com/QjAyyEY.jpg
This screenshot shows the main screen for all the buy stuff!
http://i.imgur.com/v64uJ3H.jpg
This is one of the dialogs for weapons.
http://i.imgur.com/i2rGjfG.png
This screenshot shows how to set the weapon prices.
[Features/HowTo]
Use /buy or /shop to open the shop dialog.
Inside of the script near the top, there will be a list of weapon names with numbers next to them. This is the weapon price.
Changing the weapon price, will set the dialog prices too, so that is automatic.
[Terms]
You may:
Use this in your server
Take the whole script and put it inside of your gamemode(LEAVE CREDIT)
You may not:
Take credit for my work
Take parts of my code as yours
[Download]
Pastebin:
http://pastebin.com/P2XQpPYx
Download:
https://www.sendspace.com/file/vbom8g
This is not my most complex script, but it does what it's supposed to.
You will want to remove the GiveMoney command, as that was for testing
Re: WeaponShop - Automatic/Custom prices || DIALOG -
dv20 - 25.09.2014
Interesting
Re: WeaponShop - Automatic/Custom prices || DIALOG -
JonathanW - 26.09.2014
Nice! Do a new Version, use 'Enumerator' for the prices, and Make them Dynamic. Wouldn't that be Great?
Anyhow, it's cool!
Re: WeaponShop - Automatic/Custom prices || DIALOG -
Pawnify - 26.09.2014
Quote:
Originally Posted by dv20
Interesting
|
Thank you.
Quote:
Originally Posted by JonathanW
Nice! Do a new Version, use 'Enumerator' for the prices, and Make them Dynamic. Wouldn't that be Great?
Anyhow, it's cool!
|
How do you mean, Enumerator? What would that do?
Thank you for your kind words.
Re: WeaponShop - Automatic/Custom prices || DIALOG -
Justinclaveria123 - 09.10.2014
Thanks for this
, Good Job .
Re: WeaponShop - Automatic/Custom prices || DIALOG -
LorDWarS - 10.10.2014
Why you created the prices of weapons by ''new'', not by macro?
Re: WeaponShop - Automatic/Custom prices || DIALOG -
PMH - 10.10.2014
few weaps are missing but
great work..
Re: WeaponShop - Automatic/Custom prices || DIALOG -
Blunt - 10.10.2014
Instead of changing the script, you should create a command where you can change the prices in-game, obviously this isn't a saving weapon system, so it'd be dynamic either way.
Like this, this will update the dialogs in-game with the price.
http://pastebin.com/uW502hzX
Re: WeaponShop - Automatic/Custom prices || DIALOG -
Pawnify - 14.10.2014
Quote:
Originally Posted by Blunt
Instead of changing the script, you should create a command where you can change the prices in-game, obviously this isn't a saving weapon system, so it'd be dynamic either way.
Like this, this will update the dialogs in-game with the price.
http://pastebin.com/uW502hzX
|
Nice idea, but you could just change the price in the script and then reload the script as it doesn't use that much processing power.
This is mainly because I'm lazy though
Re: WeaponShop - Automatic/Custom prices || DIALOG -
Pawnify - 14.10.2014
Quote:
Originally Posted by PMH
few weaps are missing but
great work..
|
Yes, a lot of weapons are missing. I just included the key weapons. I will update this soon with more weapons.
Also, I can't quote everyone but thank you for the kind words, I'm working on something a bit more advanced at the moment.