Guest User

Untitled

a guest
Jul 12th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.98 KB | None | 0 0
  1. #define DIALOG_BIZZ 27
  2.  
  3. ----------------------------------------------------------------------------------------------------------------------------------------
  4. BizzL()
  5. {
  6. new Locations[1024];
  7. strcat(Locations,"Gun Shop Los Santos\n");
  8. strcat(Locations,"Bank Los Santos\n");
  9. strcat(Locations,"24/7 VineWood\n");
  10. strcat(Locations,"24/7 Taxi\n");
  11. strcat(Locations,"Hot Dog Company\n");
  12. strcat(Locations,"Rent Car Los Santos\n");
  13. strcat(Locations,"CNN Los Santos\n");
  14. strcat(Locations,"Phone Company\n");
  15. strcat(Locations,"Vehicle Tow Company\n");
  16. strcat(Locations,"Pay 'N Spray\n");
  17. strcat(Locations,"Pay 'N Spray\n");
  18. strcat(Locations,"Pay 'N Spray\n");
  19. strcat(Locations,"ZIP\n");
  20. strcat(Locations,"Benzinarie\n");
  21. strcat(Locations,"Benzinarie\n");
  22. strcat(Locations,"Benzinarie\n");
  23. strcat(Locations,"Alhambra Night Club\n");
  24. strcat(Locations,"Los Santos Hospital\n");
  25. strcat(Locations,"PaintBall Los Santos\n");
  26. strcat(Locations,"Transfender Los Santos");
  27. strcat(Locations,"Loco Low Los Santos\n");
  28. strcat(Locations,"Vehicle Color\n");
  29. strcat(Locations,"Insurance and Vehicle Registration\n");
  30. strcat(Locations,"Restaurant LS\n");
  31. strcat(Locations,"Racing Arena");
  32. return Locations;
  33. }
  34.  
  35. --------------------------------------------------------------------Aici este Dialog_Bizz------------------------------------------------
  36. if(dialogid == DIALOG_BIZZ)
  37. {
  38. if(response)
  39. {
  40. if(listitem == 0)
  41. {
  42. UseFind[playerid] = 0;
  43. IsTowing[playerid] = 0;
  44. SetPlayerCheckpoint(playerid, 1368.36,-1279.82,13.5469, 2.0);
  45. CP[playerid] = 1995;
  46. }
  47. if(listitem == 1)
  48. {
  49. UseFind[playerid] = 0;
  50. IsTowing[playerid] = 0;
  51. SetPlayerCheckpoint(playerid, 1461.65,-1011.39,26.8438, 2.0);
  52. CP[playerid] = 1995;
  53. }
  54. else if(listitem == 2)
  55. {
  56. UseFind[playerid] = 0;
  57. IsTowing[playerid] = 0;
  58. SetPlayerCheckpoint(playerid, 1000.18,-919.99,42.3281, 2.0);
  59. CP[playerid] = 1995;
  60. }
  61. else if(listitem == 3)
  62. {
  63. UseFind[playerid] = 0;
  64. IsTowing[playerid] = 0;
  65. SetPlayerCheckpoint(playerid, 1833.11,-1842.56,13.5781, 2.0);
  66. CP[playerid] = 1995;
  67. }
  68. else if(listitem == 4)
  69. {
  70. UseFind[playerid] = 0;
  71. IsTowing[playerid] = 0;
  72. SetPlayerCheckpoint(playerid, 835.763,-1385.41,13.5516, 2.0);
  73. CP[playerid] = 1995;
  74. }
  75. else if(listitem == 5)
  76. {
  77. UseFind[playerid] = 0;
  78. IsTowing[playerid] = 0;
  79. SetPlayerCheckpoint(playerid, 564.08,-1293.21,17.2482, 2.0);
  80. CP[playerid] = 1995;
  81. }
  82. else if(listitem == 6)
  83. {
  84. UseFind[playerid] = 0;
  85. IsTowing[playerid] = 0;
  86. SetPlayerCheckpoint(playerid, 1219.52,-1812.88,16.5938, 2.0);
  87. CP[playerid] = 1995;
  88. }
  89. else if(listitem == 7)
  90. {
  91. UseFind[playerid] = 0;
  92. IsTowing[playerid] = 0;
  93. SetPlayerCheckpoint(playerid, 1509.6,-1060.35,25.0625, 2.0);
  94. CP[playerid] = 1995;
  95. }
  96. else if(listitem == 8)
  97. {
  98. UseFind[playerid] = 0;
  99. IsTowing[playerid] = 0;
  100. SetPlayerCheckpoint(playerid, 921.751,-1298.76,14.0938, 2.0);
  101. CP[playerid] = 1995;
  102. }
  103. else if(listitem == 9)
  104. {
  105. UseFind[playerid] = 0;
  106. IsTowing[playerid] = 0;
  107. SetPlayerCheckpoint(playerid, 1024.84,-1030.51,32.0454, 2.0);
  108. CP[playerid] = 1995;
  109. }
  110. else if(listitem == 10)
  111. {
  112. UseFind[playerid] = 0;
  113. IsTowing[playerid] = 0;
  114. SetPlayerCheckpoint(playerid, 2072.74,-1831.4,13.5469, 2.0);
  115. CP[playerid] = 1995;
  116. }
  117. else if(listitem == 11)
  118. {
  119. UseFind[playerid] = 0;
  120. IsTowing[playerid] = 0;
  121. SetPlayerCheckpoint(playerid, 488.535,-1733.87,11.1803, 2.0);
  122. CP[playerid] = 1995;
  123. }
  124. else if(listitem == 12)
  125. {
  126. UseFind[playerid] = 0;
  127. IsTowing[playerid] = 0;
  128. SetPlayerCheckpoint(playerid, 1457.43,-1137.64,23.9772, 2.0);
  129. CP[playerid] = 1995;
  130. }
  131. else if(listitem == 13)
  132. {
  133. UseFind[playerid] = 0;
  134. IsTowing[playerid] = 0;
  135. SetPlayerCheckpoint(playerid, 1025.26,-946.644,42.4563, 2.0);
  136. CP[playerid] = 1995;
  137. }
  138. else if(listitem == 14)
  139. {
  140. UseFind[playerid] = 0;
  141. IsTowing[playerid] = 0;
  142. SetPlayerCheckpoint(playerid, 1928.82,-1776.28,13.5469, 2.0);
  143. CP[playerid] = 1995;
  144. }
  145. if(listitem == 15)
  146. {
  147. UseFind[playerid] = 0;
  148. IsTowing[playerid] = 0;
  149. SetPlayerCheckpoint(playerid, -78.9478,-1169.66,2.1507, 2.0);
  150. CP[playerid] = 1995;
  151. }
  152. if(listitem == 16)
  153. {
  154. UseFind[playerid] = 0;
  155. IsTowing[playerid] = 0;
  156. SetPlayerCheckpoint(playerid, 1836.55,-1682.49,13.343, 2.0);
  157. CP[playerid] = 1995;
  158. }
  159. else if(listitem == 17)
  160. {
  161. UseFind[playerid] = 0;
  162. IsTowing[playerid] = 0;
  163. SetPlayerCheckpoint(playerid, 1172.73,-1323.29,15.4015, 2.0);
  164. CP[playerid] = 1995;
  165. }
  166. else if(listitem ==18)
  167. {
  168. UseFind[playerid] = 0;
  169. IsTowing[playerid] = 0;
  170. SetPlayerCheckpoint(playerid, 1310.07,-1367.32,13.5286, 2.0);
  171. CP[playerid] = 1995;
  172. }
  173. else if(listitem == 19)
  174. {
  175. UseFind[playerid] = 0;
  176. IsTowing[playerid] = 0;
  177. SetPlayerCheckpoint(playerid, 1035.01,-1028.12,32.1016, 2.0);
  178. CP[playerid] = 1995;
  179. }
  180. else if(listitem == 20)
  181. {
  182. UseFind[playerid] = 0;
  183. IsTowing[playerid] = 0;
  184. SetPlayerCheckpoint(playerid, 2650.37,-2021.85,14.1766, 2.0);
  185. CP[playerid] = 1995;
  186. }
  187. else if(listitem == 21)
  188. {
  189. UseFind[playerid] = 0;
  190. IsTowing[playerid] = 0;
  191. SetPlayerCheckpoint(playerid, 1607.42,-1560.3,14.1787, 2.0);
  192. CP[playerid] = 1995;
  193. }
  194. else if(listitem == 22)
  195. {
  196. UseFind[playerid] = 0;
  197. IsTowing[playerid] = 0;
  198. SetPlayerCheckpoint(playerid, 1471.06,-1177.85,23.9209, 2.0);
  199. CP[playerid] = 1995;
  200. }
  201. else if(listitem == 23)
  202. {
  203. UseFind[playerid] = 0;
  204. IsTowing[playerid] = 0;
  205. SetPlayerCheckpoint(playerid, 1498.42,-1581.28,13.5498, 2.0);
  206. CP[playerid] = 1995;
  207. }
  208. else if(listitem == 24)
  209. {
  210. UseFind[playerid] = 0;
  211. IsTowing[playerid] = 0;
  212. SetPlayerCheckpoint(playerid, 2695.72,-1704.75,11.844, 2.0);
  213. CP[playerid] = 1995;
  214. }
  215. }
  216. }
  217. --------------------------------------------------------------------------Comanda-----------------------------------------------------
  218.  
  219. CMD:bizzbug123(playerid,params[])return ShowPlayerDialog(playerid, DIALOG_BIZZ, DIALOG_STYLE_LIST,"Bizurile:",BizzL(),"SELECT", "EXIT");
  220.  
  221. ---------------------------------------------------------------------------------------------------------------------------------------
  222. Daca stiu /bizzbug123,imi spune Nu detii un biz.
  223. Aici va arat de unde vine "Nu detii un biz"
  224. ---------------------------------------------------------NU DETII UN BIZ----------------------------------------------------------------
  225. if(dialogid == DIALOG_SELLBIZ)
  226. {
  227. if(response)
  228. {
  229. if(PlayerInfo[playerid][pBizzKey] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu detii un Bizz!");
  230. new bizz = PlayerInfo[playerid][pBizzKey];
  231.  
  232. BizzInfo[bizz][bLocked] = 1;
  233. bUpdate(bizz,bLockedx);
  234. BizzInfo[bizz][bOwned] = 0;
  235. bUpdate(bizz,bOwnedx);
  236. strmid(BizzInfo[bizz][bOwner], "The State", 0, MAX_PLAYER_NAME, MAX_PLAYER_NAME);
  237. bUpdate(bizz,bOwnerx);
  238.  
  239. new moneyback = (3*BizzInfo[bizz][bPrice])/4 + BizzInfo[bizz][bSafe];
  240. GivePlayerCash(playerid, moneyback);
  241.  
  242. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  243. format(gString, sizeof(gString), "~w~Felicitari~n~ Ti-ai vandut bizz-ul pentru ~n~~g~$%s", FormatNumber(moneyback));
  244. GameTextForPlayer(playerid, gString, 10000, 3);
  245. SellLog(playerid, 0, bizz, 0, moneyback);
  246.  
  247. BizzInfo[bizz][bSafe] = 0;
  248. bUpdate(bizz,bSafex);
  249.  
  250. BizzInfo[bizz][bEntranceCost] = 1;
  251. bUpdate(bizz, bEntranceCostx);
  252.  
  253. if(BizzInfo[bizz][bItemPrice] > 0)
  254. {
  255. BizzInfo[bizz][bItemPrice] = 1;
  256. bUpdate(bizz, bItemPricex);
  257. }
  258.  
  259. PlayerInfo[playerid][pBizzKey] = 0;
  260. Update(playerid,pBizzKeyx);
  261.  
  262. BizzUpdate(bizz);
  263. }
  264. }
Advertisement
Add Comment
Please, Sign In to add comment