19.03.2009, 07:57
pawn Code:
public OnPlayerConnect(playerid)
{
new ip[16];
new str[128];
new playername[MAX_PLAYER_NAME];
GetPlayerIp(playerid, ip, sizeof(ip));
GetPlayerName(playerid, playername, sizeof(playername));
format(str,sizeof(str),"ADMINWATCH: Player %s has connected to the server and %s is flagged",playername,ip);
for(new i; i<MAX_PLAYERS; i++)
if(IsPlayerAdmin(i)) SendClientMessage(i, COLOR_YELLOW, str);
}

