Hi!
I'm trying make a lock / unlock commands Officer / Member / Cadet.
Whats wrong?
Here 0 or?
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?