Advertisement
Guest User

ragehook speedlimit

a guest
Jun 10th, 2018
814
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.40 KB | None | 0 0
  1. public static int GetSpeedLimitINT(string str) //
  2. str = street name{  Ped character = Game.LocalPlayer.Character; RageShowMyLocationClass.vector3_0 = character.Position; int result;
  3.  
  4. if (str.Contains("Los Santos Freeway") || str.Contains("Los Santos Fwy") || str.Contains("Del Perro") || str.Contains("Olympic") || str.Contains("La Puerta"))  {      
  5.     if (!str.Contains("City"))      {
  6.         result = 60;
  7.     }
  8. else       
  9.     {          
  10.         result = 45;       
  11.     }  
  12. }  
  13. 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"))  {      
  14.     if (!str.Contains("Senora Rd"))     {          
  15.         if (!str.Contains("Panorama Dr"))           {              
  16.             if (str.Contains("Joshua Rd"))              {                  
  17.                 if ((double)RageShowMyLocationClass.vector3_0.Y < 3483.0)                  
  18.                 {                      
  19.                     result = 60;                   
  20.                     }                  
  21.                     else                   
  22.                     {                      
  23.                         result = 50;                   
  24.                     }              
  25.                 }              
  26.             else if (!str.Contains("Baytree Canyon Rd"))               
  27.             {                  
  28.                 if (!str.Contains("County"))                   
  29.                 {                      
  30.                     if (str.Contains("City"))                      
  31.                     {                          
  32.                         result = 25;                       
  33.                         }                      
  34.                         else                       
  35.                         {                          
  36.                             result = 0;                    
  37.                             }                  
  38.                             }                  
  39.                             else                   
  40.                             {                      
  41.                                 result = 35;                   
  42.                                 }              
  43.                             }              
  44.                             else if ((double)RageShowMyLocationClass.vector3_0.X <= 426.0 && (double)RageShowMyLocationClass.vector3_0.Y <= 2123.0 && (double)RageShowMyLocationClass.vector3_0.Y >= 1698.0)               
  45.                             {                  
  46.                                 result = 35;               
  47.                                 }              
  48.                                 else               
  49.                                 {                  
  50.                                     result = 50;               
  51.                                     }          
  52.                                 }          
  53.                                 else           
  54.                                 {              
  55.                                     result = 50;           
  56.                                 }      
  57.                             }      
  58.                             else if (!str.Contains("County"))      
  59.                             {          
  60.                                 result = 35;       
  61.                             }      
  62.                             else       
  63.                                 {          
  64.                                     result = 60;       
  65.                                     }  
  66.                                 }  
  67.                                 else   
  68.                                 {      
  69.                                     if (!str.Contains("City"))     
  70.                                     {          
  71.                                         result = 60;       
  72.                                         }      
  73.                                         else       
  74.                                         {          
  75.                                             result = 45;       
  76.                                             }      
  77.                                             if (str.Contains("68") && (double)RageShowMyLocationClass.vector3_0.X > 1566.0)    
  78.                                             {          
  79.                                                 result = 50;       
  80.                                             }  
  81.                                         }  
  82.                                     return result;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement