[FilterScript] Weapon Dealers
#1

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

CommandDescriptionRestriction
/weaps
Will show the weaps dialog.
None.
/test
Will give you $10,000.
Rcon Admins.
/dmenu
Rcon management panel.
Rcon Admins.
Functions

FunctionDescription
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
Reply


Messages In This Thread
Weapon Dealers - by Jelly23 - 04.12.2016, 04:04
Re: Weapon Dealers - by Logic_ - 04.12.2016, 05:21
Re: Weapon Dealers - by RyderX - 04.12.2016, 05:37
Re: Weapon Dealers - by Jelly23 - 04.12.2016, 09:36
Re: Weapon Dealers - by Yaa - 04.12.2016, 11:43
Re: Weapon Dealers - by BrianFaria - 04.12.2016, 12:33
Re: Weapon Dealers - by Micko123 - 04.12.2016, 12:38
Re: Weapon Dealers - by Jelly23 - 04.12.2016, 13:17
Re: Weapon Dealers - by Jelly23 - 06.12.2016, 01:17
Re: Weapon Dealers - by Mussy - 17.12.2016, 16:14

Forum Jump:


Users browsing this thread: 2 Guest(s)