06.04.2018, 01:33
Why don't you simply do something like this?
PHP код:
//top
new Player_IP[MAX_PLAYERS];
// on player connect
GetPlayerIp(playerid, Player_IP[playerid], 16);
// example usage
new string[128];
format(string, sizeof(string), "Your IP Address: %s", Player_IP[playerid]);
SendClientMessage(playerid, -1, string);