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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pribekerik
AlliedModders Donor
Join Date: Apr 2018
Old 03-06-2019 , 14:08   [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #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?

Last edited by pribekerik; 03-08-2019 at 17:53.
pribekerik is offline
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 03-06-2019 , 14:43   Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #2

You can easily do it by add
PHP Code:
sv_prime_accounts_only "1" 
to your server.cfg.
__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$
Pilo is offline
pribekerik
AlliedModders Donor
Join Date: Apr 2018
Old 03-06-2019 , 14:57   Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #3

Quote:
Originally Posted by Pilo View Post
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.
pribekerik is offline
abdulsami34
Member
Join Date: Oct 2017
Old 03-06-2019 , 17:46   Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #4

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.
abdulsami34 is offline
pribekerik
AlliedModders Donor
Join Date: Apr 2018
Old 03-06-2019 , 20:08   Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #5

Quote:
Originally Posted by abdulsami34 View Post
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...

Last edited by pribekerik; 03-08-2019 at 17:57.
pribekerik is offline
mlov420
Senior Member
Join Date: May 2013
Old 03-07-2019 , 06:10   Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #6

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.
mlov420 is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 03-07-2019 , 06:44   Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #7

It is possible
Nexd is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 03-07-2019 , 09:33   Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #8

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 )

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;
}
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
pribekerik
AlliedModders Donor
Join Date: Apr 2018
Old 03-07-2019 , 23:13   Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #9

I appreciate the help but this wasn't what i was looking for, maybe somebody could help me if i pay for it?

Last edited by pribekerik; 03-08-2019 at 17:58.
pribekerik is offline
lesa
Junior Member
Join Date: Jan 2019
Old 12-11-2019 , 14:34   Re: [CS:GO] Kick Non-Prime Players with Private Rank 1
Reply With Quote #10

Quote:
Originally Posted by eyal282 View Post
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 )

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.

Last edited by lesa; 12-11-2019 at 14:39.
lesa is offline
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 22:40.


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