So basically, the main problem on Zombie Servers is trying to find the emails to users that hack so they can be banned. They aren't always online when they are going to be banned, which makes it extremely hard. I am making a command that writes all names to a text file when a user joins. I have not yet compiled it and tested it so I have yet to know if it works or not. My current problem is trying to figure out how to make multiple messages appear at once... for instance:
- Code: Select all
foreach (string line in File.ReadAllLines(path1))
{
if (line.Contains(message))
{
Player.SendMessage(p, line);
}
}
On the P.SM, I am wondering how I would make it to where if there were multiple names found (example, someone typed /[command] [part of a name]) and it would show all names that are similar to it. To further explain, we'll use my 3 accounts for example. Let's say I typed /[command] [warren] when all three of my accounts end in some order of numbers. I would like for it to show all 3 users, instead of just the first one that it comes upon.
I haven't tested the command, so if what I'm doing right now works.. then this whole thing was useless. xD
Or if it's impossible... Anyways, is there a way to make it send multiple messages if there are multiple users found?