05.03.2016, 12:04
Hello, I need help.
I use include the Whitetigerswt (https://github.com/Whitetigerswt/SAMP-geoip) there is one function "GetPlayerProxy" but I do not know how to use it, I do not know how it works I want to format showed if a player uses a proxy (false / true )

I use include the Whitetigerswt (https://github.com/Whitetigerswt/SAMP-geoip) there is one function "GetPlayerProxy" but I do not know how to use it, I do not know how it works I want to format showed if a player uses a proxy (false / true )

Код:
CMD:checks(playerid, params[])
{
new string[144];
new string1[144];
new count=0;
format(string1,sizeof(string1),"Players ( online %i )", GetOnLinePlayers());
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Country1[30], City1[30], IP1[30];
GetPlayerCountry(playerid, Country1);
GetPlayerCity(playerid, City1);
GetPlayerIp(playerid,IP1,sizeof(IP1));
format(string,sizeof(string),"* %s ( ID %i ) [ Proxy: %i | IP: %s | Country: %s | City: %s ]\n\n", GetPlayerName(playerid), playerid, GetPlayerProxy(playerid), IP1, Country1, City1);
count++;
}
}
ShowPlayerDialog(playerid, DIALOG_LOKACE, DIALOG_STYLE_MSGBOX , string1, string, "Cancel", "");
return 1;
}


