How can i get CSGO Player Hourse Played?
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 |
Re: How can i get CSGO Player Hourse Played?
as for convertion found 2 solutions:
from here https://forums.alliedmods.net/showthread.php?t=149587 First one Code:
/** Steam_GetCSteamIDForClient / Steam_GetCSteamIDFromRenderedID from https://forums.alliedmods.net/showthread.php?t=129763 Or maybe is there other way? |
Re: How can i get CSGO Player Hourse Played?
GetClientAuthId can return the 64-bit ID form if you ask nicely and read the docs.
|
Re: How can i get CSGO Player Hourse Played?
Quote:
|
Re: How can i get CSGO Player Hourse Played?
|
Re: How can i get CSGO Player Hourse Played?
Don't forget if a player actually wanted to they could get 400+ hours every two weeks making this method inaccurate.
|
Re: How can i get CSGO Player Hourse Played?
Quote:
|
Re: How can i get CSGO Player Hourse Played?
Quote:
|
All times are GMT -4. The time now is 06:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.