Raised This Month: $32 Target: $400
 8% 

How to find player with Steam 64 id?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 10-25-2015 , 03:39   How to find player with Steam 64 id?
Reply With Quote #1

Hello how I can get client from 76561197995205397? If not found false
iGANGNAM is offline
lollypop
Junior Member
Join Date: Jun 2010
Old 10-25-2015 , 03:46   Re: How to find player with Steam 64 id?
Reply With Quote #2

AccountID = SteamID64 - 76561197960265728

Then just just compare that to GetAccountID. But i don't think this will work since im pretty sure sourcepawn only supports 32 bit integers, so you should probably use an extension like this instead:
https://forums.alliedmods.net/showthread.php?t=86019
lollypop is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 10-25-2015 , 03:54   Re: How to find player with Steam 64 id?
Reply With Quote #3

Quote:
Originally Posted by lollypop View Post
AccountID = SteamID64 - 76561197960265728

Then just just compare that to GetAccountID. But i don't think this will work since im pretty sure sourcepawn only supports 32 bit integers, so you should probably use an extension like this instead:
https://forums.alliedmods.net/showthread.php?t=86019
Well I always use string for it, do you think FindTarget would work with this?
iGANGNAM is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 10-25-2015 , 05:52   Re: How to find player with Steam 64 id?
Reply With Quote #4

https://sm.alliedmods.net/new-api/cl...etClientAuthId
PHP Code:
GetClientAuthId(clientAuthId_SteamID64s_buffersizeof(s_buffer), true); 
Phil25 is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 10-25-2015 , 08:45   Re: How to find player with Steam 64 id?
Reply With Quote #5

you want something like this?

PHP Code:
stock int FindPlayerBySteamID64(const char[] cSteamID64){

    
char cBuffer[30];

    for(
int i 1<= MaxClientsi++){

        if(
IsClientConnected(i)){

            
GetClientAuthId(iAuthId_SteamID64cBuffersizeof(cBuffer));

            if(
StrEqual(cBuffercSteamID64))
                return 
i;
        }
    }

    return -
1;

__________________

Last edited by Starbish; 10-25-2015 at 08:45.
Starbish is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 10-25-2015 , 11:58   Re: How to find player with Steam 64 id?
Reply With Quote #6

Quote:
Originally Posted by Starbish View Post
you want something like this?

PHP Code:
stock int FindPlayerBySteamID64(const char[] cSteamID64){

    
char cBuffer[30];

    for(
int i 1<= MaxClientsi++){

        if(
IsClientConnected(i)){

            
GetClientAuthId(iAuthId_SteamID64cBuffersizeof(cBuffer));

            if(
StrEqual(cBuffercSteamID64))
                return 
i;
        }
    }

    return -
1;

yes thank you.
iGANGNAM is offline
Reply


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 22:11.


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