Код:
new pip[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
GetPlayerIp(playerid, pip, sizeof(pip));
for(new i, m = GetMaxPlayers(); i < m; i++)
{
if (!IsPlayerConnected(i)) continue;
if (IsPlayerAdmin(i))
format(pip, sizeof pip, "*** %s has joined the server.(ID:%d) [IP: %s]", name,playerid, pip);
else
format(pip, sizeof pip, "*** %s has joined the server.(ID:%d)", name, playerid);
SendClientMessage(i, 0xAAAAAAAA, pip);
}
Seif you gave this to me. Sometimes it works. Sometimes it shows me the Ip sometimes it shows me (in the []) again "has joined t"