Raised This Month: $18 Target: $400

Is there any external API for HLstatsX?

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Skipper G44
New Member
Join Date: Dec 2018
Old 12-30-2018 , 12:51   Is there any external API for HLstatsX?
Reply With Quote #1

I'm looking for a function that will return players rank in stats table.

I want to give players bonuses based on their rank in HLstatsX database.
Bonuses like in any vip plug-in.

Ideally, I'm looking for something like the following interface:
int GetPlayerRank(int playerID)
Is there any way to do that?
Skipper G44 is offline
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

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

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 06:03.

Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode