Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //made by w35 of LCPDFR.com. slight modifications by me
- public static int GetSpeedLimit(string streetName)
- {
- Ped character = Game.Player.Character;
- Vector3 pos = character.Position;
- int result = 45;
- 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("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("County"))
- {
- result = 60;
- }
- else
- {
- result = 35;
- }
- }
- else if (!str.Contains("Panorama Dr"))
- {
- if (!str.Contains("Joshua Rd"))
- {
- if (str.Contains("Baytree Canyon Rd"))
- {
- if (pos.X <= 426.0f && pos.Y <= 2123.0f && pos.Y >= 1698.0f)
- {
- result = 35;
- }
- else
- {
- result = 50;
- }
- }
- else if (!str.Contains("County"))
- {
- if (str.Contains("City"))
- {
- result = 25;
- }
- else
- {
- result = 0;
- }
- }
- else
- {
- result = 35;
- }
- }
- else if (pos.Y >= 3483.0f)
- {
- result = 50;
- }
- else
- {
- result = 60;
- }
- }
- else
- {
- result = 50;
- }
- }
- else
- {
- if (str.Contains("City"))
- {
- result = 45;
- }
- else
- {
- result = 60;
- }
- if (str.Contains("68") && pos.X > 1566.0f)
- {
- result = 50;
- }
- }
- }
- else if (!str.Contains("City"))
- {
- result = 60;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement