The online racing simulator
stating process
I'm trying to add some userstate in insim but it's not showing can be ...

so is my code's wrong?


[Command("addtow", "addtow <username>")]
public void addtow(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
if (Connections[GetConnIdx(MSO.UCID)].Username == "Th3D4rk" || Connections[GetConnIdx(MSO.UCID)].Username == "mariuba2" || Connections[GetConnIdx(MSO.UCID)].Username == "Tomrius")
{
 
foreach (clsConnection i in Connections)
{
if (i.Username == Msg.Remove(0, 15))
{
if (i.Stat == 10 || i.Stat == 11 || i.Stat == 12 || i.Stat == 13 || i.Stat == 15)
{
i.Stat = 5;
InSim.Send_MST_Message("/msg ^6|^7 " + i.PlayerName + "^7 can now be a Rlc Tow");
}
else
{
i.Stat = 5;
InSim.Send_MST_Message("/msg ^6|^7 " + i.PlayerName + "^7 can now be a Rlc Tow");
}
}
}
}
}

thats why I never use this Stat in clsconnection

FGED GREDG RDFGDR GSFDG