22.04.2014, 13:58
pawn Код:
public OnIncomingConnection(playerid, ip_address[], port)
{
new playername[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, playername, sizeof playername);
format(str, sizeof str, "Incoming connection for player %s (%i) [IP/port: %s:%i]", playername, playerid, ip_address, port);
SendClientMessageToAll(str, 0xAAFFCCAA);
printf("Incoming connection for player %s (%i) [IP/port: %s:%i]", playername, playerid, ip_address, port);
return 1;
}