[Command("call911", "call911")]
public void callpolice(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
clsConnection Conn = Connections[GetConnIdx(MSO.UCID)];
if (StrMsg.Length > 0)
{
int FoundCadet = 0;
foreach (clsConnection C in Connections)
{
if (Conn.IsCadet == 1)
{
FoundCadet = 1;
InSim.Send_MTC_MessageToConnection("^1-^7 Please wait for awhile your Call is Accepted!", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^1-^7 Calling for Police Request: ", C.UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1-^7 Name: " + Conn.PlayerName, C.UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1-^7 Located: " + Conn.Location, C.UniqueID, 0);
C.PoliceUsername = Conn.Username;
Conn.PoliceUsername = 1;
}
}
if (Conn.IsCadet == 0)
{
InSim.Send_MTC_MessageToConnection("^1»^7 There are no Polices Online :(", MSO.UCID, 0);
}
}
else
{
InSim.Send_MTC_MessageToConnection("^1»^7 Invalid command. See ^2!help^7 for a command list", MSO.UCID, 0);
}
}
if (Conn.BustedTimer == 4)
{
InSim.Send_MST_Message("/msg ^6>^7 " + Conn.PlayerName + "^7 busts " + Conn.ChaseePlayerName + "^7!");
InSim.Send_MTC_MessageToConnection("^1DO NOT MOVE UNTIL CLEARED BY OFFICER!", Connections[ChaseeIndex].UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1!!!!^3WAIT FOR FINE/WARNING^1!!!!", Connections[ChaseeIndex].UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1!!!!^3€500 BUST BONUS^1!!!!", Conn.UniqueID, 0);
Conn.Cash += 500;
InSim.Send_BFN_DeleteButton(0, 13, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 14, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 15, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 16, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 17, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 18, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 19, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 20, Conn.UniqueID);
foreach (clsConnection C in Connections)
{