Quote:
Originally Posted by abrandnewday
So, say I was to want to use this to make a plugin that detects and logs Family Sharing players to a TXT file....would that be possible and if so, what would be a good place to start (like maybe a specific function or something)?
|
PHP Code:
#include <SteamWorks>
public SteamWorks_OnValidateClient(ownerauthid, authid) {
if(ownerauthid && authid && ownerauthid != authid) {
decl String:path[PLATFORM_MAX_PATH];
BuildPath(Path_SM, path, sizeof(path), "logs/familysharing.log");
LogToFile(path, "[U:1:%d] (STEAM_1:%d:%d) is borrowing the game from [U:1:%d] (STEAM_1:%d:%d)", authid, authid & 1, authid >> 1, ownerauthid, ownerauthid & 1, ownerauthid >> 1);
}
}
__________________