How to make road names i tried to make it but its not working. I done every thing right put good X and Y locations and Node but its not working can any one help me. and its for the BL1.
<?php
case "SO4":
{
#region XYNode
if (Conn.Username == "speedboy86")
{
InSim.Send_BTN_CreateButton("^1X: " + Conn.CompCar.X / 196608 + " ^2Y: " + Conn.CompCar.Y / 196608, Flags.ButtonStyles.ISB_DARK, 4, 25, 100, 172, 160, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^3Node: " + Conn.CompCar.Node, Flags.ButtonStyles.ISB_DARK, 4, 25, 96, 172, 169, (Conn.UniqueID), 2, false); // Spare Button
}
#endregion
#region Streets
if (Conn.CompCar.Speed / 91 < 4)
{
Conn.IsAFK = 1;
}
else
{
Conn.IsAFK = 0;
Conn.AFKTimer = 15;
}
if ((Conn.CompCar.Node >= 457) && ((Conn.CompCar.X / 196608) <= 80) && ((Conn.CompCar.Y / 196608) <= 63) && ((Conn.CompCar.Y / 196608) >= -6))
{
InSim.Send_BTN_CreateButton("^2Service Station", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
if (Conn.CompCar.Speed / 91 > 80)
{
InSim.Send_MST_Message("/spec " + Conn.Username);
Conn.Location = "Service Station";
InSim.Send_MST_Message("/msg ^6> ^7" + Conn.PlayerName + "^7 was spectated for speeding!");
}
InSim.Send_BTN_CreateButton("^6Speed Limit: ^780 Kmh / 50 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
}
if ((Conn.CompCar.Node >= 388) && (Conn.CompCar.Node < 331))
{
InSim.Send_BTN_CreateButton("^2Top Corner", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^797 Kmh / 60 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Top Corner";
}
if ((Conn.CompCar.Node >= 331) && (Conn.CompCar.Node < 280))
{
InSim.Send_BTN_CreateButton("^2Follow-Through", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Follow Through";
}
if ((Conn.CompCar.Node >= 280) && (Conn.CompCar.Node < 233))
{
InSim.Send_BTN_CreateButton("^2Ye Olde Highway", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Ye Olde Highway";
}
if ((Conn.CompCar.Node >= 233) && (Conn.CompCar.Node < 191))
{
InSim.Send_BTN_CreateButton("^2Last Corner", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^780 Kmh / 50 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Last Corner";
}
if ((Conn.CompCar.Node >= 191) && (Conn.CompCar.Node < 128))
{
InSim.Send_BTN_CreateButton("^2Highway 2", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Highway 2";
}
if ((Conn.CompCar.Node >= 128) && (Conn.CompCar.Node < 102))
{
InSim.Send_BTN_CreateButton("^2Frank Avenue", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^780 Kmh / 50 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Frank Avenue";
}
if ((Conn.CompCar.Node >= 102) && (Conn.CompCar.Node < 80))
{
InSim.Send_BTN_CreateButton("^2Websters Way", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Websters Way";
}
if ((Conn.CompCar.Node >= 80) && (Conn.CompCar.Node < 13))
{
InSim.Send_BTN_CreateButton("^2Drifters Corner", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Drifters Corner";
}
if ((Conn.CompCar.Node >= 13) && (Conn.CompCar.Node < 522))
{
InSim.Send_BTN_CreateButton("^2Intersection", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^797 Kmh / 60 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Intersection";
}
if ((Conn.CompCar.Node >= 999) && (Conn.CompCar.Node < 999))
{
InSim.Send_BTN_CreateButton("^2Larry Way", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Larry Way";
}
if ((Conn.CompCar.Node >= 999) && (Conn.CompCar.Node < 999))
{
InSim.Send_BTN_CreateButton("^2Rapid Turns", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Rapid Turns";
}
if ((Conn.CompCar.Node >= 194) && (Conn.CompCar.Node < 233))
{
InSim.Send_BTN_CreateButton("^2Houses", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7110 Kmh / 70 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Houses";
}
if ((Conn.CompCar.Node >= 183) && (Conn.CompCar.Node < 194))
{
InSim.Send_BTN_CreateButton("^2Pete Pizza", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^780 Kmh / 50 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Pete Pizza";
}
if ((Conn.CompCar.Node >= 999) && (Conn.CompCar.Node < 999))
{
InSim.Send_BTN_CreateButton("^2Pete Approach", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^797 Kmh / 60 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Pizza Approach";
}
if ((Conn.CompCar.Node >= 522) && (Conn.CompCar.Node < 457))
{
InSim.Send_BTN_CreateButton("^2Highway 1 - End B", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Highway 1 - End A";
}
if ((Conn.CompCar.Node >= 457) && ((Conn.CompCar.X / 196608) < 72) && ((Conn.CompCar.Y / 196608) > 84))
{
InSim.Send_BTN_CreateButton("^2Highway 1 - Middle", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Highway 1 - Middle";
}
if ((Conn.CompCar.Node >= 457) && ((Conn.CompCar.X / 196608) < 81) && ((Conn.CompCar.Y / 196608) < -41))
{
InSim.Send_BTN_CreateButton("^2Highway 1 - Middle", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Highway 1 - Middle";
}
if ((Conn.CompCar.Node < 377) && (Conn.CompCar.Node < 488))
{
InSim.Send_BTN_CreateButton("^2Highway 1 - End A", Flags.ButtonStyles.ISB_DARK, 4, 25, 86, 172, 171, (Conn.UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^6Speed Limit: ^7145 Kmh / 90 Mph", Flags.ButtonStyles.ISB_DARK, 4, 25, 90, 172, 168, (Conn.UniqueID), 2, false);
Conn.Location = "Highway 1 - End B";
}
#endregion Streets
}
break;
?>
[COLOR=Black]case "SO4":
{
#region XYNode
if (Conn.Username == "speedboy86")
{
...[/COLOR]