i am making a command in a insim to private message people and here is a example of the code i made. i desided to just let the forum help me because i have no clue on how to finish this command. sorry if it such a simple command i just dont know!!!
[Command("pm", "pm <username> <message>")]
public void pm(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
// string Send = StrMsg[1];
foreach (clsConnection i in Connections)
{
if (i.Username == Msg.Remove(0, 4))
{
InSim.Send_MTC_MessageToConnection("^6> ^7Private Message from " + Connections[GetConnIdx(MSO.UCID)].PlayerName, i.UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^6> ^7" + Msg.Remove(0, StrMsg[1].Length + 1), i.UniqueID, 0);
}
}