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

[NT] NEOTOKYO° Stats & Ranking (1.2.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FlyGemma
New Member
Join Date: Jul 2009
Plugin ID:
1035
Plugin Version:
1.2.0
Plugin Category:
Statistical
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Stats & Ranking for NEOTOKYO°
    Unapprover:
    Reason for Unapproving:
    Plugin Author not responding/updating anymore (security issue with SQL exists)
    Old 07-24-2009 , 05:47   [NT] NEOTOKYO° Stats & Ranking (1.2.0)
    Reply With Quote #1

    [NT] NEOTOKYO° Stats & Ranking (1.2.0)

    Stats & Ranking for NEOTOKYO°.

    Point gain is as balanced as I could make it. Most other ranking plugins are too time played based, having to play a lot to get points, leaving new players with no hope of getting anywhere near the top 10. Or deadlock once players reach a certain point range.

    (Eventually players cant gain enough points to overcome point loss on death. Deadlocking their stats until enough players catch up to their rank.)

    This ranking system aims to be rewarding to skilled players with little reward to players who've played the most. I've used this system before in private plugins, in which new players have been able to get into the top 10 with players who have been playing for weeks, as long as they were skilled enough. Players in the top 10 could still easily gain points and not deadlock, but still allowing players to overtake.

    Config - This can be changed in cfg/sourcemod/plugin.fg_stats_nt.cfg.
    • sm_ntstats_enabled - Enables or Disables NEOTOKYO° Stats & Ranking (Default 1).
    • sm_ntstats_onoff - Allows players to rankoff and rankon. (Default 1).
    • sm_ntstats_20xp - Players earn 3 points for reaching Lieutenant. (Default 1).
    • sm_ntstats_ff_penalty - Amount of points to take away from Team Killers. 0 to disable. (Default 5, Min 0, Max 20).
    • sm_ntstats_hidechat - session, top, stats, rankon and rankoff are hidden from chat. (Default 1). NEW!
    • sm_ntstats_end_ff_penalty - Enables or Disables FF Kill penalties at the end of a round. (Default 0). NEW!
    • sm_ntstats_end_scoring - Enables or Disables kill scoring at the end of a round. (Default 1). NEW!

    Admin Commands
    • sm_ntstats_reset - Resets NEOTOKYO° Stats & Ranking stats. (config flag).
    • sm_ntstats_inactive - Deletes players who haven't played for # of days. (config flag).
    • sm_rankon / sm_rankoff - Rankon and offs a players rank, also disables them from rankon while an admin has them rankoff. (ban flag). NEW!
    Public Commands
    • sm_stats <#userid|name> - Lets you see another players stats. NEW!

    Public Chat Commands
    • rank - Displays your rank in chat publicly.
    • session - Displays your session info.
    • statsme - Displays your stats.
    • top - Displays top10 players
    • rankon / rankoff - Freezes or Unfreezes your point gain/lose. (This does not save your rank, other players will still go past you. EG: If your rank #1 and rankoff, other players can still become rank #1. Point gain/loss is only enabled/disabled when your dead. These commands are for players who wish to play for fun, not for rank.)

    All chat commands also work with ! or / .

    Database
    Works with MySQL or sqlite.
    Plugin will use fg_stats_nt or storage-local if the formers not set. fg_stats table.

    Compatiblity
    XP stats are compatible with my other Neotokyo plugins, And should be with any other plugin that modifies players XP on round restart and player death or spawn.

    Credits
    • FrostbyteX & MikeJS - I learned a lot from their plugin sources and ideas.
    • quadeye.com.au | mpower0000 - Feedback and testing.

    Change log
    • 1.0.0 - 24/7/09
      • Initial release
    • 1.1.0 - 25/7/09
      • -top10 displays tied players & time played.
      • -Fixed rankoff toggle bug that was displaying a message on connect.
      • -Additional convars & options
        • -Team Kill penalty convars.
        • -Players earn 3 points for reaching Lieutenant.
    • 1.1.1 - 25/7/09
      • Fixed an array bug causing top10 to not display.
      • Removed time played from top10 to fix a length bug.
    • 1.2.0 - 29/7/09
      • Reduced occurrence of top10 length bug.
      • Rebalanced point gain/loss.
      • Stats no longer count bot kills.
      • Additional Commands
        • Public command:
          • sm_stats <#userid|name>, lets players view other players stats.
        • Admin commands:
          • sm_rankon <#userid|name> && sm_rankoff <#userid|name>. Ranks on or (off targets point gain/loss and disables them from rankon).
      • Fixed a rankoff cancel bug.
      • Fixed killtimer errors.
      • Bonus points for knife kill.
      • Bonus points for round end. (Extra if alive at round end.) No bonus points for ghost captures yet.
      • Additional convars & options
        • stats, top, session, rankon and rankoff are hidden from chat.
        • FF Penalty after a round end.
        • Scoring after a round end.
      • session now displays total score.
      • session now displays total XP.
      • rank text is also sent to console.
    Attached Files
    File Type: zip fg_stats_nt.zip (24.8 KB, 321 views)
    File Type: sp Get Plugin or Get Source (fg_stats_nt.sp - 639 views - 34.1 KB)

    Last edited by FlyGemma; 07-29-2009 at 23:26. Reason: 1.2.0 Released
    FlyGemma is offline
    niubert
    Junior Member
    Join Date: Jul 2009
    Location: France
    Old 07-25-2009 , 09:47   Re: [NT] NEOTOKYO° Stats & Ranking (1.1.1)
    Reply With Quote #2

    Hi !

    I try this plugin.

    It's a good thing to have to tape simply "rank" or "top", and not "!rank" or "!top".

    But why we do not have the command in the chat when a player use it ? I think it is a good thing to see when a player look the top.
    niubert is offline
    FlyGemma
    New Member
    Join Date: Jul 2009
    Old 07-25-2009 , 10:03   Re: [NT] NEOTOKYO° Stats & Ranking (1.1.1)
    Reply With Quote #3

    To prevent chat spamming. NT doesn't have a chat log like the Orange Box engine and the console doesn't log sourcemod text.

    When someone types rank, often other people do as well and it fills up the chat fast and can push the first peoples ranks out of view, meaning they have to type rank again to see it. Having it show the command means it does double so.
    FlyGemma is offline
    Chaos Llama
    Senior Member
    Join Date: Jul 2006
    Old 08-28-2009 , 23:34   Re: [NT] NEOTOKYO° Stats & Ranking (1.2.0)
    Reply With Quote #4

    Im tempted to use this plugin but your karma is terrible.

    What do you mean by what you said above?
    Chaos Llama is offline
    sfPlayer
    Senior Member
    Join Date: Dec 2007
    Location: Germany
    Old 08-29-2009 , 21:21   Re: [NT] NEOTOKYO° Stats & Ranking (1.2.0)
    Reply With Quote #5

    You should use SQL_EscapeString for user modifiable strings in sql queries.

    If don't do that your plugin can be used to compromise the database.
    sfPlayer is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 09-11-2009 , 10:12   Re: [NT] NEOTOKYO° Stats & Ranking (1.2.0)
    Reply With Quote #6

    And you can use the dynamic variable MaxClients in your loops, but it's not required, just an optimization

    Waiting for your responce to sfPlayer's request before this can get approved, FlyGemma.

    Greetings ~Berni
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
    berni 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 08:32.


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