22.12.2008, 20:16
Код:
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); }
what's wrong?