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

Get player's country using his/her Steam prfoile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
papyrus_kn
Senior Member
Join Date: Feb 2009
Location: Bulgaria
Old 11-16-2009 , 04:41   Get player's country using his/her Steam prfoile
Reply With Quote #1

Is that possible to get player's country using his Steam profile, not using geoip module?
__________________
papyrus_kn is offline
Send a message via Skype™ to papyrus_kn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-16-2009 , 05:51   Re: Get player's country using his/her Steam prfoile
Reply With Quote #2

It's possible but not sure if it's really reliable since the field is not required. It may not filled.
__________________
Arkshine is offline
papyrus_kn
Senior Member
Join Date: Feb 2009
Location: Bulgaria
Old 11-16-2009 , 12:23   Re: Get player's country using his/her Steam prfoile
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
It's possible but not sure if it's really reliable since the field is not required. It may not filled.
10x for the help, but you're right - it's not reliable
__________________
papyrus_kn is offline
Send a message via Skype™ to papyrus_kn
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-16-2009 , 12:29   Re: Get player's country using his/her Steam prfoile
Reply With Quote #4

You could use HTTP 1.1 GET with sockets module to retrieve the player's SteamID page.
Then you could parse the contents to find the country.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-16-2009 , 12:30   Re: Get player's country using his/her Steam prfoile
Reply With Quote #5

Quote:
Originally Posted by papyrus_kn View Post
10x for the help, but you're right - it's not reliable
Well you can use both, if socket doesn't find the coutry, you try in Geoip.
__________________
Arkshine is offline
papyrus_kn
Senior Member
Join Date: Feb 2009
Location: Bulgaria
Old 11-16-2009 , 13:22   Re: Get player's country using his/her Steam prfoile
Reply With Quote #6

Quote:
Originally Posted by Arkshine View Post
Well you can use both, if socket doesn't find the coutry, you try in Geoip.
Yes, this is a good idea
__________________
papyrus_kn is offline
Send a message via Skype™ to papyrus_kn
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 07:23.


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