// Car Button
InSim.Send_BTN_CreateButton("" + TempCars1, Flags.ButtonStyles.ISB_DARK, 4, 75, 0, 34, 140, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
// Cash Button
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash > 0)
{
InSim.Send_BTN_CreateButton("^7$" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash, Flags.ButtonStyles.ISB_DARK, 5, 12, 0, 109, 5, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash < 0)
{
InSim.Send_BTN_CreateButton("^1$" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash, Flags.ButtonStyles.ISB_DARK, 5, 12, 0, 109, 5, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
// Total Distance Button
InSim.Send_BTN_CreateButton("^7" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000d + " km", Flags.ButtonStyles.ISB_DARK, 3, 12, 0, 121, 162, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
// Distance Bonus Button
InSim.Send_BTN_CreateButton("" + bonusStr, Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_LEFT, 2, 25, 1, 141, 18, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + bonusStr, Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_LEFT, 2, 25, 1, 141, 12, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^7Bonus: ", Flags.ButtonStyles.ISB_DARK | Flags.ButtonStyles.ISB_LEFT, 4, 34, 0, 133, 13, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
case "!job":
if (StrMsg.Length == 1)
{
if (Connections[GetConnIdx(MSO.UCID)].JobToKinderGarten == 1 || Connections[GetConnIdx(MSO.UCID)].JobToFrank == 1 || Connections[GetConnIdx(MSO.UCID)].JobToLarry == 1 || Connections[GetConnIdx(MSO.UCID)].JobToJosh == 1 || Connections[GetConnIdx(MSO.UCID)].JobToPeter == 1)
{
InSim.Send_MTC_MessageToConnection("^1 Vienlaikus tu vari darit tikai vienu darbu!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
}
else if (Connections[GetConnIdx(MSO.UCID)].InShop == 1)
{
int Jobnum = new Random().Next(1, 8);
if (Jobnum == 1 || Jobnum == 5)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat picu uz Simpsonu maju!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToJosh = 1;
}
if (Jobnum == 2 || Jobnum == 6)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat picu uz ^2Autoservisu!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToPeter = 1;
}
if (Jobnum == 3 || Jobnum == 7)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat picu uz KEN BLOCK DRIFT LAUKUMU!!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToFrank = 1;
}
if (Jobnum == 4 || Jobnum == 8)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat picu uz striptiza namu!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToLarry = 1;
}
}
else if (Connections[GetConnIdx(MSO.UCID)].InFrank == 1 || Connections[GetConnIdx(MSO.UCID)].InJosh == 1 || Connections[GetConnIdx(MSO.UCID)].InPeter == 1 || Connections[GetConnIdx(MSO.UCID)].InLarry == 1)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat bernu uz Esential Clubu!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToKinderGarten = 1;
}
}
else
{
InSim.Send_MTC_MessageToConnection("^1Nepareiza komada. Ludzu skaties ^2!help^7 komandu saraksta", MSO.UCID, 0);
}
break;