Where i do make locations in LsC insim BL1 ?
[Command("job", "job")]
public void job(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
if (StrMsg.Length == 1)
{
if (Connections[GetConnIdx(MSO.UCID)].CurrentCar == "FZ5" || Connections[GetConnIdx(MSO.UCID)].CurrentCar == "VWS" || Connections[GetConnIdx(MSO.UCID)].CurrentCar == "LX4" || Connections[GetConnIdx(MSO.UCID)].CurrentCar == "FXO" || Connections[GetConnIdx(MSO.UCID)].CurrentCar == "XRR")
{
InSim.Send_MTC_MessageToConnection("^6> ^7Jobs can only be done in road cars!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
}
else
{
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("^1You can only do 1 Job at a time!", 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) + " ^6Accepted a Job!");
InSim.Send_MTC_MessageToConnection("^6> ^7Deliver A Pizza to Joshs House!", 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) + " ^6Accepted a Job!");
InSim.Send_MTC_MessageToConnection("^6> ^7Deliver A Pizza to Peters House!", 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) + " ^6Accepted a Job!");
InSim.Send_MTC_MessageToConnection("^6> ^7Deliver A Pizza to Franks House!", 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) + " ^6Accepted a Job!");
InSim.Send_MTC_MessageToConnection("^6> ^7Deliver A Pizza to Larrys House!", 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) + " ^6Accepted a Job!");
InSim.Send_MTC_MessageToConnection("^6> ^7Take the child to the KinderGarten Safely!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToKinderGarten = 1;
}
}
}
else
{
InSim.Send_MTC_MessageToConnection("^1Invalid command. ^7use !help^7 for available commands", MSO.UCID, 0);
}
}