02.10.2016, 15:38
(
Last edited by Konstantinos; 04/10/2016 at 03:54 PM.
)
Tune System
It is a simple yet effective filterscript designed for Freeroam (soon for Roleplay as well, prices will be added) servers which allows you to tune a vehicle outside of mod shops. It currently does not support Nitro or Stereo and probably never will.
There are only 4 commands available at the moment which are:
- /paintjob - Shows a list with the available paintjobs supported for a specific vehicle and an option to unset (remove) the paintjob.
- /tune - Shows a list with all the available categories of components.
- /vcolor - Allows you to change the colors of your vehicle!
- /vcolorlist - Shows a list with all the available vehicle colors (both the existing colors from San Andreas and extended colors were added in 0.3x).
How to install:
MySQL:
- Import the .sql file to your database.
- Find the version (R33 to R39-6 or R40+) that matches the plugin version you've loaded into your server. Change the mysql configuration and save (compile) the filterscript as tune_system.pwn
- Open server.cfg and add tune_system in the filterscripts line.
- Import the .sql file to your database or paste tune_system.db into scriptfiles folder.
- Change the configuration (database name) if you import the .sql file to a different database name.
- Save (compile) the filterscript as tune_system.pwn
- Open server.cfg and add tune_system in the filterscripts line.
Important notes:
- It requires a vehicle spawner system at the very least.
- If the connection to the mysql server fails or the .db file (SQLite) couldn't be opened, it will try to unload the filterscript.
Make sure the filterscript is named as tune_system.
- MySQL:
- Create a different database if you can. Using the same server and database will result in duplicate connections. You can allow them using:
pawn Code:mysql_option(DUPLICATE_CONNECTIONS, true);
pawn Code:mysql_global_options(DUPLICATE_CONNECTIONS, true);
pawn Code:mysql_global_options(DUPLICATE_CONNECTION_WARNING, false); - In case you get an error while trying to import the .sql file:
PHP Code:Error
SQL query:
/*!40101 SET NAMES utf8mb4 */;
MySQL said: Documentation
#1115 - Unknown character set: 'utf8mb4'
- Create a different database if you can. Using the same server and database will result in duplicate connections. You can allow them using:
Downloads:
You can find the main repository here: https://github.com/Konstantinos-Sk/tune-system
MySQL:
R33 to R39-6 version: https://raw.githubusercontent.com/Ko...une_system.pwn
R40+ version: https://raw.githubusercontent.com/Ko...une_system.pwn
The .sql file to import: https://raw.githubusercontent.com/Ko...une_system.sql
SQLite:
The filterscript can be found here: https://raw.githubusercontent.com/Ko...une_system.pwn
The .sql file to import: https://raw.githubusercontent.com/Ko...une_system.sql
A created database file if you don't want to import: https://github.com/Konstantinos-Sk/t...em.db?raw=true
Gallery: http://imgur.com/a/IaZ1z
Credits
- BlueG & maddinat0r (MySQL plugin)
- ******, Emmet_ & maddinat0r (sscanf plugin)
- Zeex (zcmd)
- iJumbo (Color list idea - it was based on one of his post in Useful Snippets thread)
- oMa37 (testing)