Thread: Prime status
View Single Post
root88
Senior Member
Join Date: May 2016
Old 12-07-2018 , 15:41   Re: Prime status
Reply With Quote #23

Just to confirm: I've tested it for a while and it gives me only false positives.
PHP Code:
#pragma semicolon 1

#include <sourcemod>
#include <SteamWorks>
char g_sLogs[PLATFORM_MAX_PATH 1];
#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()
{
   
BuildPath(Path_SMg_sLogssizeof(g_sLogs), "logs/free2bekicked.log");
}

public 
void OnClientPostAdminCheck(int client)
{
    if (
CheckCommandAccess(client"BypassPremiumCheck"ADMFLAG_ROOTtrue))
    {
        return;
    }
    
    if (!
SteamWorks_HasLicenseForApp(client624820))
    {
        
//KickClient(client, "You need a paid CS:GO account to play on this server");
        
LogToFile(g_sLogs"%L doesn't have paid  CSGO."client);
        return;
    }
    
    return;

Spoiler

All of those players have paid version.

I'm gonna check appid 54029 soon.Checked. Still false positives.
__________________

Last edited by root88; 12-07-2018 at 15:50.
root88 is offline