11.03.2013, 00:39
Use this http://forum.sa-mp.com/showthread.ph...ighlight=Geoip and replace OnPlayerConnect callback to
IsPlayerAdmin
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerAdmin(playerid))
{
new Country[256];
GetPlayerCountry(playerid,Country);
new mess[256],IP[256];
GetPlayerIp(playerid,IP,sizeof(IP));
format(mess,sizeof(mess),"%s has joined the server. [ Country: %s | IP Address: %s | Ping: %i ]",GetPName(playerid),Country,IP,GetPlayerPing(playerid));
printf(mess);
SendClientMessage(playerid,COLOR_JOIN,mess);
}
return 1;
}