Ip Log & Radar
#1

Hey All, someone made a topic about this some time ago but I have no idea where it has gone lol.

I'm looking for a code that if a player joins the server lets say IP 71.56.113.114 it would pop up for all admins saying

ADMINWATCH: Player %s has connected to the server and %s is flagged

Someone suggested a code but I had numerous errors from it. I just want to be able to add IP's and it send a message, anyone?

----

Also does anyone know if its possible for Police to type something like /radar and it shows everyone within Prox30.0' Speed? I searched but found more of the map radar than something like this....
Reply
#2

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

Quote:
Originally Posted by CrαcK
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);
}
FYI I have GF Platinum, and where do I add the IP's I want that to send for?
Reply
#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
#5

Hey Guys, tried neither worked.....

Also if you read my message you'd read I was not asking for someone to make me one, I was asking if there was a filter script or something similar to it...


Does anyone know if the radar is possible, or if it exists?

Thanks a Bunch!
Reply
#6

If there ain't, you cna make one with the stuff they gave.
Reply
#7

Quote:
Originally Posted by Rk_
If there ain't, you cna make one with the stuff they gave.
A radar or IP? lol I'm already playing with the IP thingy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)