Quote:
Originally Posted by psychonic
That rings of overkill.
|
In some sorts, yes.
OP has been active in the other thread, and might also be looking for some of that functionality.
The two things can also be connected in various ways together.
Quote:
Originally Posted by psychonic
Assuming that SteamTools can at least load on CS:GO, you should be able to just adapt the TF2 Free2BeKicked plugin. (The SteamWorks extension does not have the same functionality, but I hear that pull requests are welcome).
|
SteamWorks_HasLicenseForApp ?
Quote:
Originally Posted by psychonic
Spoiler
Code:
#pragma semicolon 1
#include <sourcemod>
#define AUTOLOAD_EXTENSIONS
#define REQUIRE_EXTENSIONS
#include <steamtools>
#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_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
}
public void OnClientPostAdminCheck(int client)
{
if (CheckCommandAccess(client, "BypassPremiumCheck", ADMFLAG_ROOT, true))
{
return;
}
if (Steam_CheckClientSubscription(client, 303386) && !Steam_CheckClientDLC(client, 624820))
{
KickClient(client, "You need a paid CS:GO account to play on this server");
return;
}
return;
}
|
Somehow identical to what would want to be tested, I would just be using SteamWorks_HasLicenseForApp instead.
__________________