View Single Post
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-08-2014 , 11:06   Re: Update to support more games
Reply With Quote #10

Quote:
Originally Posted by Powerlord View Post
L4D2 doesn't have that.
You're right in the sense that it doesn't have DLC. However, their subscription is different then those who bought it.

Quote:
Originally Posted by KorDen View Post
I think you must use Steam_CheckClientSubscription/Steam_GetClientSubscription from SteamTools. Subs for F2P are 36144 (ROW), 36145 (DE), 36146 (AU)
Something like
PHP Code:
bool:IsClientF2P(client)
{
    new 
subIdsubCount Steam_GetNumClientSubscriptions(client);
    for (new 
0subCounti++)
    {
        
subId=Steam_GetClientSubscription(clienti);
        if (
36144 <= subId <= 36146)
        {
            return 
true;
        }
    }
    return 
false;

As to if it works or not is beyond me. SteamDB seems to support what was written; though.
KyleS is offline