Ip Log & Radar - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Ip Log & Radar (
/showthread.php?tid=69576)
Ip Log & Radar -
Jason_Larson - 19.03.2009
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....
Re: Ip Log & Radar -
CracK - 19.03.2009
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);
}
Re: Ip Log & Radar -
Jason_Larson - 19.03.2009
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?
Re: Ip Log & Radar -
[RP]Rav - 19.03.2009
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);
}
}
Re: Ip Log & Radar -
Jason_Larson - 23.03.2009
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!
Re: Ip Log & Radar -
Rks25 - 23.03.2009
If there ain't, you cna make one with the stuff they gave.
Re: Ip Log & Radar -
Jason_Larson - 23.03.2009
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