View Single Post
Author Message
juss
Senior Member
Join Date: Jan 2016
Old 01-12-2017 , 00:55   How can i get CSGO Player Hourse Played?
Reply With Quote #1

I wanna check the player on connect to know how many hours player played in csgo , so i could kick those players who played less then 1500 hours (just wanna keep it for those who going good)

edited
what i think is that i can use xml from steam api
http://api.steampowered.com/ISteamUs...xxx&format=xml

in output i can parse "total_time_played" but i dont know how to get data in script from steam api and how to parse it in sourcepawn, also maybe there is other way to get data without using steam api (cause i dont feel like using api key, is there a simplier way?)

Yet i also would need to convert clietn steam_id to Steam64 ID somehow

Last edited by juss; 01-12-2017 at 01:22.
juss is offline