This plugin will save all of your stats to a MySQL server, which multiple servers can use w/o loosing your progress when the map changes level.
Created by: Johan Eherndahl
/help
- Prints all the available commands on the console
/reset
- To reset your skills
/fullreset
- To reset your level, skills and experience back to 0 (can't be undone!)
/bdefstats or /version
- To show the correction
/top10
- Shows the top10 players
/rank
- Shows your rank
bdef_ranking
- This will enable ranking, or simply disable it.
bdef_gameinfo
- This will enable GameInformation to be overwritten.
Simply copy the bdef_stats.amxx
to your plugins folder and add bdef_stats.amxx
under configs/plugins.ini
file.
Now open configs/sql.cfg
and add the new commands:
bdef_host "127.0.0.1"
bdef_user "root"
bdef_pass ""
bdef_type "mysql"
bdef_dbname "my_database"
bdef_table "bdef_stats"
bdef_rank_table "bdef_stats_rank"
The sql file is under web/database.sql
. Simple copy paste it to your PhpMyAdmin,
or any SQL Manager that you have installed, into its query, and hit run. But make sure its inside a database, else it will throw errors!
Make sure you install the web gui on your apache folder (you can find all files under web/
folder) and not copying it to your actual base defense server!
You also need to make sure to setup the configurations on the config.php.