Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int GetSpeedLimitINT(string str) //
- str = street name{ Ped character = Game.LocalPlayer.Character; RageShowMyLocationClass.vector3_0 = character.Position; int result;
- if (str.Contains("Los Santos Freeway") || str.Contains("Los Santos Fwy") || str.Contains("Del Perro") || str.Contains("Olympic") || str.Contains("La Puerta")) {
- if (!str.Contains("City")) {
- result = 60;
- }
- else
- {
- result = 45;
- }
- }
- else if (!str.Contains("Great Ocean") && !str.Contains("Tongva Dr") && !str.Contains("Senora Fwy") && !str.Contains("Palomino Fwy") && !str.Contains("Senora Freeway") && !str.Contains("Palomino Freeway") && !str.Contains("Elysian Fields") && !str.Contains("Route") && !str.Contains("Droga") && !str.Contains("68")) {
- if (!str.Contains("Senora Rd")) {
- if (!str.Contains("Panorama Dr")) {
- if (str.Contains("Joshua Rd")) {
- if ((double)RageShowMyLocationClass.vector3_0.Y < 3483.0)
- {
- result = 60;
- }
- else
- {
- result = 50;
- }
- }
- else if (!str.Contains("Baytree Canyon Rd"))
- {
- if (!str.Contains("County"))
- {
- if (str.Contains("City"))
- {
- result = 25;
- }
- else
- {
- result = 0;
- }
- }
- else
- {
- result = 35;
- }
- }
- else if ((double)RageShowMyLocationClass.vector3_0.X <= 426.0 && (double)RageShowMyLocationClass.vector3_0.Y <= 2123.0 && (double)RageShowMyLocationClass.vector3_0.Y >= 1698.0)
- {
- result = 35;
- }
- else
- {
- result = 50;
- }
- }
- else
- {
- result = 50;
- }
- }
- else if (!str.Contains("County"))
- {
- result = 35;
- }
- else
- {
- result = 60;
- }
- }
- else
- {
- if (!str.Contains("City"))
- {
- result = 60;
- }
- else
- {
- result = 45;
- }
- if (str.Contains("68") && (double)RageShowMyLocationClass.vector3_0.X > 1566.0)
- {
- result = 50;
- }
- }
- return result;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement