AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] hx_stats (Co-op) (https://forums.alliedmods.net/showthread.php?t=298535)

maks 06-15-2017 05:20

[L4D2] hx_stats (Co-op)
 
2 Attachment(s)
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.
-

maks 12-17-2017 02:13

Re: [L4D2] hx_stats (Co-op)
 
stats_web https://github.com/TyUser/l4d2_hx_stats

mrtach 01-16-2018 19:28

Re: [L4D2] hx_stats (Co-op)
 
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

maks 01-21-2018 01:27

Re: [L4D2] hx_stats (Co-op)
 
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;
}


SherlockHolmes9 11-19-2018 03:02

Re: [L4D2] hx_stats (Co-op)
 
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 ?

Psyk0tik 11-19-2018 03:52

Re: [L4D2] hx_stats (Co-op)
 
Quote:

Originally Posted by SherlockHolmes9 (Post 2624699)
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;



SherlockHolmes9 11-20-2018 19:43

Re: [L4D2] hx_stats (Co-op)
 
Thank you for telling me that. I set the colour off now.

L4D2Noob 01-08-2021 17:14

Re: [L4D2] hx_stats (Co-op)
 
What could be the problem?
Php versions tried both 5 and 7.
I keep getting error 2.
https://ip-gamers.net/downloads/Atta...18ba71ea38.png

maks 01-09-2021 02:10

Re: [L4D2] hx_stats (Co-op)
 
https://www.russerver.com/blog/file/instruction-1.png

Change setting
https://www.russerver.com/blog/file/instruction-2.png

L4D2Noob 01-09-2021 05:37

Re: [L4D2] hx_stats (Co-op)
 
The data from the database is registered correctly. And still I get "Error 2".


All times are GMT -4. The time now is 13:07.

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