Raised This Month: $12 Target: $400
 3% 

Prime status


Post New Thread Reply   
 
Thread Tools Display Modes
butare
Senior Member
Join Date: Nov 2016
Old 12-07-2018 , 13:14   Re: Prime status
Reply With Quote #21

Quote:
Originally Posted by root88 View Post
Isn't it possible to get Prime Upgrade without buying/paying?

So maybe thay played free version which was there a long time ago, but it could be only used to watch GOTV?
Yeah but with old free csgo you can't buy items for it, and one of these guys has not empty inventory and 1200+ hours in it.
butare is offline
gulverene
Senior Member
Join Date: Nov 2008
Location: Türkiye
Old 12-07-2018 , 13:17  
Reply With Quote #22

Quote:
Originally Posted by Cruze View Post
Thank you.

Now test. Not workin. Free Player connect.

I tested my server and it didn't work. Are It's not over yet.

Good days.
__________________
My SeRVeR

Last edited by sneaK; 12-07-2018 at 14:07. Reason: no need to double, or triple post
gulverene is offline
Send a message via Skype™ to gulverene
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
ShawnCZek
Member
Join Date: Mar 2017
Location: Czech Republic
Old 12-07-2018 , 15:57   Re: Prime status
Reply With Quote #24

54029 seems working for me, cannot test if it really kicks F2P players.
ShawnCZek is offline
root88
Senior Member
Join Date: May 2016
Old 12-07-2018 , 16:04   Re: Prime status
Reply With Quote #25

I think there is a small but important bug in the code
PHP Code:
 if (!SteamWorks_HasLicenseForApp(client624820)) 
should be
PHP Code:
 if (SteamWorks_HasLicenseForApp(client624820)) 
https://github.com/KyleSanderson/Ste...amWorks.inc#L9
Correct me if I'm wrong, but now it looks like it's working fine for me.
Code:
L 12/07/2018 - 22:05:19: [free2bekicked_csgo.smx] vejit<423><STEAM_1:0:457112136><> doesn't have paid  CSGO.
L 12/07/2018 - 22:11:26: [free2bekicked_csgo.smx] DziadziA <3<435><STEAM_1:1:457085958><> doesn't have paid  CSGO.
https://steamid.io/lookup/76561198874490000
profile created: December 7, 2018
https://steamid.io/lookup/76561198874437645
profile created: December 7, 2018
__________________

Last edited by root88; 12-07-2018 at 16:10.
root88 is offline
root88
Senior Member
Join Date: May 2016
Old 12-07-2018 , 16:07   Re: Prime status
Reply With Quote #26

Quote:
Originally Posted by ShawnCZek View Post
@root88: with this, you would kick players with the app.
I have tried the code for myself and the result was:

So it would kick me.
https://github.com/KyleSanderson/Ste...amWorks.inc#L9
It returns 0 if player has license.
__________________
root88 is offline
ShawnCZek
Member
Join Date: Mar 2017
Location: Czech Republic
Old 12-07-2018 , 16:09   Re: Prime status
Reply With Quote #27

Yep, I have just noticed it, sorry.
But that result is really weird.
__________________
ShawnCZek is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-07-2018 , 16:49   Re: Prime status
Reply With Quote #28

Quote:
Originally Posted by root88 View Post
I think there is a small but important bug in the code
PHP Code:
 if (!SteamWorks_HasLicenseForApp(client624820)) 
should be
PHP Code:
 if (SteamWorks_HasLicenseForApp(client624820)) 
https://github.com/KyleSanderson/Ste...amWorks.inc#L9
Correct me if I'm wrong, but now it looks like it's working fine for me.
Code:
L 12/07/2018 - 22:05:19: [free2bekicked_csgo.smx] vejit<423><STEAM_1:0:457112136><> doesn't have paid  CSGO.
L 12/07/2018 - 22:11:26: [free2bekicked_csgo.smx] DziadziA <3<435><STEAM_1:1:457085958><> doesn't have paid  CSGO.
https://steamid.io/lookup/76561198874490000
profile created: December 7, 2018
https://steamid.io/lookup/76561198874437645
profile created: December 7, 2018
Good catch. It was a bug when porting from SteamTools to SteamWorks since they use different return values. I've updated my snippet now.
psychonic is offline
kgns
Senior Member
Join Date: May 2017
Location: Istanbul, Turkey
Old 12-07-2018 , 18:28   Re: Prime status
Reply With Quote #29

might be a good idea to add IsFakeClient and IsClientSourceTV (and maybe IsClientReplay, dont know what it does) checks before querying the license when using the snippet
__________________

OyunHost Sunucu Hizmetleri: https://www.oyunhost.net
kgns is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 12-07-2018 , 18:51   Re: Prime status
Reply With Quote #30

Quote:
Originally Posted by kgns View Post
might be a good idea to add IsFakeClient and IsClientSourceTV (and maybe IsClientReplay, dont know what it does) checks before querying the license when using the snippet
Very trivial to add though.

But bots doesn't authenticate with Steam in order to retrieve a proper Steam ID, as such, the result "k_EUserHasLicenseResultNoAuth" (2) is being returned for bots, and therefore it won't do the kicking at all, if that's what you are afraid of.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 12-07-2018 at 18:52.
DarkDeviL 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 06:11.


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