AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [CS:GO] Kick Non-Prime Players with Private Rank 1 (https://forums.alliedmods.net/showthread.php?t=314780)

pribekerik 03-06-2019 14:08

[CS:GO] Kick Non-Prime Players with Private Rank 1
 
Hey!

Can someone code this plugin if its possible,
because there are too many cheaters joining to my server
with fresh accounts but i wanna keep the playerbase,
so is it possible to kick players who haven't reached Private Rank 2 yet?

Pilo 03-06-2019 14:43

Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
 
You can easily do it by add
PHP Code:

sv_prime_accounts_only "1" 

to your server.cfg.

pribekerik 03-06-2019 14:57

Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
 
Quote:

Originally Posted by Pilo (Post 2642229)
You can easily do it by add
PHP Code:

sv_prime_accounts_only "1" 

to your server.cfg.

I think you dont get it, there will be PRIME and NON-PRIME players on the server but NON-PRIME players with Private Rank 1 will get kicked, they have to earn Private Rank 2 at least to play on the server.

abdulsami34 03-06-2019 17:46

Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
 
I think you should try
https://forums.alliedmods.net/showthread.php?t=255871

With using this you can set a hour limit of like 30 hours or 40 hours atleast or so on.

pribekerik 03-06-2019 20:08

Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
 
Quote:

Originally Posted by abdulsami34 (Post 2642249)
I think you should try
https://forums.alliedmods.net/showthread.php?t=255871

With using this you can set a hour limit of like 30 hours or 40 hours atleast or so on.

Already tried it like a month ago, its not working well because it cant check private profiles...

mlov420 03-07-2019 06:10

Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
 
Likely not possible to do. Rank ELO's and info from Valve are not available to 3rd parties from what I understand. Pretty much why we have fake scoreboard rank plugins that can't sync to a person's real rank, and have to be used alone or in conjunction with 3rd party stats systems.

Nexd 03-07-2019 06:44

Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
 
It is possible

eyal282 03-07-2019 09:33

Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
 
It's undeniably possible to do. How easy it is to fake your rank is another issue unfortunately ( which I have no clue the answer :D )

Here my version of the situation, not my code:

Code:

#pragma semicolon 1

#include <sourcemod>
#include <SteamWorks>

#define PLUGIN_VERSION "1.0.0"

public Plugin myinfo = {
    name        = "Free2BeKicked - CS:GO",
    author      = "Asher \"asherkin\" Baker, psychonic",
    description = "Automatically kicks non-premium players.",
    version    = PLUGIN_VERSION,
    url        = "http://limetech.org/"
};

public OnPluginStart()
{
    CreateConVar("anti_f2p_version", PLUGIN_VERSION, "Free2BeKicked", FCVAR_DONTRECORD|FCVAR_NOTIFY);
}

public void OnClientPostAdminCheck(int client)
{
    if (CheckCommandAccess(client, "BypassPremiumCheck", ADMFLAG_ROOT, true))
    {
        return;
    }
    else if(rank = GetEntProp(GetPlayerResourceEntity(), Prop_Send, "m_nPersonaDataPublicLevel", _, client) > 1)
    {
        return;
    }
   
   
    if (k_EUserHasLicenseResultDoesNotHaveLicense == SteamWorks_HasLicenseForApp(client, 624820))
    {
        KickClient(client, "You need a paid CS:GO account to play on this server");
        return;
    }
   
    return;
}


pribekerik 03-07-2019 23:13

Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
 
I appreciate the help but this wasn't what i was looking for, maybe somebody could help me if i pay for it?

lesa 12-11-2019 14:34

Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
 
Quote:

Originally Posted by eyal282 (Post 2642320)
It's undeniably possible to do. How easy it is to fake your rank is another issue unfortunately ( which I have no clue the answer :D )

Here my version of the situation, not my code:

Code:

#pragma semicolon 1

#include <sourcemod>
#include <SteamWorks>

#define PLUGIN_VERSION "1.0.0"

public Plugin myinfo = {
    name        = "Free2BeKicked - CS:GO",
    author      = "Asher \"asherkin\" Baker, psychonic",
    description = "Automatically kicks non-premium players.",
    version    = PLUGIN_VERSION,
    url        = "http://limetech.org/"
};

public OnPluginStart()
{
    CreateConVar("anti_f2p_version", PLUGIN_VERSION, "Free2BeKicked", FCVAR_DONTRECORD|FCVAR_NOTIFY);
}

public void OnClientPostAdminCheck(int client)
{
    if (CheckCommandAccess(client, "BypassPremiumCheck", ADMFLAG_ROOT, true))
    {
        return;
    }
    else if(rank = GetEntProp(GetPlayerResourceEntity(), Prop_Send, "m_nPersonaDataPublicLevel", _, client) > 1)
    {
        return;
    }
   
   
    if (k_EUserHasLicenseResultDoesNotHaveLicense == SteamWorks_HasLicenseForApp(client, 624820))
    {
        KickClient(client, "You need a paid CS:GO account to play on this server");
        return;
    }
   
    return;
}


It's good but has a problem. Players that earned a prime can't join. Only players that bought their prime.


All times are GMT -4. The time now is 01:54.

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