ok, this checks i you have enough money to pitlane in the first place:
case "!pitlane":
if (Connections[GetConnIdx(MSO.UCID)].Cash <= -399)
InSim.Send_MTC_MessageToConnection("^3you do not have enough money.", MSO.UCID, 0);
else
{
InSim.Send_MTC_MessageToConnection("^3Please stop your car.", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^3You will return to pits soon.", MSO.UCID, 0);
InSim.Send_MST_Message("/pitlane " + Connections[GetConnIdx(MSO.UCID)].Username);
Connections[GetConnIdx(MSO.UCID)].Cash -= 600;
InSim.Send_MST_Message(Connections[GetConnIdx(MSO.UCID)].PlayerName + " got towed back to pits for ^7€600");
}
break;
if you have more then -399 you wont get pitlaned
i did 399, so if you pitlane, you dont get banned (if you have the code to band if cash is less then -1000
EDIT: here is ban code
if (Connections[GetConnIdx(NPL.UCID)].Cash < -1000)
{
InSim.Send_MST_Message("^1" + Connections[GetConnIdx(NPL.UCID)].PlayerName + " ^1has gone bankrupcy, banned for 2 days!");
InSim.Send_MST_Message("/ban " + Connections[GetConnIdx(NPL.UCID)].Username + " 2");
}