Raised This Month: $32 Target: $400
 8% 

[TF2] Ratio (with web panel !)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
4022
Plugin Version:
2.0
Plugin Category:
Statistical
Plugin Game:
Team Fortress 2
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Create a ratio with your frag, death, shot and time !
Old 01-03-2014 , 05:15   [TF2] Ratio (with web panel !)
Reply With Quote #1

Ratio
Description :
Create small statistic using your frag (kill), death, weapon shot and time on server. Use full to see who is a lot of time on your server.

Features :
- Auto save data using cookies.
- Live display.
- You can reset your ratio at any time.
- Web panel NEW!
- Database support too ! NEW!
- Awesome web design ! NEW!

Bugs :Any for the moment ! YAY !


Commands & Cvar :
Commands :
sm_showratio - Display a list of player, and their ratio
sm_myratio - Display your ratio
sm_resetratio - Reset all your stat to 0

sm_resetratio [PLAYER] - Reset all stat of a specific player. Default flag ROOT (z) needed !
exemple :
sm_resetratio Arkarr
sm_resetratio @all
sm_resetratio @red

CVar :
"sm_ration_reset_flag" "z" - Flag needed to acces command sm_resetratio [PLAYER]

Installation :

Install TF2itemsinfo first !

Database edition (with web panel) :

- Put Ratio_db.smx in your 'plugins' folder (../sourcemode/plugins)
- Configure database settings in database.cfg (../sourcemode/configs). Look at exemple for more infos about database configuration.
database.cfg exemple :
Spoiler

- Open the file index.php and edit the line 63 with your favorite text editor and put your database information like this :[/B]
Spoiler

- Uplaod the contains of the zip archive on your web site, you are done !
- Restart server or reload map.
- DONE! Enjoy.

Normal edition (no web panel) :

- Put Ratio.smx in your 'plugins' folder (../sourcemode/plugins)
- Restart server or reload map.
- DONE! Enjoy.

Note :
>>> You can skip this part if you use the Ratio.smx file <<<
You will need morecolors, clientprefs and tf2itemsinfo to recompille it manually.

Request :
STATUS : DONE! well, almost, plugin just display data now.
Quote:
Add a web interfaces and database support.
Screenshot :
Ratio menu looks like this :


Thanks to :
MasterOfTheXP, getting the weapon slot
Bacardi, Using database

Logs :
Spoiler
Attached Files
File Type: smx Ratio.smx (16.7 KB, 336 views)
File Type: sp Get Plugin or Get Source (Ratio.sp - 296 views - 13.8 KB)
File Type: smx Ratio_db.smx (18.1 KB, 225 views)
File Type: sp Get Plugin or Get Source (Ratio_db.sp - 302 views - 16.0 KB)
File Type: zip web_panel.zip (4.81 MB, 311 views)
__________________
Want to check my plugins ?

Last edited by Arkarr; 04-16-2014 at 10:53. Reason: Updated to 2.0
Arkarr is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 01-03-2014 , 05:27   Re: [TF2] Ratio
Reply With Quote #2

I guess you should add TIMER_FLAG_NO_MAPCHANGE flag as well, because you once create timer when client connects, and recreates it again at OnClientConnected() forward.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-03-2014 , 06:04   Re: [TF2] Ratio
Reply With Quote #3

Quote:
Originally Posted by Root_ View Post
I guess you should add TIMER_FLAG_NO_MAPCHANGE flag as well, because you once create timer when client connects, and recreates it again at OnClientConnected() forward.
Damn it, forget it, thanks.
__________________
Want to check my plugins ?
Arkarr is offline
clad
Senior Member
Join Date: Oct 2006
Old 01-05-2014 , 00:18   Re: [TF2] Ratio
Reply With Quote #4

seems tf2itemsinfo plugin is required to be running to run this plugin.
__________________
clad is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-05-2014 , 11:56   Re: [TF2] Ratio
Reply With Quote #5

Quote:
Originally Posted by clad View Post
seems tf2itemsinfo plugin is required to be running to run this plugin.
Forget to write this. Thanks. Main post updated.
__________________
Want to check my plugins ?
Arkarr is offline
eyesofcreeper
Member
Join Date: Dec 2013
Old 02-19-2014 , 07:16   Re: [TF2] Ratio
Reply With Quote #6

Quote:
Originally Posted by Arkarr View Post
Ratio

Note :
>>> You can skeep this part if you use the Ratio.smx file <<<
You will need morecolors, clientprefs and tf2itemsinfo to recompille it manually.

skip ?
eyesofcreeper is offline
Send a message via Skype™ to eyesofcreeper
DrFallen
AlliedModders Donor
Join Date: Jul 2013
Location: ./root
Old 02-19-2014 , 07:40   Re: [TF2] Ratio
Reply With Quote #7

Hey Looks good any plans to port to use mysql/web interface?
DrFallen is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 02-19-2014 , 12:35   Re: [TF2] Ratio
Reply With Quote #8

@eyesofcreeper
Damn it... Corrected.

@DrFallen
I hate database, but it's now a request, I will give a try.

EDIT: DONE! Everything wrok but CSS not done now. Give me a sec. NOPE!

EDIT2:Looking for someone who is really friendly and wanna do a small CSS for this plugin ? DONE!
__________________
Want to check my plugins ?

Last edited by Arkarr; 04-05-2014 at 08:16.
Arkarr is offline
island55
Senior Member
Join Date: Aug 2010
Location: charleston
Old 07-26-2014 , 12:30   Re: [TF2] Ratio (with web panel !)
Reply With Quote #9

anyone have a link to their web panel using this? i'd like to get an idea of what this does/looks like exactly.

thanks
island55 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 07-29-2014 , 11:02   Re: [TF2] Ratio (with web panel !)
Reply With Quote #10

Quote:
Originally Posted by island55 View Post
anyone have a link to their web panel using this? i'd like to get an idea of what this does/looks like exactly.

thanks
It's so sh*tty you can do nothing. I have to rewrite it.
__________________
Want to check my plugins ?

Last edited by Arkarr; 07-29-2014 at 11:03.
Arkarr is offline
Reply


Thread Tools
Display Modes

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 18:58.


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