its based on lsc insim
this is for the botton
InSim.Send_BTN_CreateButton("^7Bonus: ^6" + C.DistanceSincePit / 500d + "^6%", Flags.ButtonStyles.ISB_LEFT, 5, 25, 7, 54, 99, C.UniqueID, 2, false);
PLL_PlayerLeavesRace
private void PLL_PlayerLeavesRace(Packets.IS_PLL PLL)
{
try
{
// Your code here
InSim.Send_MST_Message("/msg ^6| " + Connections[GetConnIdx2(PLL.PLID)].PlayerName + " went to spectate");
Connections[GetConnIdx2(PLL.PLID)].PlayerId = 0; // Update Players[] list
// Your code here
}
catch { }
}
// A player goes to the garage (setup screen).
private void PLP_PlayerGoesToGarage(Packets.IS_PLP PLP)
{
try
{
InSim.Send_MST_Message("/msg ^6| " + Connections[GetConnIdx2(PLP.PLID)].PlayerName + " went to pits");
Connections[GetConnIdx2(PLP.PLID)].PlayerId = 0; // Update Players[] list
}
catch { }
}