if (Ply.Payout > 4)
{
Connections[GetConnIdx(Ply.UniqueID)].Cash += 2;
Ply.Payout = 0;
}
}
}
private void CheckUser_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (clsConnection C in Connections)
{
if (Stage == 1)
{
InSim.Send_BTN_CreateButton("^7" + Website, Flags.ButtonStyles.ISB_DARK, 2, 7, 3, 45, 3, C.UniqueID, 2, false);
}
else
{
string Time = Convert.ToString(System.DateTime.Now.TimeOfDay.Hours).PadLeft(2, '0') + ":" + Convert.ToString(System.DateTime.Now.TimeOfDay.Minutes).PadLeft(2, '0');
InSim.Send_BTN_CreateButton("^7" + Time, Flags.ButtonStyles.ISB_DARK, 2, 7, 3, 45, 3, C.UniqueID, 2, false);
}
string TempCars1 = "^1UF1 ^1XFG ^1XRG ^1LX4 ^1LX6 ^1RB4 ^1FXO ^1XRT ^1RAC ^1FZ5";
string TempCars2 = "^1UFR ^1XFR ^1FXR ^1XRR ^1FZR ^1MRT ^1FBM ^1FOX ^1FO8 ^1BF1";
if (C.Cars.Contains("UF1"))
{
TempCars1 = TempCars1.Replace("^1UF1", "^2UF1");
}
if (C.Cars.Contains("XFG"))
{
TempCars1 = TempCars1.Replace("^1XFG", "^2XFG");
}
if (C.Cars.Contains("XRG"))
{
TempCars1 = TempCars1.Replace("^1XRG", "^2XRG");