Quote:
Originally Posted by KyleS
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
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 subId, subCount = Steam_GetNumClientSubscriptions(client);
for (new i = 0; i < subCount; i++)
{
subId=Steam_GetClientSubscription(client, i);
if (36144 <= subId <= 36146)
{
return true;
}
}
return false;
}