bool Found = false;
foreach (clsConnection i in Connections)
{
if (i.InGame == 1)
{
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 125, 3, 190, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 128, 3, 191, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 131, 3, 192, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 134, 3, 193, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 137, 3, 194, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 140, 3, 195, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 143, 3, 196, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 146, 3, 197, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 149, 3, 198, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 152, 3, 199, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 155, 3, 200, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 158, 3, 201, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 161, 3, 202, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 164, 3, 203, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^2A", Flags.ButtonStyles.ISB_DARK, 4, 29, 167, 3, 204, i.UniqueID, 2, false);
}
}
else if (i.InGame == 0)
{
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 125, 3, 190, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 128, 3, 191, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 131, 3, 192, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 134, 3, 193, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 137, 3, 194, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 140, 3, 195, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 143, 3, 196, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 146, 3, 197, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 149, 3, 198, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 152, 3, 199, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 155, 3, 200, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 158, 3, 201, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 161, 3, 202, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 164, 3, 203, i.UniqueID, 2, false);
}
{
Found = true;
InSim.Send_BTN_CreateButton(i.PlayerName + " ^1•", Flags.ButtonStyles.ISB_DARK, 4, 29, 167, 3, 204, i.UniqueID, 2, false);
}
}
}
NewConn.IsSupporter = FileInfo.IsSupporter(NCN.UName);
[Command("addsupp", "addsupp <username>")]
public void addsupp(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
clsConnection Conn = Connections[GetConnIdx(MSO.UCID)];
if (StrMsg.Length > 1)
{
if (Conn.IsAdmin == 1 || Conn.IsSuperAdmin == 1 || Conn.IsModerator == 1)
{
foreach (clsConnection l in Connections)
{
if (l.Username == StrMsg[1] && StrMsg[1].Length > 1)
{
MsgAll("^6»^7 " + l.PlayerName + " ^7Added as ^6Supporter");
MsgAll("^6»^7 By: " + Conn.PlayerName);
l.IsSupporter = 1;
}
}
}
}
else
{
InSim.Send_MTC_MessageToConnection("^7Invalid command or Not autorized!", MSO.UCID, 0);
}
}
public byte IsSupporter;
Sr.WriteLine("Support = 0");
Sw.WriteLine("Support = " + C.IsSupporter);
Sw.WriteLine("Support = " + IsSupporter);
public static byte IsSupporter(string Username)
{
StreamReader Sr = new StreamReader(Database + "\\" + Username + ".txt");
string line = null;
while ((line = Sr.ReadLine()) != null)
{
if (line.Substring(0, 6) == "Support")
{
string[] Msg = line.Split('=');
Sr.Close();
return byte.Parse(Msg[1].Trim());
}
}
Sr.Close();
return 0;
}