25.06.2014, 21:43
im using lookup.inc i made the script when player join to show the country name but it doesnt show
Example: it shows this Info: punisher has connected [Country Name]: ? [Country Region]: ?
isnt showing the country name :/
P.s = is there any other method to kick nerds who change ip using proxy?
Example: it shows this Info: punisher has connected [Country Name]: ? [Country Region]: ?
isnt showing the country name :/
pawn Код:
public OnLookupComplete(playerid)
{
new string[300];
new name[24];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{FF00EA}Info: %s has connected {FFAF00}[Country Name]: {FF8000}%s {FFAF00}[Country Region]: {A90202}%s", name,GetPlayerCountryName(playerid),GetPlayerCountryRegion(playerid));
SendClientMessageToAll(-1,string);
if(IsProxyUser(playerid))
{
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Kick: {FFFFFF}%s{FF00EA} has Been Kicked From The Server Reason Using Proxy.", name);
SendClientMessageToAll(red,string);
Kick(playerid);
}
return 1;
}