31.03.2018, 16:00
Код:
Eu uso esse aqui: http://proxy.mind-media.com/block/
https://sampforum.blast.hk/showthread.php?tid=632895
so que a gm nao estб lendo os dados do site ai dei uma modificada e ficou assim
PHP код:
public OnPlayerConnect(playerid)
{
new ip[32], stringz[59];
GetPlayerIp(playerid, ip, sizeof(ip));
format(stringz, sizeof(stringz), "http://proxy.mind-media.com/block/proxycheck.php?ip=%s", ip);
printf("http://proxy.mind-media.com/block/proxycheck.php?ip=%s", ip);
HTTP(playerid, HTTP_GET, stringz, "", "MyHttpResponse");
return 1;
}
forward MyHttpResponse(playerid, response_code, data[]);
public MyHttpResponse(playerid, response_code, data[])
{
new name[MAX_PLAYERS],string[256];
new ip[32];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerIp(playerid, ip, sizeof(ip));
if(response_code == 200)
{
printf("%s", data);
if(data[0] == 'Y')
{
format(string, 256, "[ PROXY DETECTADO ] %s [ %d ] foi kickado do servidor!", name, playerid);
SendClientMessageToAll( 0xFF0000FF, string);
SendClientMessage(playerid, 0xFF0000FF, "[ ANTI PROXY/VPN ] Desligue sua PROXY/VPN senгo irб ser kickado!");
SetTimerEx("DelayedKick", 100, false, "i", playerid);
printf("%s", data);
}
if(data[0] == 'N')
{
format(string, 256, "[ PROXY NГO DETECTADA ] %s [ %d ] Vocк estб liberado!", name, playerid);
SendClientMessageToAll( 0x09F7DFC8, string );
printf("%s", data);
}
if(data[0] == 'X')
{
printf("WRONG IP FORMAT");
}
}
else
{
printf("The request failed! The response code was: %d", response_code);
}
return 1;
}
forward DelayedKick(playerid);
public DelayedKick(playerid)
{
Kick(playerid);
return 1;
}
ainda continua sem chamar a public MyHttpResponse...
Eu ate dei uma estudada na http.inc mas msm assim nao ajudou