|
|
Snapple 03-13-2007, 03:27 PM How do i get peoples names/smurf names to show up when you click on someones name in the tab window.
as of right now if i click on some ones name in the tab window i get the following:
Name: Unkown
Ip: persons ip #
(along with the normal options to admin the person)
i have a log file with everyones ip, i want it to take any names that match up with a given ip and list them in the name field.
http://img410.imageshack.us/img410/8642/sshot0008ck3.png
AgentOrange 03-13-2007, 04:18 PM The Name field represents the admin account name so you can identify which admin account someone has logged in with.
The IP field only shows you their current IP address.
Modifying it to what you're asking for would be a lot of work if its even possible.
Snapple 03-13-2007, 04:19 PM nonreg did it on his server(sanctuary) but he wont tell me how :[
Rosco-SS 03-13-2007, 04:28 PM if nons gonna be a homo and not tell you, just ask Terra. He had it on BLT, and he might still have the files for it.
NoFiX 03-13-2007, 04:39 PM PM Plasmatic. If you want scripting help, he'll walk you thru anything...
Nonreg 03-13-2007, 04:59 PM has more to do with to much work involved for me.
Rosco-SS 03-13-2007, 05:04 PM has more to do with to much work involved for me.
homo
Snapple 03-13-2007, 06:38 PM lhkj.hjkl.
has more to do with to much work involved for me.
How about you give him the script and let him use others to help set it up? I see nothing wrong with that.
Jelly 03-13-2007, 08:16 PM agreed.
dont be homo
Snapple 03-13-2007, 09:26 PM non said he wont send me it now because i told the public about it....
React0r 03-13-2007, 10:09 PM Why ruin the fun in smurfing?
Spockhammer 03-13-2007, 11:56 PM i like smurfing, but i also like people to know who i am when i smurf
it makes me feel less subversive and more like "one of the guys"
... and i like that feeling alot, it makes me feel whole :sunny:
Lemon 03-14-2007, 01:22 AM Easy money. If you can't figure it out I can do it no problem.
NoFiX 03-14-2007, 07:15 PM non said he wont send me it now because i told the public about it....
Have you PM'ed Plasmatic?
Lemon 03-15-2007, 09:54 AM Installing a "clone scanner/smurf tracker" is super easy. Its just a few lines of code in code.server.cs and a few more in code.admin.cs. Your problem will be manually editing the cloneslist to add all the previous connection ip's and names. Likely a big job for your server. The way zadmin logs connections makes it impossible(?) to use that data for future reference by script. Where zadmin logs a connection like so...
$IPLogEntry = "2006-09-22 20:46 Name: Lemon IP: IP:69.181.158.70:1532 ";
$IPLogEntry = "2006-09-22 20:48 Name: Lemon IP: IP:69.181.158.70:1532 ";
Not searchable...
A clone scanner, King Tomato's that I modified for my paintball server, logs an connection like this...
$Clones::List68_82_97_225 = "{DiE}-Death, ||SLO||HoLoCoSt, I'll beat ur ass, 3 Inchs Of Blood";
$Clones::List69_164_79_11 1 = "=PG= GB Packer, [PG]Mercenary987, =]PG[=Penguin, =PG=Mercenary987, =]PG[=Mercenary, Wasted Cupcake";
searchable...
EDIT BUMP: I just installed this on my base server for shits and giggles...I whipped up some install instructions and it should only take 5 or 10 minutes to install...If you haven't taken care of it by now pm me and I'll give you an ip and sad to see it in action...I'll give it to anyone who wants it btw...
figgs 03-18-2007, 10:34 AM snapz pm me in irc, non gave me the same file but i had to figure it out on my own, i have it semi-working now
Plasmatic 03-18-2007, 03:56 PM Lemon has it right. If the log you have is a .log or each entry uses the same variable, then you're boned. I suppose you could parse the information with a text editor and find/ replace though.
Lemon, the way you're doing it can create problems if the file becomes too large, or someone connects with enough names to make the string too large. New versions of Annihilation save the information to a file, then load the information in that file when needed.
:ftard:
// Player Info by Plasmatic 1/30/2005 2:45AM
// This is an extention of the Ip Logger, and will replace it eventually.
// This is a lot nicer on Tribes memory and stability.
function Ann::PlayerInfo::Connect( %client)
{
// echo("player Info?!! ZOMG!@@!##1`q!");
%transport = Client::getTransportAddre ss(%client);
%ip = Ann::ipCut(%transport);
if(%ip!="")
{
schedule("Ann::PlayerInfo::Saves("@%client@", "@%transport@");",18000); //5 mins between saves.
%address = Ann::Replace(%ip, ".", ":"); //"IP"@Ann::Replace(%ip, ".", ":");
%clname = client::getName(%client);
%file = "Z" @ %ip @ ".cs"; // no ':'s in windows file names.
// Tribes doesn't like xp file permissions and has path issues....
// I'd really like to shove this crap to a new directory. -Plasmatic
if(isFile("Temp\\"@%file))
{
// echo(%file@" found.");
// push into sys memory
exec(%file);
//now we parse this crap up
%more = %address@":name";
%nameString = $annInfo::[%more]; //$annInfo::[%address];
if(Ann::StrLen(%nameStrin g)>950)
%namestring = string::getsubstr(%namest ring,0,900);
// echo("found an existing name");
if(%nameString == %clname) //!string::ICompare(%nameSt ring,%clname) == 0)
{
%adminmessage = %clname@" Has connected before, only one name saved for this IP.";
%names = %namestring;
}
else
{
if(string::findSubStr(%na meString, "~") == 0)
{
// corrupt file... Remove ~ at beginning of string.
// This happens when a file is cleared accidently.
// Shouldn't happen anymore.
%namestring = string::getsubstr(%namest ring,1,900);
$annInfo::[%more] = %nameString;
Ann::PlayerInfo::VarSet(% file, %address, "name", %nameString);
}
else if(String::findSubStr(%na meString, "~") > 0)
{
//check other names here.. code gnomes, do your work..
%names = Ann::Replace(%namestring, "~", ", ");
if(string::findSubStr(%na meString, %clname) != -1)
{
// echo("found clients name, not changing");
%adminmessage = %clname@"'s IP Has connected before as: "@%names;
}
else
{
// echo("adding new name to list");
%nameString = %nameString@"~"@%clname;
%adminmessage = %clname@"'s IP Has connected before as: "@%names;
Ann::PlayerInfo::VarSet(% file, %address, "name", %nameString);
}
}
else
{
// echo("adding new name to list");
if(%nameString != "")
%nameString = %nameString@"~"@%clname;
else
%nameString = %clname;
%adminmessage = %clname@"'s IP Has connected before as: "@%namestring;
Ann::PlayerInfo::VarSet(% file, %address, "name", %nameString);
}
}
%more = %address@":Tkills";
%client.TKills = $annInfo::[%more];
%more = %address@":TDeaths";
%client.TDeaths = $annInfo::[%more];
}
else
{
// first connect.
// echo("Creating "@%file@", dumping to Temp\\");
Ann::PlayerInfo::VarSet(% file, %address, "name", %clname);
%adminmessage = %clname@"'s IP hasn't connected before.";
//Export name
%export = "$anninfo::"@%address@":*";
export(%export, "Temp\\"@ %file, false); //true = append
evalsearchpath();
}
}
%adminmessage = %ip@" "@%adminmessage;
echo(%adminmessage);
admin::BPmessage(%adminme ssage);
%client.names = %names;
Ann::PlayerInfo::Export(% client);
}
function Ann::PlayerInfo::Export(% client)
{
%transport = Client::getTransportAddre ss(%client);
%ip = Ann::ipCut(%transport);
if(%ip!="")
{
%address = Ann::Replace(%ip, ".", ":");
// echo("Store player Info?!! ZOMG!@@!##1`q!");
%ip = Ann::ipCut(%transport);
%address = Ann::Replace(%ip, ".", ":"); //"IP"@Ann::Replace(%ip, ".", ":");
%clname = client::getName(%client);
%file = "Z" @ %ip @ ".cs";
if(isFile("Temp\\"@%file))
{
//set our saved info vars.
Ann::PlayerInfo::VarSet(% file, %address, "TKills", %client.TKills);
Ann::PlayerInfo::VarSet(% file, %address, "TDeaths", %client.TDeaths);
//Export them all.
%export = "$anninfo::"@%address@":*";
export(%export, "Temp\\"@ %file, false); //true = append
}
}
}
function Ann::PlayerInfo::VarSet(% file, %address, %variableName, %value)
{
%more = %address@":"@%variableName;
$annInfo::[%more] = %value;
%export = "$anninfo::"@%more;
// export(%export,"Temp\\"@ %file, true);
// echo("Setting " @ %export @ " = " @ %value );
}
function Ann::PlayerInfo::Disconne ct(%client)
{
Ann::PlayerInfo::Export(% client);
%transport = Client::getTransportAddre ss(%client);
%ip = Ann::ipCut(%transport);
if(%ip!="")
{
%address = Ann::Replace(%ip, ".", ":");
// They left, delete crap.
%DUMP = "$annInfo::" @ %address @ "*";
deleteVariables(%dump);
}
}
function Ann::PlayerInfo::Saves(%c lient,%trans)
{
echo("Save player info");
%transport = Client::getTransportAddre ss(%client);
if(%trans == %transport)
{
Ann::PlayerInfo::Export(% client);
schedule("Ann::PlayerInfo::Saves("@%client@", "@%transport@");",18000); //5 mins between saves.
}
}
Lemon 03-18-2007, 06:42 PM Clone string length over 225 in my version gets that ip a ban...
I saw that as a problem a while back...
IDK about the size issue but I will certainly take your word for it...
Plasmatic 03-18-2007, 08:05 PM You can store too many variables and crash Tribes, depending on how popular your server is. In Annihilation NJ the file got too large in a few days..
|
|