22.08.2018, 20:55
(
Last edited by Twixxx; 23/08/2018 at 11:46 AM.
)
Description
Example:
Screenshot:
Author: Twixxx (aka whale)
Source code: https://pastebin.com/pDU65WzZ
Download: https://www.dropbox.com/s/uct85d9l2c...ation.inc?dl=0
P.S Im sry for my bad eng, guys
This include gets some information about player IP-address and keeps it during the game session.Available macros for use:
PHP Code:
GetPlayerCountry(playerid) - get the name of the country in which the player is now located (string).
GetPlayerCity(playerid) - get the name of the city in which the player is now located (string).
GetPlayerLatitude(playerid) - get the latitude coordinates of the player (string).
GetPlayerLongtitude(playerid) - get the longtitude coordinates of the player (string).
GetPlayerProvider(playerid) - get the name of the provider of the player [ISP] (string).
GetPlayerProxyStatus(playerid) - does the player use proxy (string).
PHP Code:
public OnPlayerConnect(playerid)
{
printf("Country: %s", GetPlayerCountry(playerid));
printf("City: %s", GetPlayerCity(playerid));
printf("Latitude: %s", GetPlayerLatitude(playerid));
printf("Longtitude: %s", GetPlayerLongtitude(playerid));
printf("Provider: %s", GetPlayerProvider(playerid));
printf("ProxyStatus: %s", GetPlayerProxyStatus(playerid));
return 1;
}
Quote:
|
Source code: https://pastebin.com/pDU65WzZ
Download: https://www.dropbox.com/s/uct85d9l2c...ation.inc?dl=0
P.S Im sry for my bad eng, guys