Show Player location on Connect
#1

dasdsdsadsadsadsadsa
Reply
#2

Use GEOISP, that'll get their location.
Reply
#3

Use this http://forum.sa-mp.com/showthread.ph...ighlight=Geoip and replace OnPlayerConnect callback to
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;
}
IsPlayerAdmin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)