Do not use sockets for that purpose, stick with curl.
https://github.com/Next21Team/AmxxCurl
I won't go in-depth about the differences but with sockets, if you do multiple requests within a short interval of time, you may receive the response all at once instead of in pieces for each request, you wouldn't know which request the response belongs to. You don't have this problem with curl, all you really need is to send the request, once curl receives the response, it will trigger the callback.
Curl is pretty simple, there is plenty of information on google, just search.
There is even a couple of examples of how to use AmxxCurl module,
https://github.com/Next21Team/AmxxCu...r/amx_examples
Now regarding how to get the stats of a player, you won't request the stats page, instead, you have to request the gametracker API, it will return either an XML or a JSON response containing all the information of the specified player.
Alternatively, you could just show a motd pointing to the player stats page.
__________________