19.03.2009, 08:34
this isn't the script request thread you know.. I'd make it something like this
pawn Code:
new flagged[][] =
{
{ "123.123.123.123" },
{ "456.456.465.456" },
{ "789.789.789.789" }
};
public OnPlayerConnect(playerid)
{
new ip[16];
new str[128];
new playername[MAX_PLAYER_NAME];
GetPlayerIp(playerid, ip, sizeof(ip));
for (new f = 0; f < sizeof(flagged); f++)
if (strcmp(flagged[f], ip, false) == 0)
{
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);
}
}