Raised This Month: $ Target: $400
 0% 

[ZPS] - Stats/Ranking and Statistics [MySQL/SQLITE] - Supported


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Master53
Veteran Member
Join Date: Dec 2009
Plugin ID:
2321
Plugin Version:
1.04.25
Plugin Category:
Statistical
Plugin Game:
Zombie Panic!
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Official zombie panic: source ranking system.
    Old 04-25-2011 , 21:24   [ZPS] - Stats/Ranking and Statistics [MySQL/SQLITE] - Supported
    Reply With Quote #1

    ZPS Ranking

    Description

    Hello and welcome to an actual zps plugin purposly build for zps. This plugin will keep track of almost all statistics you will ever need and want. Also this plugin contains the most common stats features plus extras.

    Cvars
    sm_sqltype - default = 1

    Credits
    All Credits go to MasterD + Sammy Rocks for general ideas gathering.

    Commands
    sm_rank - view your total:
    sm_top - view the top person on the leaderboard
    sm_top5 - view the top 5 people on the leaderboard
    sm_top10 - view the top 10 people on the leaderboard
    sm_session - view your session since you've connected.
    sm_players/sm_playerList - list all the connected players ingame.

    sm_rankinfo = view plugin infomation and details.

    Notes
    When Editing/Changing the sourcecode, there is a built in debug and fail state built into the code, so if you feel like editing or changing use the DEBUG to trace any errors.

    Please report any bugs/glitches in the code.

    Setting up SQL
    When the ConVar "sm_sqltype" is set to 1 the plugin will automaticly create and connect to a local SQLite database, When "sm_sqltype" is set to 2 the plugin will use an external configeration folder which a MySQL or a custom SQLite database can be set up.

    Pending Features
    i will be adding a "Next" feature to view the next 10 ranks above you on the leaderboard.

    How to install
    Place the Plugin file (HeyRank.smx) into your sourcemod plugins folder (zps/addons/sourcemod/plugins).


    Requires SDK Hooks 1.1 or later
    Attached Files
    File Type: sp Get Plugin or Get Source (HeyRank.sp - 821 views - 71.6 KB)
    File Type: smx HeyRank.smx (21.9 KB, 837 views)
    __________________
    Master(d)




    Last edited by Master53; 05-02-2011 at 10:41. Reason: Updated
    Master53 is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 04-26-2011 , 08:27   Re: [ZPS] - Stats/Ranking and Statistics [MySQL/SQLITE] - Supported
    Reply With Quote #2

    Buffers for sql-escaped strings need to be sized at least (2*x)-1, where x is the size of the original string. Otherwise, values can be cut off.

    Ex., to escape a 32-byte string, you should use at least 63 for the size of the buffer that you write the escaped version to, to leave room for escape characters.
    psychonic is offline
    Master53
    Veteran Member
    Join Date: Dec 2009
    Old 04-26-2011 , 09:27   Re: [ZPS] - Stats/Ranking and Statistics [MySQL/SQLITE] - Supported
    Reply With Quote #3

    Quote:
    Originally Posted by psychonic View Post
    Buffers for sql-escaped strings need to be sized at least (2*x)-1, where x is the size of the original string. Otherwise, values can be cut off.

    Ex., to escape a 32-byte string, you should use at least 63 for the size of the buffer that you write the escaped version to, to leave room for escape characters.

    Okay, i will edit and update.

    UPDATED.
    __________________
    Master(d)




    Last edited by Master53; 04-26-2011 at 09:43.
    Master53 is offline
    Master53
    Veteran Member
    Join Date: Dec 2009
    Old 04-30-2011 , 08:51   Re: [ZPS] - Stats/Ranking and Statistics [MySQL/SQLITE] - Supported
    Reply With Quote #4

    Hum, Would it be much better if i used a threaded based sql saving/loading/querys for this?
    __________________
    Master(d)



    Master53 is offline
    Shepard62700FR
    New Member
    Join Date: Apr 2009
    Old 02-11-2012 , 10:20   Re: [ZPS] - Stats/Ranking and Statistics [MySQL/SQLITE] - Supported
    Reply With Quote #5

    Headshots aren't counted
    Shepard62700FR 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 02:57.


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