The online racing simulator
InSim Siren Sign
(2 posts, started )
InSim Siren Sign
I have been puzzled for ages on how to script
I want to make a command !siren and then a siren sign pops up on the screen with the distance of the siren, I had use a little example of the sign telling to turn right out of pit:

// OnScreen Effects 500ms (.50 milliseconds)
private void OnScreen_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
try
{
foreach (clsConnection Conn in Connections)
{
if ((Conn.PlayerName == HostName && Conn.UniqueID == 0) == false)
{
#region ' OnScreen Effects '
if (Conn.OnScreenExit > 0)
{
if (OnScreen == 0)
{
InSim.Send_BTN_CreateButton("^7›› ^1PIT EXIT ^7››", Flags.ButtonStyles.ISB_DARK, 20, 50, 40, 77, 10, Conn.UniqueID, 2, false);
}
else
{
InSim.Send_BTN_CreateButton("^1›› ^7PIT EXIT ^1››", Flags.ButtonStyles.ISB_DARK, 20, 50, 40, 77, 10, Conn.UniqueID, 2, false);
}
}


InSim Siren Sign
(2 posts, started )
FGED GREDG RDFGDR GSFDG