Yeah if you mean client IP address & port.
With some thing like this:
PHP Code:
#pragma semicolon 1
#include <sourcemod>
#pragma newdecls required
public void OnClientPutInServer(int client)
{
if(!IsFakeClient(client))
{
char sIPPort[64];
GetClientIP(client, sIPPort, sizeof(sIPPort), false);
PrintToChat(client, "Your IP address & Port is: %s", sIPPort);
PrintToServer("Client %N entered the game with IP & Port: %s", client, sIPPort);
}
}
You can use like this:
Code:
GetClientIP(client, string, sizeof(string), false);
First arg is client index.
Second arg is a string to store info.
Third is the size of string.
And the last, If true removes client port from string if false keeps port.