Raised This Month: $ Target: $400
 0% 

How to get steam id?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lons0r
New Member
Join Date: Sep 2006
Old 07-21-2007 , 13:09   How to get steam id?
Reply With Quote #1

Hi,

How can I get the steam ID of a player, using only the user ID? I've read the wiki, searched the forums, and looked at several example plugins, but I can't find a way to do this seemingly simple thing.

Thanks.
lons0r is offline
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 07-21-2007 , 15:06   Re: How to get steam id?
Reply With Quote #2

scripting/includes/client.inc Line 137:
Code:
/**
 * Retrieves a client's authentication string (SteamID).
 *
 * @param client        Player index.
 * @param auth            Buffer to store the client's auth string.
 * @param maxlen        Maximum length of string buffer (includes NULL terminator).
 * @return                True on success, false otherwise.
 * @error                If the client is not connected or the index is invalid.
 */
native bool:GetClientAuthString(client, String:auth[], maxlen);
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
lons0r
New Member
Join Date: Sep 2006
Old 07-21-2007 , 15:08   Re: How to get steam id?
Reply With Quote #3

hehe, thanks for the reply
lons0r is offline
Reply



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 04:33.


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