12.01.2016, 19:56
Try using a new SQL plugin. Also.. Perhaps use the function GetPlayerIp:
Source: wiki.
Try that to get the IP, and after that store it into the database.
PHP код:
public OnPlayerConnect(playerid)
{
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
if(!strcmp(plrIP, "127.0.0.1"))
SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to your server, master :)");
return 1;
}
Try that to get the IP, and after that store it into the database.