Advertisement
Guest User

Source Code

a guest
Apr 30th, 2018
2,861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Drawing;
  7. using System.IO;
  8. using System.Windows.Forms;
  9. using GTA;
  10. using GTA.Native;
  11. using GTA.Math;
  12. using Font = GTA.Font;
  13.  
  14.  
  15. namespace RobbableStores
  16. {
  17. public class RobbableStores : Script
  18. {
  19. private ScriptSettings KeysData;
  20.  
  21.  
  22. List<Vector3> Store_Locations = new List<Vector3>();
  23. List<Vector3> YellowJacket_Location = new List<Vector3>();
  24.  
  25. bool ShowBlips;
  26.  
  27. public RobbableStores()
  28. {
  29.  
  30. Store_Locations.Add(new Vector3(1735.83f, 6419.51f, 35.0373f));
  31.  
  32. Store_Locations.Add(new Vector3(1960.42f, 3748.89f, 32.3438f));
  33.  
  34. Store_Locations.Add(new Vector3(2682.55f, 3282.32f, 55.24f));
  35.  
  36. Store_Locations.Add(new Vector3(1700.17f, 4927.65f, 46.93f));
  37.  
  38. Store_Locations.Add(new Vector3(-2974.73f, 390.80f, 22.50f));
  39.  
  40. Store_Locations.Add(new Vector3(1138.54f, -951.40f, 50.16f));
  41.  
  42. Store_Locations.Add(new Vector3(29.15f, -1344.53f, 36.23f));
  43.  
  44. Store_Locations.Add(new Vector3(-1224.34f, -905.99f, 19.47f));
  45.  
  46. Store_Locations.Add(new Vector3(1394.169189f, 3599.860107f, 34.012100f));
  47.  
  48. Store_Locations.Add(new Vector3(-3038.908203f, 589.518677f, 6.904800f));
  49.  
  50. Store_Locations.Add(new Vector3(-3240.316895f, 1004.433411f, 11.830700f));
  51.  
  52. Store_Locations.Add(new Vector3(544.280212f, 2672.811279f, 41.156601f));
  53.  
  54. Store_Locations.Add(new Vector3(2559.247070f, 385.526611f, 107.623001f));
  55.  
  56. Store_Locations.Add(new Vector3(376.653290f, 323.647095f, 102.566399f));
  57.  
  58. Store_Locations.Add(new Vector3(1166.391968f, 2703.504150f, 37.157299f));
  59.  
  60. Store_Locations.Add(new Vector3(-2973.261719f, 390.818390f, 14.043300f));
  61.  
  62. Store_Locations.Add(new Vector3(-1491.056519f, -383.572815f, 39.170601f));
  63.  
  64. Store_Locations.Add(new Vector3(1698.808472f, 4929.197754f, 41.078300f));
  65.  
  66. Store_Locations.Add(new Vector3(-711.721008f, -916.696472f, 18.214500f));
  67.  
  68. Store_Locations.Add(new Vector3(-53.124001f, -1756.405396f, 28.421000f));
  69.  
  70. Store_Locations.Add(new Vector3(1159.542114f, -326.698608f, 67.922997f));
  71.  
  72. Store_Locations.Add(new Vector3(-1822.286621f, 788.005981f, 137.185898f));
  73.  
  74. YellowJacket_Location.Add(new GTA.Math.Vector3(1986.1240234375f, 3053.8747558594f, 47.215171813965f));
  75.  
  76. KeysData = ScriptSettings.Load("scripts//RobbableStores.ini");
  77.  
  78. ShowBlips = KeysData.GetValue<bool>("settings", "ShowBlips", false);
  79.  
  80. Blip[] blips = World.GetActiveBlips();
  81.  
  82. if (blips.Count() > 0)
  83. {
  84. for (int i2 = 0; i2 < blips.Count(); i2++)
  85. {
  86. for (int i = 0; i < Store_Locations.Count; i++)
  87. {
  88. if (blips[i2].Position == Store_Locations[i])
  89. {
  90. blips[i2].Remove();
  91. }
  92. }
  93. }
  94. }
  95.  
  96. if (blips.Count() > 0)
  97. {
  98. for (int i2 = 0; i2 < blips.Count(); i2++)
  99. {
  100. for (int i = 0; i < YellowJacket_Location.Count; i++)
  101. {
  102. if (blips[i2].Position == YellowJacket_Location[i])
  103. {
  104. blips[i2].Remove();
  105. }
  106. }
  107. }
  108. }
  109.  
  110. if (ShowBlips)
  111. {
  112. for (int i = 0; i < Store_Locations.Count; i++)
  113. {
  114. Blip b = World.CreateBlip(Store_Locations[i]);
  115. b.Sprite = BlipSprite.Store;
  116. b.Color = BlipColor.Green;
  117. b.IsShortRange = true;
  118. b.Name = "24/7 Store";
  119. }
  120. }
  121.  
  122. {
  123. for (int i = 0; i < YellowJacket_Location.Count; i++)
  124. {
  125. Blip b = World.CreateBlip(YellowJacket_Location[i]);
  126. b.Sprite = BlipSprite.Bar;
  127. b.Color = BlipColor.Yellow;
  128. b.IsShortRange = true;
  129. b.Name = "Yellow Jacket";
  130. }
  131. }
  132. }
  133. }
  134. }
  135.  
  136. // © Copyright Lucifer 2018, All Rights Reserved.
  137.  
  138. // Don't edit without my permission.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement