View Single Post
KorDen
Member
Join Date: Sep 2012
Old 01-08-2014 , 06:30   Re: [ANY] SteamWorks
Reply With Quote #28

Quote:
Originally Posted by KyleS View Post
If anyone's feeling brave, here's a WIP. I lied, there are a few natives, and forwards.
oO

Do I understand it right, you want to implement SteamTools features that related to a server and doesn't require connection to Steam backend? (so you will not add e.g. gameplay stats?)

Question: is there a way to detect which version of auth libraries are on the server? E.g. to check before use SW_OnValidateClient?

Quote:
Originally Posted by Dr. Greg House View Post
This needs the natives free to be kicked uses so that something similar can be done for L4D2 which is pretty much unplayable at the moment.
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;


Last edited by KorDen; 01-08-2014 at 06:33.
KorDen is offline