30.09.2010, 20:09
Quote:
|
I use it ...
Код:
#include <a_samp>
#include <a_http>
public OnPlayerConnect(playerid)
{
new IP[16],string[256];
GetPlayerIp(playerid, IP, sizeof(IP));
format(string,sizeof(string),"api.wipmania.com/%s",IP);
HTTP(playerid, HTTP_GET ,string, "", "MyHttpResponse");
return 1;
}
forward MyHttpResponse(index, response_code, data[]);
public MyHttpResponse(index, response_code, data[])
{
new pname[MAX_PLAYER_NAME], string[256];
GetPlayerName(index, pname, sizeof(pname));
format(string,sizeof(string),"%s connected [country: %s]",pname,data);
SendClientMessageToAll(0xffffffff,string);
return 1;
}
|
, but the HTTP client is slow 
--------------------------------------------
The new recomplied geoip plugin working, but crashing, i tested on my server ( Linux ).


