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

[L4D2] hx_stats (Co-op)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
maks
Member
Join Date: Dec 2011
Location: Russia
Plugin ID:
5660
Plugin Version:
1.0
Plugin Category:
Statistical
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Player Stats l4d2 (Co-op)
    Old 06-15-2017 , 05:20   [L4D2] hx_stats (Co-op)
    Reply With Quote #1

    MySQL Stats for Left 4 Dead 2 (Co-op)

    Requirements
    • MySQL: External connections required if your MySQL server is not on the same system ! This is not enabled by default, you may need to contact your host!
    • Metamod: Source/SourceMM (Latest Version)
    • SourceMod: 1.10 - 1.12 Latest Build


    Installation
    • Edit your databases.cfg file and add a section with the following information:

    PHP Code:
    "l4d2_stats"

        
    "driver"              "mysql"
        "host"                "your_host"
        "database"            "your_db"
        "user"                "your_user"
        "pass"                "your_pass"

    • In the game console: sm_addsqlcreate


    Chat Commands
    • !rank - Display your current rank information.
    • !top - Show Top 15 players.
    -
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_hx_stats.sp - 902 views - 16.7 KB)
    File Type: sp Get Plugin or Get Source (l4d2_hx_stats_1.1.sp - 284 views - 15.0 KB)

    Last edited by maks; 12-10-2022 at 02:10.
    maks is offline
    maks
    Member
    Join Date: Dec 2011
    Location: Russia
    Old 12-17-2017 , 02:13   Re: [L4D2] hx_stats (Co-op)
    Reply With Quote #2

    stats_web https://github.com/TyUser/l4d2_hx_stats

    Last edited by maks; 12-17-2017 at 02:21.
    maks is offline
    mrtach
    Junior Member
    Join Date: Jan 2018
    Old 01-16-2018 , 19:28   Re: [L4D2] hx_stats (Co-op)
    Reply With Quote #3

    while i am using your plugin i cant use votemenu. for example i cant change difficulty, when i press expert or whatever nothings happends.

    nevermind i found the "problem"

    Code:
    public Action CMD_callvote(int client, int args)
    {
    	if (ig_real[client][HX_POINTS] > 500)
    	{
    		return Plugin_Continue;
    	}
    
    	return Plugin_Handled;
    }
    you should to add an cvar to enable or disable this or use flags, so admins don't need to reach 500 points to call vote

    Last edited by mrtach; 01-16-2018 at 19:50.
    mrtach is offline
    maks
    Member
    Join Date: Dec 2011
    Location: Russia
    Old 01-21-2018 , 01:27   Re: [L4D2] hx_stats (Co-op)
    Reply With Quote #4

    Code:
    public Action CMD_callvote(int client, int args)
    {
    	if (client)
    	{
    		if (ig_real[client][HX_POINTS] < 500)
    		{
    			int flags = GetAdminFlags(GetUserAdmin(client), Access_Effective);
    			if (flags & ADMFLAG_VOTE || flags & ADMFLAG_CHANGEMAP || flags & ADMFLAG_ROOT)
    			{
    				return Plugin_Continue;
    			}
    			return Plugin_Handled;
    		}
    	}
    
    	return Plugin_Continue;
    }
    maks is offline
    SherlockHolmes9
    Junior Member
    Join Date: Sep 2018
    Old 11-19-2018 , 03:02   Re: [L4D2] hx_stats (Co-op)
    Reply With Quote #5

    Figure i should post this. When player reach 500 Points, they auto become blue. How do i disable this ? The blue is not annoying, i perfer red more to be honest but can we add like an option to either activate colour on/off via chat command or permanently disable this via plugin code ?
    SherlockHolmes9 is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 11-19-2018 , 03:52   Re: [L4D2] hx_stats (Co-op)
    Reply With Quote #6

    Quote:
    Originally Posted by SherlockHolmes9 View Post
    Figure i should post this. When player reach 500 Points, they auto become blue. How do i disable this ? The blue is not annoying, i perfer red more to be honest but can we add like an option to either activate colour on/off via chat command or permanently disable this via plugin code ?
    From lines 287 to 331:

    PHP Code:
    public int HxColorC(int &clientint iPoints)
    {
        if (
    iPoints 80000)
        {
            
    SetEntityRenderColor(client000252);
            return 
    8;
        }

        if (
    iPoints 50000)
        {
            
    SetEntityRenderColor(client25551204255);
            return 
    7;
        }

        if (
    iPoints 20000)
        {
            
    SetEntityRenderColor(client1647925255);
            return 
    6;
        }

        if (
    iPoints 7000)
        {
            
    SetEntityRenderColor(client015351255);
            return 
    5;
        }

        if (
    iPoints 2000)
        {
            
    SetEntityRenderColor(client051255255);
            return 
    4;
        }

        if (
    iPoints 500)
        {
            
    SetEntityRenderColor(client0204255255);
            return 
    3;
        }

        if (
    iPoints 20)
        {
            return 
    2;
        }

        return 
    1;

    __________________
    Psyk0tik is offline
    SherlockHolmes9
    Junior Member
    Join Date: Sep 2018
    Old 11-20-2018 , 19:43   Re: [L4D2] hx_stats (Co-op)
    Reply With Quote #7

    Thank you for telling me that. I set the colour off now.
    SherlockHolmes9 is offline
    L4D2Noob
    AlliedModders Donor
    Join Date: Mar 2020
    Location: Moscow
    Old 01-08-2021 , 17:14   Re: [L4D2] hx_stats (Co-op)
    Reply With Quote #8

    What could be the problem?
    Php versions tried both 5 and 7.
    I keep getting error 2.
    __________________

    Last edited by L4D2Noob; 01-08-2021 at 17:15. Reason: Add screen
    L4D2Noob is offline
    Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
    maks
    Member
    Join Date: Dec 2011
    Location: Russia
    Old 01-09-2021 , 02:10   Re: [L4D2] hx_stats (Co-op)
    Reply With Quote #9



    Change setting
    maks is offline
    L4D2Noob
    AlliedModders Donor
    Join Date: Mar 2020
    Location: Moscow
    Old 01-09-2021 , 05:37   Re: [L4D2] hx_stats (Co-op)
    Reply With Quote #10

    The data from the database is registered correctly. And still I get "Error 2".
    __________________
    L4D2Noob is offline
    Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
    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 00:23.


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