Raised This Month: $ Target: $400
 0% 

[TF2] Premium vs Free - Statistics


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2421
Plugin Version:
1.0.0
Plugin Category:
Statistical
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Shows the number of free and premium connections your server has had.
    Unapprover:
    Reason for Unapproving:
    I may revisit this idea later.
    Old 07-04-2011 , 19:05   [TF2] Premium vs Free - Statistics
    Reply With Quote #1

    [TF2] Premium vs Free
    Version 1.0.0



    Description:
    This plugin is a simple tracker for statistics purposes.
    It tracks the number of free and premium players that connect to your server and prints a total by command.

    Example:



    Commands:
    • pvf
      • Prints the current stats.

    Cvars:
    • sm_pvf_version
      • Plugin Version

    Install Instructions:

    1. Install SteamTools
    2. Place PvF.smx into your addons/sourcemod/plugins/ folder.

    Notes:
    • I should credit asherkin's Free2BeKicked for the whole dlc detecting thing.
    • This plugin currently only tracks stats for the current session (from plugin load to unload).
    • This plugin tracks connections without checking to see if they are unique. Therefore if a player joins 3 times, he will be counted 3 times.
    I may write an SQL/SQLite version at some point that has persistent, unique, tracking.


    Version History:
    • V1.0.0
      • Initial release

    Total downloads as prior to last edit: 0


    Plugin will not compile on the forums due to custom includes! Download the .smx or compile it yourself locally!
    Attached Files
    File Type: sp Get Plugin or Get Source (PvF.sp - 364 views - 1.2 KB)
    File Type: smx PvF.smx (2.6 KB, 463 views)
    __________________

    Last edited by DarthNinja; 07-24-2011 at 06:17.
    DarthNinja is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 07-04-2011 , 19:11   Re: [TF2] Premium vs Free - Statistics
    Reply With Quote #2

    I've said it before, but you make really handy plugins. Good work, I look forward to whatever you bring us next!
    Snaggle is offline
    DrGamez
    Member
    Join Date: Jan 2005
    Location: Seattle
    Old 07-24-2011 , 01:11   Re: [TF2] Premium vs Free - Statistics
    Reply With Quote #3

    Can this not be admin-only?
    __________________
    DrGamez is offline
    ojmdk476oj
    AlliedModders Donor
    Join Date: Dec 2009
    Old 07-24-2011 , 06:14   Re: [TF2] Premium vs Free - Statistics
    Reply With Quote #4

    Quote:
    Originally Posted by DrGamez View Post
    Can this not be admin-only?
    Edit the source of the file, find line 21 that looks like this:
    PHP Code:
    RegAdminCmd("pvf"PrintTotalsADMFLAG_KICK); 
    Replace that line with this instead:
    PHP Code:
    RegConsoleCmd("pvf"PrintTotals); 
    Then compile it. Now everybody can use the command ;)
    ojmdk476oj is offline
    Reply



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


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