Show Player location on Connect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Show Player location on Connect (
/showthread.php?tid=421814)
Show Player location on Connect -
Vytixz - 11.03.2013
dasdsdsadsadsadsadsa
Re: Show Player location on Connect -
EliteApple - 11.03.2013
Use GEOISP, that'll get their location.
Re: Show Player location on Connect -
Ironboy - 11.03.2013
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