Hey guys 
I am trying to create a little RCON tool for Enemy Territory using C#.
So i started a new console application project in VS and wrote this RCON class
class rcon
{
// DECLARATION
private Socket srvCON;
private IPAddress srvIP;
private int srvPORT;
private string srvRPW;
private string srvRCMD;
private List<byte> bytes = new List<byte>();
// CONSTRUCTOR
public rcon(string IP, string PORT)
{
srvIP = IPAddress.Parse(IP);
srvPORT = int.Parse(PORT);
srvCON = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
srvCON.Connect(srvIP, srvPORT);
}
// METHOD
public void cmdSend(string PW, string CMD)
{
srvRPW = PW;
srvRCMD = CMD;
srvRCMD = string.Format("rcon {0} {1}", srvRPW, srvRCMD);
for (int i = 0; i < 4; i++)
bytes.Add((byte)255);
foreach (char c in srvRCMD)
{
bytes.Add((byte)c);
}
byte[] send = new byte[bytes.Count];
for (int i = 0; i < bytes.Count; i++)
send[i] = bytes[i];
srvCON.Send(send, SocketFlags.None);
}
}
In main i use it with:
rcon rcon = new rcon("00.00.00.00","27960");//(string IPAdress, sting PORT)
rcon.cmdSend("pw", "[B][U]restart[/U][/B]");//(string RCONPW, string RCONCMD)
WORKS FINE! The server restarts …
But if i want to change the map.
rcon rcon = new rcon("00.00.00.00","27960");//(string IPAdress, sting PORT)
rcon.cmdSend("pw", "[B][U]map oasis[/U][/B]");//(string RCONPW, string RCONCMD)
The server will only receive “map” without " oasis" 
Does anyone got an idea how to “fix” this?
Would be great! 
Thanks in advance and greetings,
M!$T3rY
