PHP код:
new text[43+MAX_PLAYER_NAME+16], ip[16];
GetPlayerIp(playerid, ip, sizeof(ip));
format(text, sizeof(text), "Nick: %s [id:%d] [ip:%s] присоединился к серверу!", pNick(playerid), playerid, ip);
send_admin_chat(-1, text);
for(new i; i < MAX_PLAYERS; i++)
{
if(Player[i][pAdmin] == 0)
{
format(text, sizeof(text), "Nick: %s присоединился к серверу!", pNick(playerid));
SendAll(-1, text)
}
}
PHP код:
stock send_admin_chat(color, text[])
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Player[i][pAdmin] > 0)
{
SendClientMessage(i, color, text);
}
}
return true;
}
Попробуй.