case "!engage":
if (StrMsg.Length == 1)
{
if (Connections[GetConnIdx(MSO.UCID)].IsOfficerORCadet != 0)
{
if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 0)
{
ChaseInitiated = 1;
ChaserUCID = MSO.UCID;
}
if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 4)
{
Connections[GetConnIdx(MSO.UCID)].ChaseCondition = 5;
BumpCondition = 1;
BumpUCID = MSO.UCID;
}
if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 3)
{
Connections[GetConnIdx(MSO.UCID)].ChaseCondition = 4;
BumpCondition = 1;
BumpUCID = MSO.UCID;
}
if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 2)
{
Connections[GetConnIdx(MSO.UCID)].ChaseCondition = 3;
BumpCondition = 1;
BumpUCID = MSO.UCID;
}
if (Connections[GetConnIdx(MSO.UCID)].ChaseCondition == 1)
{
Connections[GetConnIdx(MSO.UCID)].ChaseCondition = 2;
BumpCondition = 1;
BumpUCID = MSO.UCID;
}
}
else
{
InSim.Send_MTC_MessageToConnection("^1Not Authorised", MSO.UCID, 0);
}
}
else
{
InSim.Send_MTC_MessageToConnection("^6|^7 Invalid command. Please see ^2!help^7 for a command list", MSO.UCID, 0);
}
break;
InSim.Send_MS_CreateButton("^7Police, Pull Over! " + Connections[GetConnIdx(MSO.UCID)].ChaseeUsername + "^7!");
InSim.Send_BTN_CreateButton("^7Police, Pull Over!", Flags.ButtonStyles.ISB_LEFT | Flags.ButtonStyles.ISB_DARK, 6, 31, 25, 15, 142, MSO.UCID, 40, false);