Ip Log & Radar
#4

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);
    }
}
Reply


Messages In This Thread
Ip Log & Radar - by Jason_Larson - 19.03.2009, 07:19
Re: Ip Log & Radar - by CracK - 19.03.2009, 07:57
Re: Ip Log & Radar - by Jason_Larson - 19.03.2009, 08:24
Re: Ip Log & Radar - by [RP]Rav - 19.03.2009, 08:34
Re: Ip Log & Radar - by Jason_Larson - 23.03.2009, 15:32
Re: Ip Log & Radar - by Rks25 - 23.03.2009, 16:53
Re: Ip Log & Radar - by Jason_Larson - 23.03.2009, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)