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

Stable v0.8

This commit is contained in:
RaidMax
2015-03-30 00:04:10 -05:00
parent c3bf5bf33a
commit fc67371ecb
22 changed files with 596 additions and 62 deletions

View File

@ -229,9 +229,10 @@ namespace IW4MAdmin
{
String[] playerInfo = responseLine.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
int cID = -1;
String cName = stripColors(responseLine.Substring(46, 18)).Trim();
String npID = responseLine.Substring(29, 17).Trim(); // DONT TOUCH PLZ
int cID = Convert.ToInt32(playerInfo[0]);
int.TryParse(playerInfo[0], out cID);
String cIP = responseLine.Substring(72,20).Trim().Split(':')[0];
Player P = new Player(cName, npID, cID, cIP);