<?php
MessageToAll("^1** ^2Collision : " + _players[CON.A.PLID].PName + " ^1(^2" + _players[CON.A.PLID].CName + "^1)" + "^2 hit " + _players[CON.B.PLID].PName);
?>
static void CarContact(InSim insim, IS_CON con)
{
insim.Send("/msg ^2Contact Detected!");
double speed = MathHelper.MpsToKph((con.SpClose & 0x00ff) * 0.1);
if (con.A.Speed > con.B.Speed)
{
insim.Send("/msg " + con.A.PLID + " ^2hit " + con.B.PLID);
}
}
static void CarContact(InSim insim, IS_CON con)
{
//Conn1 = con.A.PLID;
//Conn2 = con.B.PLID;
double speed = MathHelper.MpsToKph((con.SpClose & 0x00ff) * 0.1);
if (con.A.Speed > con.B.Speed)
{
insim.Send("/msg " + con.A.PLID + " ^2hit " + con.B.PLID);
}
insim.Send("/msg ^2Contact detected!");
}
var uf1 = "^1* ^2Vehicle: ^7UF1 ^2Buy Price: ^74000$ ^2Sell Price: ^74000$ ^1- ^2Purchased ^1- ^2Sell";
InSim.Send_BTN_CreateButton(uf1, Flags.ButtonStyles.ISB_C1, 5, 50, 50, 50, 190, NCN.UCID, 2, false);