Show Player location on Connect
#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


Messages In This Thread
Show Player location on Connect - by Vytixz - 11.03.2013, 00:11
Re: Show Player location on Connect - by EliteApple - 11.03.2013, 00:32
Re: Show Player location on Connect - by Ironboy - 11.03.2013, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)