double test = Math.Atan2(Conn.CompCar.Y - (-90), Conn.CompCar.X - (-211)) * 180 / 3.1415 + 180; // -90 = Destination Y and -211 = Destination X
double test2 = Conn.CompCar.Heading + 90;
InSim.Send_BTN_CreateButton("^1" + (test - test2), Flags.ButtonStyles.ISB_DARK, 4, 25, 40, 60, 51, C.UniqueID, 2, false);
double test = Math.Atan2(Conn.CompCar.Y - (-90), Conn.CompCar.X - (-211)) * 180 / 3.1415 + 180;
using LFS_External;
using LFS_External.InSim;
using InSimDotNet;
using InSimDotNet.Packets;
// Car Contact
private void CON_CarContact(Packets.IS_CON CON)
{
try
{
if (Connections[GetConnIdx2(CON.A.PLID)].Cash > 0)
{
MsgAll("^6»^7 Contact detected");
}
}
catch { }
}
if (StrMsg.Length > 0 && Conn.Mute == 1)
{
InSim.Send_MTC_MessageToConnection("^1You are MUTED", (MSO.UCID), 0);
}
private void CON_CarContact(Packets.IS_CON CON)
{
try
{
foreach (clsConnection C in Connections)
{
if ()
{
}
}
}
catch { }
}
InSim.CPR_Received += new LFS_External.InSim.InSimInterface.CPR_EventHandler(CPR_ClientRenames); // A client changed name or plate.