1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-13 16:48:27 -05:00

changed the player history to reflect correct timezone

added result count to find clients
only show unique aliases on profile page
some rcon socket changes
This commit is contained in:
RaidMax
2018-04-02 22:11:19 -05:00
parent 3e094b0b61
commit 071cab1ecf
7 changed files with 98 additions and 60 deletions

View File

@ -70,6 +70,10 @@ namespace SharedLibrary
long npID = Regex.Match(responseLine, @"([a-z]|[0-9]){16}", RegexOptions.IgnoreCase).Value.ConvertLong();
int.TryParse(playerInfo[0], out cID);
var regex = Regex.Match(responseLine, @"\d+\.\d+\.\d+.\d+\:\d{1,5}");
#if DEBUG
Ping = 1;
#endif
int cIP = regex.Value.Split(':')[0].ConvertToIP();
regex = Regex.Match(responseLine, @"[0-9]{1,2}\s+[0-9]+\s+");
int score = Int32.Parse(regex.Value.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)[1]);