View Single Post
Author Message
gildevanaraujo
Senior Member
Join Date: Oct 2018
Location: Brazil
Old 07-23-2019 , 19:49   [HELP] Compile Plugin
Reply With Quote #1

Hello everyone!
I would like to implement on my server a plugin that will not accept any player who does not have prime status on the account, only accept players who bought the game or just got level 21 in the free accounts.

I found this plugin and wanted to recompile it for the root flag, admin generic and reservation have immunity, but I'm not getting it.

Could someone help me?

ERROR:
Code:
Following is the error name: csgo\addons\sourcemod\scripting\include\SteamWorks.inc(206):fatal error 196:deprecated syntax; see https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Typedefs
Code:

PHP 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_ROOTtrue) || CheckCommandAccess(client"BypassPremiumCheck"ADMFLAG_GENERICtrue) || CheckCommandAccess(client"BypassPremiumCheck"ADMFLAG_RESERVATIONtrue))
    
/*if (CheckCommandAccess(client, "BypassPremiumCheck", ADMFLAG_ROOT, true))*/
    
{
        return;
    }
    
    if (
k_EUserHasLicenseResultDoesNotHaveLicense == SteamWorks_HasLicenseForApp(client624820))
    {
        
KickClient(client"Você precisa ter o jogo comprado ou level 21 para jogar em nossos servidores, desculpe :)");
        return;
    }
    
    return;

gildevanaraujo is offline