MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / GetSteamAccountID

Method GetSteamAccountID

core/PlayerManager.cpp:2312–2322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2310}
2311
2312unsigned int CPlayer::GetSteamAccountID(bool validated)
2313{
2314 if (!IsFakeClient() && (!validated || IsAuthStringValidated()))
2315 {
2316 const CSteamID &id = GetSteamId(validated);
2317 if (id.IsValid())
2318 return id.GetAccountID();
2319 }
2320
2321 return 0;
2322}
2323
2324edict_t *CPlayer::GetEdict()
2325{

Callers 2

sm_GetSteamAccountIDFunction · 0.80

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected