1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fixed ping bug showing origin ping instead of target

event parser has GetGameDir
made parsers choosen more dynamically
profile shows online/offline status of client
This commit is contained in:
RaidMax
2018-04-14 23:26:27 -05:00
parent 4725f8b6f8
commit a7d5b81485
10 changed files with 66 additions and 17 deletions

View File

@ -89,9 +89,6 @@ namespace Application.RconParsers
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]);