[FilterScript] Weapon Dealers - 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] Weapon Dealers (
/showthread.php?tid=623702)
Weapon Dealers - Jelly23 - 04.12.2016
Weapon Dealers
This is another dynamic system i have done. You can create weapon dealers and set up which weapons they can sell, aswell as ammo and cost, each dealer can carry up to 10 weapons. There's also a rcon menu which gives full control over them.
Configuration
MySQL Information- #define MYSQL_HOST - Your MySQL host, you may change the address at line 26.
- #define MYSQL_USER - Your user name.
- #define MYSQL_DATABASE - Your database name.
- #define MYSQL_PASSWORD - Your DB password.
Filterscript Settings- #define MAX_DEALERS - The maximum amount of dealers, by default it's 500.
Features- Weapon dealers can have up to 10 different weapons, including the cost & price of each weapon.
- The system is totally dynamic. Rcon admins got full control over weapon dealers and can edit them at any time.
- You can use any skin for weapon dealers.
- 3D Text Label showing their id and command to be used.
- Usage of MySQL.
Commands
Command | Description | Restriction |
/weaps | Will show the weaps dialog. | None. |
/test | Will give you $10,000. | Rcon Admins. |
/dmenu | Rcon management panel. | Rcon Admins. |
Functions
Function | Description |
CreateDealer(Skin, Float:X, Float:Y, Float:Z, Float:Angle, World) | Will create a dealer, obviously. |
RemoveDealer(dealerid) | Will remove/destroy a dealer. |
How to set a dealer's Weapons/Ammo/Cost
A dealer's weapons
Some weapon dealers
RCON Panel
Includes/Plugins
MySQL R39-6
I-ZCMD
foreach 0.4.1 standalone
Download
Filterscript dealers.sql
Re: Weapon Dealers -
Logic_ - 04.12.2016
Amzing.
Re: Weapon Dealers -
RyderX - 04.12.2016
Another useful Filterscript!!! keep it up jelly23!
Re: Weapon Dealers - Jelly23 - 04.12.2016
Quote:
Originally Posted by ALiScripter
Amzing.
|
Quote:
Originally Posted by RyderX
Another useful Filterscript!!! keep it up jelly23!
|
Thanks guys.
Re: Weapon Dealers -
Yaa - 04.12.2016
Good Job .
Re: Weapon Dealers -
BrianFaria - 04.12.2016
Good.
Re: Weapon Dealers -
Micko123 - 04.12.2016
Can anyone tell me what dialogs are these??
I think it is not samp default dialogs..
Re: Weapon Dealers - Jelly23 - 04.12.2016
Quote:
Originally Posted by Micko123
Can anyone tell me what dialogs are these??
I think it is not samp default dialogs..
|
Ofc they are... it's just a different samp gui.
Re: Weapon Dealers - Jelly23 - 06.12.2016
Updated.
Re: Weapon Dealers -
Mussy - 17.12.2016
Good work, it's useful, thanks mate.