[CS:GO] How to get userid by SteamID ?
Posted: Thu Mar 07, 2019 7:12 am
Could you tell me the way how to get userid by steamid?
Syntax: Select all
from players.helpers import index_from_steamid, userid_from_index
userid = userid_from_index(index_from_steamid('STEAM_1:2:3456789'))
L'In20Cible wrote:Syntax: Select all
from players.helpers import index_from_steamid, userid_from_index
userid = userid_from_index(index_from_steamid('STEAM_1:2:3456789'))
Syntax: Select all
from filters.players import PlayerIter
for player in PlayerIter():
print(player.name)
Ayuto wrote:Though, if it's a performance critical part, you might want to use PlayerGenerator. It returns Edict instances.Syntax: Select all
from filters.players import PlayerIter
for player in PlayerIter():
print(player.name)