PDA

View Full Version : How to make


speedboy86
18th June 2011, 12:07
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.

GeForz
18th June 2011, 13:45
perhaps you should add which "tool" you have put the x and y locations in?

speedboy86
18th June 2011, 16:14
this is one i was working for the SO4 and yes im demo im doing S2 tracks with one of my admins accounts.


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;

speedboy86
19th June 2011, 17:40
the person that is willing to help me will get a admin spot in my scs team

dougie-lampkin
19th June 2011, 21:10
case "SO4":
{
#region XYNode
if (Conn.Username == "speedboy86")
{
...

Someone else's account? Pfft.

speedboy86
19th June 2011, 21:14
not gonna put there account name here

Ziroh
19th June 2011, 23:12
case "SO4":
{
#region XYNode
if (Conn.Username == "speedboy86")
{
...

Someone else's account? Pfft.

not gonna put there account name here

If you don't understand that code.. The function will only work if the username is "speedboy86", and since it's S04 you need to have S2, but you are a demo user.. So good luck with getting help here :)