SA-MP Forums Archive
Login message with location. - 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: Login message with location. (/showthread.php?tid=341843)



Login message with location. - Karl[NDZ] - 12.05.2012

Hey guys, I have seen on some servers that they have like: [NDZ]Karl(0) Joined the server [Norway] or something like that. This is what I have on my OnPlayerConnect now:
pawn Код:
new string[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s(%d) has joined the server.", name, playerid);
    SendClientMessageToAll(0xAAFFCC33, string);
How can I make it show what country he/she is from?


Re: Login message with location. - TheBetaFox - 12.05.2012

Use GeoIP.


Re: Login message with location. - Karl[NDZ] - 12.05.2012

Quote:
Originally Posted by TheBetaFox
Посмотреть сообщение
Use GeoIP.
Thx