AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Prime status (https://forums.alliedmods.net/showthread.php?t=312523)

szogun 12-07-2018 07:44

Prime status
 
Hi, because after the last update cs go is a free game.
Is anyone able to make a plugin that will check if the person has prime status, if not disconnect it from the server

DarkDeviL 12-07-2018 08:31

Re: Prime status
 
Quote:

Originally Posted by szogun (Post 2627209)
Hi, because after the last update cs go is a free game.
Is anyone able to make a plugin that will check if the person has prime status, if not disconnect it from the server

As I wrote over in [Any] Veterans Only @ 2018-04-22, 17:57, it has been in my interest for a long while to make some sort of "service", that would help communities dealing with toxic players.

Lack of third party testers providing feedback is one of the primary issues though. I see you have been active in that Veterans Only thread as well, - are you possibly one of those superior testers that would be happy assist with getting something good up and running, according to the description in the bottom of the linked post? :)


Do you have a server available for testing? - If so, send me a PM with your Steam profile and I'll add you / will be available sometime tonight.

psychonic 12-07-2018 08:44

Re: Prime status
 
Quote:

Originally Posted by arne1288 (Post 2627225)
As I wrote over in [Any] Veterans Only @ 2018-04-22, 17:57, it has been in my interest for a long while to make some sort of "service", that would help communities dealing with toxic players.

Lack of third party testers providing feedback is one of the primary issues though. I see you have been active in that Veterans Only thread as well, - are you possibly one of those superior testers that would be happy assist with getting something good up and running, according to the description in the bottom of the linked post? :)


Do you have a server available for testing? - If so, send me a PM with your Steam profile and I'll add you / will be available sometime tonight.

That rings of overkill. 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).

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;     }         if (k_EUserHasLicenseResultDoesNotHaveLicense == SteamWorks_HasLicenseForApp(client, 624820))     {         KickClient(client, "You need a paid CS:GO account to play on this server");         return;     }         return; }

Lannister 12-07-2018 08:50

Re: Prime status
 
Looking forward this too, this will be a huge deal for server owners that deal with toxic players since they now just can change account.

Thank you for focus on this arne1288!

DarkDeviL 12-07-2018 08:51

Re: Prime status
 
Quote:

Originally Posted by psychonic (Post 2627229)
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 (Post 2627229)
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 (Post 2627229)
Spoiler

Somehow identical to what would want to be tested, I would just be using SteamWorks_HasLicenseForApp instead.

psychonic 12-07-2018 08:59

Re: Prime status
 
Quote:

Originally Posted by arne1288 (Post 2627233)
SteamWorks_HasLicenseForApp ?

HasLicenseForApp would be the equivalent to the DLC check, but it has no equivalent for the subscription check. (Steam_CheckClientSubscription)

That said, looks like it's not needed for CS:GO due to them using an FOD package instead of adding to sub 0, and then giving the DLC to all other owning packages.

SteamWorks_HasLicenseForApp to check on 624820 should work. I'm amending my post above.

Cruze 12-07-2018 09:50

Re: Prime status
 
Quote:

Originally Posted by psychonic (Post 2627229)
That rings of overkill. 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).
...

Good work out there(not tested) :bacon!:
Suggestion: Add config file for steamids that can join regardless maybe..

psychonic 12-07-2018 09:55

Re: Prime status
 
Quote:

Originally Posted by Cruze (Post 2627256)
Good work out there(not tested) :bacon!:
Suggestion: Add config file for steamids that can join regardless maybe..

That's what the CheckCommandAccess check is for there. Use the existing admin config files to override "BypassPremiumCheck" for who you want to bypass.

Cruze 12-07-2018 10:01

Re: Prime status
 
Quote:

Originally Posted by psychonic (Post 2627257)
That's what the CheckCommandAccess check is for there. Use the existing admin config files to override "BypassPremiumCheck" for who you want to bypass.

You're right, missed that. Mybad :oops:

asherkin 12-07-2018 10:55

Re: Prime status
 
Quote:

Originally Posted by psychonic (Post 2627236)
SteamWorks_HasLicenseForApp to check on 624820 should work. I'm amending my post above.

Looks like its your turn to be in the "news" and get internet death threats! :bacon!:


All times are GMT -4. The time now is 05:15.

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