View Single Post
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 12-31-2018 , 13:08   Re: Is there any external API for HLstatsX?
Reply With Quote #2

Hi,
you can do it in your plugin with SQL query - fetch player rank from HLStatsX database by SteamID.

SQL:
PHP Code:
SELECT playerServerData.skill FROM `hlstats_playeruniqueids` AS player LEFT JOIN `hlstats_players` AS playerServerData ON playerServerData.playerId player.playerId WHERE player.uniqueId "Y:ZZZZZZ" AND player.game "csgo_surf" AND playerServerData.hideranking AND playerServerData.kills >= 1

"Y:ZZZZZZZZZZ" SteamIDbut you need to remove "STEAM_X:" prefix.
"csgo_surf" game (in HLStatsX). 
__________________
NomisCZ is offline