Raised This Month: $51 Target: $400
 12% 

BrainBread Stats


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Statistical       
JonnyBoy0719
Member
Join Date: Apr 2012
Location: Sweden
Old 01-06-2015 , 06:00   BrainBread Stats
Reply With Quote #1

This plugin will only work for BrainBread


Description:
This plugin will save all of your stats to a MySQL server, which multiple servers can use w/o needing to copy players.lvl.


Tested on:
* brainbread v1.2 (metamod v1.21p37 + amxmodx 1.8.2)


Server requirements:
* brainbread
* amxmodx 1.8x
* mysqld


Client commands:
/autoload -- Will auto load the skills
/reset -- Resets your skills and in return it converts them back to points.
/loadpoints -- Load your points if you don't have autoload enabled
/rank -- Shows your current rank
/web -- Shows webstats url


How it works:
Simply copy the bb_stats.amxx to your plugins folder and add bb_stats.amxx under configs/plugins.ini file.

Now open configs/sql.cfg and add the new commands:
bb_host "127.0.0.1"
bb_user "root"
bb_pass ""
bb_type "mysql"
bb_dbname "my_database"
bb_table "bb_stats"
bb_rank_table "bb_stats_rank"


Web GUI:
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 brainbread server!
You also need to make sure to setup the configurations on the config.php.


Web GUI Demo
If you want to see how the Web GUI looks like, you can do so by going to our official BrainBread Stats page for our server!
Demo: Click here!


Special Thanks:
* Noname for helping me fix the EXP bug
* XxAvalanchexX for his amazing brainbread include file


Bugs:
* None so far!


changelog:
v2.0-2.5 [2015-03-30]
* Added bb_rank_table
* Added web gui
* Fixed bb_stats saving (Replaced with UPDATE instead of REPLACE INTO)
v1.4-v2.0 [2015-01-09]
* Added new convars: bb_gameinfo, bb_webstats_url & bb_ranking
* Minor code changes
* Ranking supported. /top10 will be implemented when the radio menu gets fixed up for BrainBread
v1.3 [2015-01-06]
* Fixed EXP multiply loading problem
* Added a checker to make sure it won't override player.lvl (Player Data file)
* Added a new convar bb_filerewrite (default: 0) This convar will override the warning, if you want it to override and rewrite the player data file.
v1.2 [2015-01-06]
* Added a new client command "load points"
* Fixed some minor bugs
* It will now always start with "autoload" disabled when a new user has been created on the SQL.
v1.1 [2015-01-06]
* Fixed some typos on the SMA
* Added concommands
v1.0 [2015-01-06]
* Initial release


Notes:
This plugin is similar to noname's SQL plugin, but he never released it due to a HDD crash. And I want to thank him for helping me fixing the EXP bug! And I have also updated XxAvalanchexX brainbread.inc file, so now it can get and set/add new EXP.

download:
GitHub
or look on the attachments below!
Attached Files
File Type: inc brainbread.inc (12.6 KB, 346 views)
File Type: sma Get Plugin or Get Source (bb_stats.sma - 1015 views - 23.8 KB)
File Type: zip web.zip (358.9 KB, 231 views)
__________________

Last edited by JonnyBoy0719; 03-29-2015 at 21:07. Reason: Updated to v2.5, and fixed some typos
JonnyBoy0719 is offline
Send a message via Skype™ to JonnyBoy0719
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode