The online racing simulator
!lock / unlock commands.
(5 posts, started )
!lock / unlock commands.
Hi!
I'm trying make a lock / unlock commands Officer / Member / Cadet.

case "!lockmember":
if (Connections[GetConnIdx(MSO.UCID)].Username == "username")
{
//int Username = int.Parse(StrMsg[1]);


foreach (clsConnection i in Connections)
{
if (i.Username == StrMsg[1])
{
if (i.Stat == 10 || i.Stat == 11 || i.Stat == 13 || i.Stat == 12)
{
i.Stat = 12;
InSim.Send_MST_Message("/msg ^6>^7 " + i.PlayerName + " can't now be a Member");
}
else
{
i.Stat = 2;
InSim.Send_MST_Message("/msg ^6>^7 " + i.PlayerName + " can't now be a Member");
InSim.Send_MST_Message("/spec ^6>^7 " + Connections[GetConnIdx(MSO.UCID)].Username + " can't now be a Member");
}
}

}




}

break;

Whats wrong?

i.Stat = 12;
InSim.Send_MST_Message("/msg ^6>^7 " + i.PlayerName + " can't now be a Member");
}
else
{
i.Stat = 2;

Here 0 or?
#2 - PoVo
Yes change the 2 to 0

Also this part, makes no sense at all.
InSim.Send_MST_Message("/spec ^6>^7 " + Connections[GetConnIdx(MSO.UCID)].Username + " can't now be a Member");

Quote from PoVo :Yes change the 2 to 0

Also this part, makes no sense at all.
InSim.Send_MST_Message("/spec ^6>^7 " + Connections[GetConnIdx(MSO.UCID)].Username + " can't now be a Member");


Povo can you help me with this?
I'm wrote on skype yet.
anyone can help?
Quote from kalvin93 :anyone can help?

you coppied the /msg command ... replace the /sepc with this

InSim.Send_MST_Message("/spec " + Connections[GetConnIdx(MSO.UCID)].Username);

!lock / unlock commands.
(5 posts, started )
FGED GREDG RDFGDR GSFDG