Gguiz007

Untitled

May 12th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 125.98 KB | None | 0 0
  1. Dialog_Rescue(playerid, response, listitem)
  2. {
  3. // Just close the dialog if the player clicked "Cancel"
  4. if(!response)
  5. {
  6. SetCameraBehindPlayer(playerid);
  7. TogglePlayerSpectating(playerid, 0);
  8. return 1;
  9. }
  10.  
  11. //new Float:ox, Float:oy,
  12. new Name[24], Msg[128];
  13. //ox = GetPVarFloat(playerid, "tpx");
  14. //oy = GetPVarFloat(playerid, "tpy");
  15. GetPlayerName(playerid, Name, sizeof(Name));
  16.  
  17.  
  18.  
  19. // Check the class of the player
  20. switch (APlayerData[playerid][PlayerClass])
  21. {
  22.  
  23. case ClassTruckDriver:
  24. {
  25.  
  26. // Set the spawn coordinates based on the selection in the list
  27. switch (listitem)
  28. {
  29.  
  30. case 0:
  31. {
  32. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -11.7144,-310.7346,5.4229,142.6857, 0, 0, 0, 0, 0, 0);
  33. SendClientMessage(playerid, 0xFF0000FF, "{FF7F50}Você foi para o resgate de {FFFFFF}Fleischberg. {00FF00}R${FFFFFF}100 {FF7F50}foram custados a você!");
  34. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  35. //Reduce the player's money by 200
  36. Ganhos(playerid, -100, 0);
  37.  
  38.  
  39. if(APlayerData[playerid][StatsTruckerJobs] >= 1000){
  40. if (APlayerData[playerid][Sexo] == 0) {
  41. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [FB]", Name);
  42. SCMA(0xFFFFFFFF, Msg); }
  43.  
  44. if (APlayerData[playerid][Sexo] == 1) {
  45. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [FB]", Name);
  46. SCMA(0xFFFFFFFF, Msg); }
  47.  
  48. if (APlayerData[playerid][Sexo] == 2) {
  49. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} rainha da estrada. [FB]", Name);
  50. SCMA(0xFFFFFFFF, Msg); }}
  51.  
  52. else if(APlayerData[playerid][StatsTruckerJobs] >= 500){
  53. if (APlayerData[playerid][Sexo] == 0) {
  54. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [FB]", Name);
  55. SCMA(0xFFFFFFFF, Msg); }
  56.  
  57. if (APlayerData[playerid][Sexo] == 1) {
  58. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [FB]", Name);
  59. SCMA(0xFFFFFFFF, Msg); }
  60.  
  61. if (APlayerData[playerid][Sexo] == 2) {
  62. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} veterana. [FB]", Name);
  63. SCMA(0xFFFFFFFF, Msg); }}
  64.  
  65.  
  66. else if(APlayerData[playerid][StatsTruckerJobs] >= 100){
  67.  
  68. if (APlayerData[playerid][Sexo] == 0) {
  69. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [FB]", Name);
  70. SCMA(0xFFFFFFFF, Msg); }
  71.  
  72. if (APlayerData[playerid][Sexo] == 1) {
  73. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [FB]", Name);
  74. SCMA(0xFFFFFFFF, Msg); }
  75.  
  76. if (APlayerData[playerid][Sexo] == 2) {
  77. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} aprendiz. [FB]", Name);
  78. SCMA(0xFFFFFFFF, Msg); }}
  79.  
  80. else if(APlayerData[playerid][StatsTruckerJobs] >= 0){
  81. if (APlayerData[playerid][Sexo] == 0) {
  82. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [FB]", Name);
  83. SCMA(0xFFFFFFFF, Msg); }
  84.  
  85. if (APlayerData[playerid][Sexo] == 1) {
  86. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [FB]", Name);
  87. SCMA(0xFFFFFFFF, Msg); }
  88.  
  89. if (APlayerData[playerid][Sexo] == 2) {
  90. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} iniciante. [FB]", Name);
  91. SCMA(0xFFFFFFFF, Msg); }}
  92. }
  93. case 1:
  94. {
  95. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -2638.3020,1390.3400,8.1920,359.7574, 0, 0, 0, 0, 0, 0);
  96.  
  97. SendClientMessage(playerid, 0xFF0000FF, "{FF7F50}Você foi para o resgate de {FFFFFF}Battery Point. {00FF00}R${FFFFFF}100 {FF7F50}foram custados a você!");
  98. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  99. //Reduce the player's money by 200
  100. Ganhos(playerid, -100, 0);
  101.  
  102. if(APlayerData[playerid][StatsTruckerJobs] >= 1000){
  103. if (APlayerData[playerid][Sexo] == 0) {
  104. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [SF]", Name);
  105. SCMA(0xFFFFFFFF, Msg); }
  106.  
  107. if (APlayerData[playerid][Sexo] == 1) {
  108. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [SF]", Name);
  109. SCMA(0xFFFFFFFF, Msg); }
  110.  
  111. if (APlayerData[playerid][Sexo] == 2) {
  112. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} rainha da estrada. [SF]", Name);
  113. SCMA(0xFFFFFFFF, Msg); }}
  114.  
  115. else if(APlayerData[playerid][StatsTruckerJobs] >= 500){
  116. if (APlayerData[playerid][Sexo] == 0) {
  117. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [SF]", Name);
  118. SCMA(0xFFFFFFFF, Msg); }
  119.  
  120. if (APlayerData[playerid][Sexo] == 1) {
  121. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [SF]", Name);
  122. SCMA(0xFFFFFFFF, Msg); }
  123.  
  124. if (APlayerData[playerid][Sexo] == 2) {
  125. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} veterana. [SF]", Name);
  126. SCMA(0xFFFFFFFF, Msg); }}
  127.  
  128.  
  129. else if(APlayerData[playerid][StatsTruckerJobs] >= 100){
  130.  
  131. if (APlayerData[playerid][Sexo] == 0) {
  132. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [SF]", Name);
  133. SCMA(0xFFFFFFFF, Msg); }
  134.  
  135. if (APlayerData[playerid][Sexo] == 1) {
  136. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [SF]", Name);
  137. SCMA(0xFFFFFFFF, Msg); }
  138.  
  139. if (APlayerData[playerid][Sexo] == 2) {
  140. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} aprendiz. [SF]", Name);
  141. SCMA(0xFFFFFFFF, Msg); }}
  142.  
  143. else if(APlayerData[playerid][StatsTruckerJobs] >= 0){
  144. if (APlayerData[playerid][Sexo] == 0) {
  145. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [SF]", Name);
  146. SCMA(0xFFFFFFFF, Msg); }
  147.  
  148. if (APlayerData[playerid][Sexo] == 1) {
  149. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [SF]", Name);
  150. SCMA(0xFFFFFFFF, Msg); }
  151.  
  152. if (APlayerData[playerid][Sexo] == 2) {
  153. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} iniciante. [SF]", Name);
  154. SCMA(0xFFFFFFFF, Msg); }}
  155. }
  156. case 2:
  157. {
  158. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 656.2769,895.2334,-41.1889, 205.0, 0, 0, 0, 0, 0, 0);
  159. SendClientMessage(playerid, 0xFF0000FF, "{FF7F50}Você foi para o resgate de {FFFFFF}Quarry Top. {00FF00}R${FFFFFF}100 {FF7F50}foram custados a você!");
  160. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  161. //Reduce the player's money by 200
  162. Ganhos(playerid, -100, 0);
  163.  
  164. if(APlayerData[playerid][StatsTruckerJobs] >= 1000){
  165. if (APlayerData[playerid][Sexo] == 0) {
  166. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [QT]", Name);
  167. SCMA(0xFFFFFFFF, Msg); }
  168.  
  169. if (APlayerData[playerid][Sexo] == 1) {
  170. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [QT]", Name);
  171. SCMA(0xFFFFFFFF, Msg); }
  172.  
  173. if (APlayerData[playerid][Sexo] == 2) {
  174. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} rainha da estrada. [QT]", Name);
  175. SCMA(0xFFFFFFFF, Msg); }}
  176.  
  177. else if(APlayerData[playerid][StatsTruckerJobs] >= 500){
  178. if (APlayerData[playerid][Sexo] == 0) {
  179. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [QT]", Name);
  180. SCMA(0xFFFFFFFF, Msg); }
  181.  
  182. if (APlayerData[playerid][Sexo] == 1) {
  183. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [QT]", Name);
  184. SCMA(0xFFFFFFFF, Msg); }
  185.  
  186. if (APlayerData[playerid][Sexo] == 2) {
  187. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} veterana. [QT]", Name);
  188. SCMA(0xFFFFFFFF, Msg); }}
  189.  
  190.  
  191. else if(APlayerData[playerid][StatsTruckerJobs] >= 100){
  192.  
  193. if (APlayerData[playerid][Sexo] == 0) {
  194. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [QT]", Name);
  195. SCMA(0xFFFFFFFF, Msg); }
  196.  
  197. if (APlayerData[playerid][Sexo] == 1) {
  198. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [QT]", Name);
  199. SCMA(0xFFFFFFFF, Msg); }
  200.  
  201. if (APlayerData[playerid][Sexo] == 2) {
  202. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} aprendiz. [QT]", Name);
  203. SCMA(0xFFFFFFFF, Msg); }}
  204.  
  205. else if(APlayerData[playerid][StatsTruckerJobs] >= 0){
  206. if (APlayerData[playerid][Sexo] == 0) {
  207. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [QT]", Name);
  208. SCMA(0xFFFFFFFF, Msg); }
  209.  
  210. if (APlayerData[playerid][Sexo] == 1) {
  211. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [QT]", Name);
  212. SCMA(0xFFFFFFFF, Msg); }
  213.  
  214. if (APlayerData[playerid][Sexo] == 2) {
  215. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} iniciante. [QT]", Name);
  216. SCMA(0xFFFFFFFF, Msg); }}
  217. }
  218. case 3:
  219. {
  220. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 2773.2761,2561.8137,10.8203, 146.0, 0, 0, 0, 0, 0, 0);
  221. SendClientMessage(playerid, 0xFF0000FF, "{FF7F50}Você foi para o resgate de {FFFFFF}Julius Thruway East. {00FF00}R${FFFFFF}100 {FF7F50}foram custados a você!");
  222. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  223. //Reduce the player's money by 200
  224. Ganhos(playerid, -100, 0);
  225.  
  226.  
  227. if(APlayerData[playerid][StatsTruckerJobs] >= 1000){
  228. if (APlayerData[playerid][Sexo] == 0) {
  229. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [LV]", Name);
  230. SCMA(0xFFFFFFFF, Msg); }
  231.  
  232. if (APlayerData[playerid][Sexo] == 1) {
  233. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [LV]", Name);
  234. SCMA(0xFFFFFFFF, Msg); }
  235.  
  236. if (APlayerData[playerid][Sexo] == 2) {
  237. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} rainha da estrada. [LV]", Name);
  238. SCMA(0xFFFFFFFF, Msg); }}
  239.  
  240. else if(APlayerData[playerid][StatsTruckerJobs] >= 500){
  241. if (APlayerData[playerid][Sexo] == 0) {
  242. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [LV]", Name);
  243. SCMA(0xFFFFFFFF, Msg); }
  244.  
  245. if (APlayerData[playerid][Sexo] == 1) {
  246. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [LV]", Name);
  247. SCMA(0xFFFFFFFF, Msg); }
  248.  
  249. if (APlayerData[playerid][Sexo] == 2) {
  250. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} veterana. [LV]", Name);
  251. SCMA(0xFFFFFFFF, Msg); }}
  252.  
  253.  
  254. else if(APlayerData[playerid][StatsTruckerJobs] >= 100){
  255.  
  256. if (APlayerData[playerid][Sexo] == 0) {
  257. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [LV]", Name);
  258. SCMA(0xFFFFFFFF, Msg); }
  259.  
  260. if (APlayerData[playerid][Sexo] == 1) {
  261. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [LV]", Name);
  262. SCMA(0xFFFFFFFF, Msg); }
  263.  
  264. if (APlayerData[playerid][Sexo] == 2) {
  265. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} aprendiz. [LV]", Name);
  266. SCMA(0xFFFFFFFF, Msg); }}
  267.  
  268. else if(APlayerData[playerid][StatsTruckerJobs] >= 0){
  269. if (APlayerData[playerid][Sexo] == 0) {
  270. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [LV]", Name);
  271. SCMA(0xFFFFFFFF, Msg); }
  272.  
  273. if (APlayerData[playerid][Sexo] == 1) {
  274. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [LV]", Name);
  275. SCMA(0xFFFFFFFF, Msg); }
  276.  
  277. if (APlayerData[playerid][Sexo] == 2) {
  278. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} iniciante. [LV]", Name);
  279. SCMA(0xFFFFFFFF, Msg); }}
  280. }
  281. case 4:
  282. {
  283. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1289.8169,-867.5645,45.3817,114.1721, 0, 0, 0, 0, 0, 0);
  284. SendClientMessage(playerid, 0xFF0000FF, "{FF7F50}Você foi para o resgate de {FFFFFF}Mulholland. {00FF00}R${FFFFFF}100 {FF7F50}foram custados a você!");
  285. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  286. //Reduce the player's money by 200
  287. Ganhos(playerid, -100, 0);
  288.  
  289.  
  290. if(APlayerData[playerid][StatsTruckerJobs] >= 1000){
  291. if (APlayerData[playerid][Sexo] == 0) {
  292. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [LS]", Name);
  293. SCMA(0xFFFFFFFF, Msg); }
  294.  
  295. if (APlayerData[playerid][Sexo] == 1) {
  296. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [LS]", Name);
  297. SCMA(0xFFFFFFFF, Msg); }
  298.  
  299. if (APlayerData[playerid][Sexo] == 2) {
  300. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} rainha da estrada. [LS]", Name);
  301. SCMA(0xFFFFFFFF, Msg); }}
  302.  
  303. else if(APlayerData[playerid][StatsTruckerJobs] >= 500){
  304. if (APlayerData[playerid][Sexo] == 0) {
  305. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [LS]", Name);
  306. SCMA(0xFFFFFFFF, Msg); }
  307.  
  308. if (APlayerData[playerid][Sexo] == 1) {
  309. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [LS]", Name);
  310. SCMA(0xFFFFFFFF, Msg); }
  311.  
  312. if (APlayerData[playerid][Sexo] == 2) {
  313. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} veterana. [LS]", Name);
  314. SCMA(0xFFFFFFFF, Msg); }}
  315.  
  316.  
  317. else if(APlayerData[playerid][StatsTruckerJobs] >= 100){
  318.  
  319. if (APlayerData[playerid][Sexo] == 0) {
  320. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [LS]", Name);
  321. SCMA(0xFFFFFFFF, Msg); }
  322.  
  323. if (APlayerData[playerid][Sexo] == 1) {
  324. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [LS]", Name);
  325. SCMA(0xFFFFFFFF, Msg); }
  326.  
  327. if (APlayerData[playerid][Sexo] == 2) {
  328. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} aprendiz. [LS]", Name);
  329. SCMA(0xFFFFFFFF, Msg); }}
  330.  
  331. else if(APlayerData[playerid][StatsTruckerJobs] >= 0){
  332. if (APlayerData[playerid][Sexo] == 0) {
  333. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [LS]", Name);
  334. SCMA(0xFFFFFFFF, Msg); }
  335.  
  336. if (APlayerData[playerid][Sexo] == 1) {
  337. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [LS]", Name);
  338. SCMA(0xFFFFFFFF, Msg); }
  339.  
  340. if (APlayerData[playerid][Sexo] == 2) {
  341. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} iniciante. [LS]", Name);
  342. SCMA(0xFFFFFFFF, Msg); }}
  343. }
  344. case 5:
  345. {
  346. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -2431.9006,2118.9978,8.0346,62.8664 , 0, 0, 0, 0, 0, 0);
  347. SendClientMessage(playerid, 0xFF0000FF, "{FF7F50}Você foi para o resgate de {FFFFFF}BaySide. {00FF00}R${FFFFFF}100 {FF7F50}foram custados a você!");
  348. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  349. //Reduce the player's money by 200
  350. Ganhos(playerid, -100, 0);
  351.  
  352.  
  353. if(APlayerData[playerid][StatsTruckerJobs] >= 1000){
  354. if (APlayerData[playerid][Sexo] == 0) {
  355. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [BS]", Name);
  356. SCMA(0xFFFFFFFF, Msg); }
  357.  
  358. if (APlayerData[playerid][Sexo] == 1) {
  359. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} rei da estrada. [BS]", Name);
  360. SCMA(0xFFFFFFFF, Msg); }
  361.  
  362. if (APlayerData[playerid][Sexo] == 2) {
  363. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} rainha da estrada. [BS]", Name);
  364. SCMA(0xFFFFFFFF, Msg); }}
  365.  
  366. else if(APlayerData[playerid][StatsTruckerJobs] >= 500){
  367. if (APlayerData[playerid][Sexo] == 0) {
  368. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [BS]", Name);
  369. SCMA(0xFFFFFFFF, Msg); }
  370.  
  371. if (APlayerData[playerid][Sexo] == 1) {
  372. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} veterano. [BS]", Name);
  373. SCMA(0xFFFFFFFF, Msg); }
  374.  
  375. if (APlayerData[playerid][Sexo] == 2) {
  376. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} veterana. [BS]", Name);
  377. SCMA(0xFFFFFFFF, Msg); }}
  378.  
  379.  
  380. else if(APlayerData[playerid][StatsTruckerJobs] >= 100){
  381.  
  382. if (APlayerData[playerid][Sexo] == 0) {
  383. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [BS]", Name);
  384. SCMA(0xFFFFFFFF, Msg); }
  385.  
  386. if (APlayerData[playerid][Sexo] == 1) {
  387. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} aprendiz. [BS]", Name);
  388. SCMA(0xFFFFFFFF, Msg); }
  389.  
  390. if (APlayerData[playerid][Sexo] == 2) {
  391. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} aprendiz. [BS]", Name);
  392. SCMA(0xFFFFFFFF, Msg); }}
  393.  
  394. else if(APlayerData[playerid][StatsTruckerJobs] >= 0){
  395. if (APlayerData[playerid][Sexo] == 0) {
  396. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [BS]", Name);
  397. SCMA(0xFFFFFFFF, Msg); }
  398.  
  399. if (APlayerData[playerid][Sexo] == 1) {
  400. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como um {FF7F50}caminhoneiro{FFFFFF} iniciante. [BS]", Name);
  401. SCMA(0xFFFFFFFF, Msg); }
  402.  
  403. if (APlayerData[playerid][Sexo] == 2) {
  404. format(Msg, 128, "{FFFFFF}» {FF7F50}%s{FFFFFF} entrou como uma {FF7F50}caminhoneira{FFFFFF} iniciante. [BS]", Name);
  405. SCMA(0xFFFFFFFF, Msg); }}
  406.  
  407. }
  408.  
  409. case 6:
  410. {
  411. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  412. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  413. }
  414.  
  415. case 7:
  416. {
  417. new HouseList[1000];
  418. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  419. {
  420.  
  421. if (APlayerData[playerid][Houses][i] != 0)
  422. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  423. else
  424. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  425. }
  426. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  427. }
  428. case 8:
  429. {
  430. new BusinessList[1000], BusID, BusType, Earnings;
  431. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  432. {
  433.  
  434. BusID = APlayerData[playerid][Business][i];
  435. if (BusID != 0)
  436. {
  437. BusType = ABusinessData[BusID][BusinessType];
  438. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  439. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  440. }
  441. else
  442. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  443. }
  444. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  445. }
  446. }
  447. }
  448. case ClassBusDriver:
  449. {
  450.  
  451. // Set the spawn coordinates based on the selection in the list
  452. switch (listitem)
  453. {
  454.  
  455. case 0:
  456. {
  457. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1765.7679,-1895.9390,13.5628,267.8784, 0, 0, 0, 0, 0, 0);
  458. SendClientMessage(playerid, 0xFF0000FF, "{80FFFF}Você foi para o resgate de {FFFFFF}El Corona. {00FF00}R${FFFFFF}100 {80FFFF}foram custados a você!");
  459. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  460. //Reduce the player's money by 200
  461. Ganhos(playerid, -100, 0);
  462.  
  463.  
  464. if(APlayerData[playerid][StatsBusDriverJobs] >= 1000){
  465. if (APlayerData[playerid][Sexo] == 0) {
  466. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} chefe terminal. [LS]", Name);
  467. SCMA(0xFFFFFFFF, Msg); }
  468.  
  469. if (APlayerData[playerid][Sexo] == 1) {
  470. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} chefe terminal. [LS]", Name);
  471. SCMA(0xFFFFFFFF, Msg); }
  472.  
  473. if (APlayerData[playerid][Sexo] == 2) {
  474. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} chefe terminal. [LS]", Name);
  475. SCMA(0xFFFFFFFF, Msg); }}
  476.  
  477. else if(APlayerData[playerid][StatsBusDriverJobs] >= 500){
  478. if (APlayerData[playerid][Sexo] == 0) {
  479. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} supervisor rodoviário. [LS]", Name);
  480. SCMA(0xFFFFFFFF, Msg); }
  481.  
  482. if (APlayerData[playerid][Sexo] == 1) {
  483. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} supervisor rodoviário. [LS]", Name);
  484. SCMA(0xFFFFFFFF, Msg); }
  485.  
  486. if (APlayerData[playerid][Sexo] == 2) {
  487. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} supervisora rodoviária. [LS]", Name);
  488. SCMA(0xFFFFFFFF, Msg); }}
  489.  
  490.  
  491. else if(APlayerData[playerid][StatsBusDriverJobs] >= 100){
  492.  
  493. if (APlayerData[playerid][Sexo] == 0) {
  494. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} veterano. [LS]", Name);
  495. SCMA(0xFFFFFFFF, Msg); }
  496.  
  497. if (APlayerData[playerid][Sexo] == 1) {
  498. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} veterano. [LS]", Name);
  499. SCMA(0xFFFFFFFF, Msg); }
  500.  
  501. if (APlayerData[playerid][Sexo] == 2) {
  502. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} veterana. [LS]", Name);
  503. SCMA(0xFFFFFFFF, Msg); }}
  504.  
  505. else if(APlayerData[playerid][StatsBusDriverJobs] >= 0){
  506. if (APlayerData[playerid][Sexo] == 0) {
  507. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} iniciante. [LS]", Name);
  508. SCMA(0xFFFFFFFF, Msg); }
  509.  
  510. if (APlayerData[playerid][Sexo] == 1) {
  511. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} iniciante. [LS]", Name);
  512. SCMA(0xFFFFFFFF, Msg); }
  513.  
  514. if (APlayerData[playerid][Sexo] == 2) {
  515. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} iniciante. [LS]", Name);
  516. SCMA(0xFFFFFFFF, Msg); }}
  517. }
  518. case 1:
  519. {
  520. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -1982.1715,138.3907,27.6875,92.7413, 0, 0, 0, 0, 0, 0);
  521. SendClientMessage(playerid, 0xFF0000FF, "{80FFFF}Você foi para o resgate de {FFFFFF}Cranberry Station. {00FF00}R${FFFFFF}100 {80FFFF}foram custados a você!");
  522. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  523. //Reduce the player's money by 200
  524. Ganhos(playerid, -100, 0);
  525.  
  526.  
  527. if(APlayerData[playerid][StatsBusDriverJobs] >= 1000){
  528. if (APlayerData[playerid][Sexo] == 0) {
  529. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} chefe terminal. [SF]", Name);
  530. SCMA(0xFFFFFFFF, Msg); }
  531.  
  532. if (APlayerData[playerid][Sexo] == 1) {
  533. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} chefe terminal. [SF]", Name);
  534. SCMA(0xFFFFFFFF, Msg); }
  535.  
  536. if (APlayerData[playerid][Sexo] == 2) {
  537. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} chefe terminal. [SF]", Name);
  538. SCMA(0xFFFFFFFF, Msg); }}
  539.  
  540. else if(APlayerData[playerid][StatsBusDriverJobs] >= 500){
  541. if (APlayerData[playerid][Sexo] == 0) {
  542. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} supervisor rodoviário. [SF]", Name);
  543. SCMA(0xFFFFFFFF, Msg); }
  544.  
  545. if (APlayerData[playerid][Sexo] == 1) {
  546. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} supervisor rodoviário. [SF]", Name);
  547. SCMA(0xFFFFFFFF, Msg); }
  548.  
  549. if (APlayerData[playerid][Sexo] == 2) {
  550. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} supervisora rodoviária. [SF]", Name);
  551. SCMA(0xFFFFFFFF, Msg); }}
  552.  
  553.  
  554. else if(APlayerData[playerid][StatsBusDriverJobs] >= 100){
  555.  
  556. if (APlayerData[playerid][Sexo] == 0) {
  557. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} veterano. [SF]", Name);
  558. SCMA(0xFFFFFFFF, Msg); }
  559.  
  560. if (APlayerData[playerid][Sexo] == 1) {
  561. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} veterano. [SF]", Name);
  562. SCMA(0xFFFFFFFF, Msg); }
  563.  
  564. if (APlayerData[playerid][Sexo] == 2) {
  565. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} veterana. [SF]", Name);
  566. SCMA(0xFFFFFFFF, Msg); }}
  567.  
  568. else if(APlayerData[playerid][StatsBusDriverJobs] >= 0){
  569. if (APlayerData[playerid][Sexo] == 0) {
  570. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} iniciante. [SF]", Name);
  571. SCMA(0xFFFFFFFF, Msg); }
  572.  
  573. if (APlayerData[playerid][Sexo] == 1) {
  574. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} iniciante. [SF]", Name);
  575. SCMA(0xFFFFFFFF, Msg); }
  576.  
  577. if (APlayerData[playerid][Sexo] == 2) {
  578. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} iniciante. [SF]", Name);
  579. SCMA(0xFFFFFFFF, Msg); }}
  580. }
  581. case 2:
  582. {
  583. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1061.9106,1240.6963,10.8275,271.7368, 0, 0, 0, 0, 0, 0);
  584. SendClientMessage(playerid, 0xFF0000FF, "{80FFFF}Você foi para o resgate de {FFFFFF}Blackfield. {00FF00}R${FFFFFF}100 {80FFFF}foram custados a você!");
  585. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  586. //Reduce the player's money by 200
  587. Ganhos(playerid, -100, 0);
  588.  
  589. if(APlayerData[playerid][StatsBusDriverJobs] >= 1000){
  590. if (APlayerData[playerid][Sexo] == 0) {
  591. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} chefe terminal. [LV]", Name);
  592. SCMA(0xFFFFFFFF, Msg); }
  593.  
  594. if (APlayerData[playerid][Sexo] == 1) {
  595. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} chefe terminal. [LV]", Name);
  596. SCMA(0xFFFFFFFF, Msg); }
  597.  
  598. if (APlayerData[playerid][Sexo] == 2) {
  599. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} chefe terminal. [LV]", Name);
  600. SCMA(0xFFFFFFFF, Msg); }}
  601.  
  602. else if(APlayerData[playerid][StatsBusDriverJobs] >= 500){
  603. if (APlayerData[playerid][Sexo] == 0) {
  604. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} supervisor rodoviário. [LV]", Name);
  605. SCMA(0xFFFFFFFF, Msg); }
  606.  
  607. if (APlayerData[playerid][Sexo] == 1) {
  608. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} supervisor rodoviário. [LV]", Name);
  609. SCMA(0xFFFFFFFF, Msg); }
  610.  
  611. if (APlayerData[playerid][Sexo] == 2) {
  612. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} supervisora rodoviária. [LV]", Name);
  613. SCMA(0xFFFFFFFF, Msg); }}
  614.  
  615.  
  616. else if(APlayerData[playerid][StatsBusDriverJobs] >= 100){
  617.  
  618. if (APlayerData[playerid][Sexo] == 0) {
  619. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} veterano. [LV]", Name);
  620. SCMA(0xFFFFFFFF, Msg); }
  621.  
  622. if (APlayerData[playerid][Sexo] == 1) {
  623. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} veterano. [LV]", Name);
  624. SCMA(0xFFFFFFFF, Msg); }
  625.  
  626. if (APlayerData[playerid][Sexo] == 2) {
  627. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} veterana. [LV]", Name);
  628. SCMA(0xFFFFFFFF, Msg); }}
  629.  
  630. else if(APlayerData[playerid][StatsBusDriverJobs] >= 0){
  631. if (APlayerData[playerid][Sexo] == 0) {
  632. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} iniciante. [LV]", Name);
  633. SCMA(0xFFFFFFFF, Msg); }
  634.  
  635. if (APlayerData[playerid][Sexo] == 1) {
  636. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}motorista de ônibus{FFFFFF} iniciante. [LV]", Name);
  637. SCMA(0xFFFFFFFF, Msg); }
  638.  
  639. if (APlayerData[playerid][Sexo] == 2) {
  640. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}motorista de ônibus{FFFFFF} iniciante. [LV]", Name);
  641. SCMA(0xFFFFFFFF, Msg); }}
  642. }
  643.  
  644. case 3:
  645. {
  646. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  647. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  648. }
  649.  
  650. case 4:
  651. {
  652. new HouseList[1000];
  653. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  654. {
  655.  
  656. if (APlayerData[playerid][Houses][i] != 0)
  657. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  658. else
  659. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  660. }
  661. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  662. }
  663. case 5:
  664. {
  665. new BusinessList[1000], BusID, BusType, Earnings;
  666. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  667. {
  668.  
  669. BusID = APlayerData[playerid][Business][i];
  670. if (BusID != 0)
  671. {
  672. BusType = ABusinessData[BusID][BusinessType];
  673. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  674. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  675. }
  676. else
  677. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  678. }
  679. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  680. }
  681. }
  682. }
  683. case ClassPilot:
  684. {
  685.  
  686. // Set the spawn coordinates based on the selection in the list
  687. switch (listitem)
  688. {
  689.  
  690. case 0:
  691. {
  692. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 2010.0, -2345.0, 13.6, 90.0, 0, 0, 0, 0, 0, 0);
  693. SendClientMessage(playerid, 0xFF0000FF, "{008080}Você foi para o resgate de {FFFFFF}LS International. {00FF00}R${FFFFFF}100 {008080}foram custados a você!");
  694. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  695. //Reduce the player's money by 200
  696. Ganhos(playerid, -100, 0);
  697.  
  698.  
  699. if(APlayerData[playerid][StatsPilotJobs] >= 1000){
  700. if (APlayerData[playerid][Sexo] == 0) {
  701. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} capitação da aviação. [LS]", Name);
  702. SCMA(0xFFFFFFFF, Msg); }
  703.  
  704. if (APlayerData[playerid][Sexo] == 1) {
  705. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} capitação da aviação. [LS]", Name);
  706. SCMA(0xFFFFFFFF, Msg); }
  707.  
  708. if (APlayerData[playerid][Sexo] == 2) {
  709. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} capitação da aviação. [LS]", Name);
  710. SCMA(0xFFFFFFFF, Msg); }}
  711.  
  712. else if(APlayerData[playerid][StatsPilotJobs] >= 500){
  713. if (APlayerData[playerid][Sexo] == 0) {
  714. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} co-piloto. [LS]", Name);
  715. SCMA(0xFFFFFFFF, Msg); }
  716.  
  717. if (APlayerData[playerid][Sexo] == 1) {
  718. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} co-piloto. [LS]", Name);
  719. SCMA(0xFFFFFFFF, Msg); }
  720.  
  721. if (APlayerData[playerid][Sexo] == 2) {
  722. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} co-pilota. [LS]", Name);
  723. SCMA(0xFFFFFFFF, Msg); }}
  724.  
  725.  
  726. else if(APlayerData[playerid][StatsPilotJobs] >= 100){
  727.  
  728. if (APlayerData[playerid][Sexo] == 0) {
  729. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} aprendiz de aviadores. [LS]", Name);
  730. SCMA(0xFFFFFFFF, Msg); }
  731.  
  732. if (APlayerData[playerid][Sexo] == 1) {
  733. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} aprendiz de aviadores. [LS]", Name);
  734. SCMA(0xFFFFFFFF, Msg); }
  735.  
  736. if (APlayerData[playerid][Sexo] == 2) {
  737. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} aprendiz de aviadores. [LS]", Name);
  738. SCMA(0xFFFFFFFF, Msg); }}
  739.  
  740. else if(APlayerData[playerid][StatsPilotJobs] >= 0){
  741. if (APlayerData[playerid][Sexo] == 0) {
  742. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} iniciante. [LS]", Name);
  743. SCMA(0xFFFFFFFF, Msg); }
  744.  
  745. if (APlayerData[playerid][Sexo] == 1) {
  746. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} iniciante. [LS]", Name);
  747. SCMA(0xFFFFFFFF, Msg); }
  748.  
  749. if (APlayerData[playerid][Sexo] == 2) {
  750. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} iniciante. [LS]", Name);
  751. SCMA(0xFFFFFFFF, Msg); }}
  752.  
  753. }
  754. case 1:
  755. {
  756. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -1211.0, -105.0, 14.2, 135.0, 0, 0, 0, 0, 0, 0);
  757. SendClientMessage(playerid, 0xFF0000FF, "{008080}Você foi para o resgate de {FFFFFF}Easter Bay Airport. {00FF00}R${FFFFFF}100 {008080}foram custados a você!");
  758. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  759. //Reduce the player's money by 200
  760. Ganhos(playerid, -100, 0);
  761.  
  762.  
  763. if(APlayerData[playerid][StatsPilotJobs] >= 1000){
  764. if (APlayerData[playerid][Sexo] == 0) {
  765. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} capitação da aviação. [SF]", Name);
  766. SCMA(0xFFFFFFFF, Msg); }
  767.  
  768. if (APlayerData[playerid][Sexo] == 1) {
  769. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} capitação da aviação. [SF]", Name);
  770. SCMA(0xFFFFFFFF, Msg); }
  771.  
  772. if (APlayerData[playerid][Sexo] == 2) {
  773. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} capitação da aviação. [SF]", Name);
  774. SCMA(0xFFFFFFFF, Msg); }}
  775.  
  776. else if(APlayerData[playerid][StatsPilotJobs] >= 500){
  777. if (APlayerData[playerid][Sexo] == 0) {
  778. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} co-piloto. [SF]", Name);
  779. SCMA(0xFFFFFFFF, Msg); }
  780.  
  781. if (APlayerData[playerid][Sexo] == 1) {
  782. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} co-piloto. [SF]", Name);
  783. SCMA(0xFFFFFFFF, Msg); }
  784.  
  785. if (APlayerData[playerid][Sexo] == 2) {
  786. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} co-pilota. [SF]", Name);
  787. SCMA(0xFFFFFFFF, Msg); }}
  788.  
  789.  
  790. else if(APlayerData[playerid][StatsPilotJobs] >= 100){
  791.  
  792. if (APlayerData[playerid][Sexo] == 0) {
  793. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} aprendiz de aviadores. [SF]", Name);
  794. SCMA(0xFFFFFFFF, Msg); }
  795.  
  796. if (APlayerData[playerid][Sexo] == 1) {
  797. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} aprendiz de aviadores. [SF]", Name);
  798. SCMA(0xFFFFFFFF, Msg); }
  799.  
  800. if (APlayerData[playerid][Sexo] == 2) {
  801. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} aprendiz de aviadores. [SF]", Name);
  802. SCMA(0xFFFFFFFF, Msg); }}
  803.  
  804. else if(APlayerData[playerid][StatsPilotJobs] >= 0){
  805. if (APlayerData[playerid][Sexo] == 0) {
  806. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} iniciante. [SF]", Name);
  807. SCMA(0xFFFFFFFF, Msg); }
  808.  
  809. if (APlayerData[playerid][Sexo] == 1) {
  810. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} iniciante. [SF]", Name);
  811. SCMA(0xFFFFFFFF, Msg); }
  812.  
  813. if (APlayerData[playerid][Sexo] == 2) {
  814. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} iniciante. [SF]", Name);
  815. SCMA(0xFFFFFFFF, Msg); }}
  816. }
  817. case 2:
  818. {
  819. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1630.0, 1615.0, 10.9, 90.0, 0, 0, 0, 0, 0, 0);
  820. SendClientMessage(playerid, 0xFF0000FF, "{008080}Você foi para o resgate de {FFFFFF}Aero LV. {00FF00}R${FFFFFF}100 {008080}foram custados a você!");
  821. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  822. //Reduce the player's money by 200
  823. Ganhos(playerid, -100, 0);
  824.  
  825.  
  826. if(APlayerData[playerid][StatsPilotJobs] >= 1000){
  827. if (APlayerData[playerid][Sexo] == 0) {
  828. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} capitação da aviação. [LV]", Name);
  829. SCMA(0xFFFFFFFF, Msg); }
  830.  
  831. if (APlayerData[playerid][Sexo] == 1) {
  832. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} capitação da aviação. [LV]", Name);
  833. SCMA(0xFFFFFFFF, Msg); }
  834.  
  835. if (APlayerData[playerid][Sexo] == 2) {
  836. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} capitação da aviação. [LV]", Name);
  837. SCMA(0xFFFFFFFF, Msg); }}
  838.  
  839. else if(APlayerData[playerid][StatsPilotJobs] >= 500){
  840. if (APlayerData[playerid][Sexo] == 0) {
  841. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} co-piloto. [LV]", Name);
  842. SCMA(0xFFFFFFFF, Msg); }
  843.  
  844. if (APlayerData[playerid][Sexo] == 1) {
  845. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} co-piloto. [LV]", Name);
  846. SCMA(0xFFFFFFFF, Msg); }
  847.  
  848. if (APlayerData[playerid][Sexo] == 2) {
  849. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} co-pilota. [LV]", Name);
  850. SCMA(0xFFFFFFFF, Msg); }}
  851.  
  852.  
  853. else if(APlayerData[playerid][StatsPilotJobs] >= 100){
  854.  
  855. if (APlayerData[playerid][Sexo] == 0) {
  856. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} aprendiz de aviadores. [LV]", Name);
  857. SCMA(0xFFFFFFFF, Msg); }
  858.  
  859. if (APlayerData[playerid][Sexo] == 1) {
  860. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} aprendiz de aviadores. [LV]", Name);
  861. SCMA(0xFFFFFFFF, Msg); }
  862.  
  863. if (APlayerData[playerid][Sexo] == 2) {
  864. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} aprendiz de aviadores. [LV]", Name);
  865. SCMA(0xFFFFFFFF, Msg); }}
  866.  
  867. else if(APlayerData[playerid][StatsPilotJobs] >= 0){
  868. if (APlayerData[playerid][Sexo] == 0) {
  869. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} iniciante. [LV]", Name);
  870. SCMA(0xFFFFFFFF, Msg); }
  871.  
  872. if (APlayerData[playerid][Sexo] == 1) {
  873. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como um {008080}piloto{FFFFFF} iniciante. [LV]", Name);
  874. SCMA(0xFFFFFFFF, Msg); }
  875.  
  876. if (APlayerData[playerid][Sexo] == 2) {
  877. format(Msg, 128, "{FFFFFF}» {008080}%s{FFFFFF} entrou como uma {008080}pilota{FFFFFF} iniciante. [LV]", Name);
  878. SCMA(0xFFFFFFFF, Msg); }}
  879. }
  880. case 3:
  881. {
  882. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  883. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  884. }
  885. case 4:
  886. {
  887. new HouseList[1000];
  888. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  889. {
  890.  
  891. if (APlayerData[playerid][Houses][i] != 0)
  892. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  893. else
  894. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  895. }
  896. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  897. }
  898. case 5:
  899. {
  900. new BusinessList[1000], BusID, BusType, Earnings;
  901. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  902. {
  903.  
  904. BusID = APlayerData[playerid][Business][i];
  905. if (BusID != 0)
  906. {
  907. BusType = ABusinessData[BusID][BusinessType];
  908. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  909. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  910. }
  911. else
  912. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  913. }
  914. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  915. }
  916. }
  917. }
  918. case ClassPolice:
  919. {
  920.  
  921. // Set the spawn coordinates based on the selection in the list
  922. switch (listitem)
  923. {
  924.  
  925. case 0:
  926. {
  927. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1568.5, -1693.5, 6.0, 180.0, 0, 0, 0, 0, 0, 0);
  928. SendClientMessage(playerid, 0xFF0000FF, "{0000CD}Você foi para o resgate de {FFFFFF}Pershing Square. {00FF00}R${FFFFFF}100 {0000CD}foram custados a você!");
  929. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  930. //Reduce the player's money by 200
  931. Ganhos(playerid, -100, 0);
  932.  
  933.  
  934. if(APlayerData[playerid][StatsPoliceFined] >= 1000){
  935. if (APlayerData[playerid][Sexo] == 0) {
  936. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} marechal da polícia. [LS]", Name);
  937. SCMA(0xFFFFFFFF, Msg); }
  938.  
  939. if (APlayerData[playerid][Sexo] == 1) {
  940. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} marechal da polícia. [LS]", Name);
  941. SCMA(0xFFFFFFFF, Msg); }
  942.  
  943. if (APlayerData[playerid][Sexo] == 2) {
  944. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} marechal da polícia. [LS]", Name);
  945. SCMA(0xFFFFFFFF, Msg); }}
  946.  
  947. else if(APlayerData[playerid][StatsPoliceFined] >= 500){
  948. if (APlayerData[playerid][Sexo] == 0) {
  949. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} delegado local. [LS]", Name);
  950. SCMA(0xFFFFFFFF, Msg); }
  951.  
  952. if (APlayerData[playerid][Sexo] == 1) {
  953. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} delegado local. [LS]", Name);
  954. SCMA(0xFFFFFFFF, Msg); }
  955.  
  956. if (APlayerData[playerid][Sexo] == 2) {
  957. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} delegada local. [LS]", Name);
  958. SCMA(0xFFFFFFFF, Msg); }}
  959.  
  960.  
  961. else if(APlayerData[playerid][StatsPoliceFined] >= 100){
  962.  
  963. if (APlayerData[playerid][Sexo] == 0) {
  964. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} sargento. [LS]", Name);
  965. SCMA(0xFFFFFFFF, Msg); }
  966.  
  967. if (APlayerData[playerid][Sexo] == 1) {
  968. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} sargento. [LS]", Name);
  969. SCMA(0xFFFFFFFF, Msg); }
  970.  
  971. if (APlayerData[playerid][Sexo] == 2) {
  972. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} sargento. [LS]", Name);
  973. SCMA(0xFFFFFFFF, Msg); }}
  974.  
  975. else if(APlayerData[playerid][StatsPoliceFined] >= 0){
  976. if (APlayerData[playerid][Sexo] == 0) {
  977. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} cabo. [LS]", Name);
  978. SCMA(0xFFFFFFFF, Msg); }
  979.  
  980. if (APlayerData[playerid][Sexo] == 1) {
  981. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} cabo. [LS]", Name);
  982. SCMA(0xFFFFFFFF, Msg); }
  983.  
  984. if (APlayerData[playerid][Sexo] == 2) {
  985. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} cabo. [LS]", Name);
  986. SCMA(0xFFFFFFFF, Msg); }}
  987.  
  988. }
  989. case 1:
  990. {
  991. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -1590.0, 716.25, -5.0, 270.0, 0, 0, 0, 0, 0, 0);
  992. SendClientMessage(playerid, 0xFF0000FF, "{0000CD}Você foi para o resgate de {FFFFFF}Downtown. {00FF00}R${FFFFFF}100 {0000CD}foram custados a você!");
  993. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  994. //Reduce the player's money by 200
  995. Ganhos(playerid, -100, 0);
  996.  
  997.  
  998. if(APlayerData[playerid][StatsPoliceFined] >= 1000){
  999. if (APlayerData[playerid][Sexo] == 0) {
  1000. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} marechal da polícia. [SF]", Name);
  1001. SCMA(0xFFFFFFFF, Msg); }
  1002.  
  1003. if (APlayerData[playerid][Sexo] == 1) {
  1004. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} marechal da polícia. [SF]", Name);
  1005. SCMA(0xFFFFFFFF, Msg); }
  1006.  
  1007. if (APlayerData[playerid][Sexo] == 2) {
  1008. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} marechal da polícia. [SF]", Name);
  1009. SCMA(0xFFFFFFFF, Msg); }}
  1010.  
  1011. else if(APlayerData[playerid][StatsPoliceFined] >= 500){
  1012. if (APlayerData[playerid][Sexo] == 0) {
  1013. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} delegado local. [SF]", Name);
  1014. SCMA(0xFFFFFFFF, Msg); }
  1015.  
  1016. if (APlayerData[playerid][Sexo] == 1) {
  1017. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} delegado local. [SF]", Name);
  1018. SCMA(0xFFFFFFFF, Msg); }
  1019.  
  1020. if (APlayerData[playerid][Sexo] == 2) {
  1021. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} delegada local. [SF]", Name);
  1022. SCMA(0xFFFFFFFF, Msg); }}
  1023.  
  1024.  
  1025. else if(APlayerData[playerid][StatsPoliceFined] >= 100){
  1026.  
  1027. if (APlayerData[playerid][Sexo] == 0) {
  1028. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} sargento. [SF]", Name);
  1029. SCMA(0xFFFFFFFF, Msg); }
  1030.  
  1031. if (APlayerData[playerid][Sexo] == 1) {
  1032. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} sargento. [SF]", Name);
  1033. SCMA(0xFFFFFFFF, Msg); }
  1034.  
  1035. if (APlayerData[playerid][Sexo] == 2) {
  1036. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} sargento. [SF]", Name);
  1037. SCMA(0xFFFFFFFF, Msg); }}
  1038.  
  1039. else if(APlayerData[playerid][StatsPoliceFined] >= 0){
  1040. if (APlayerData[playerid][Sexo] == 0) {
  1041. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} cabo. [SF]", Name);
  1042. SCMA(0xFFFFFFFF, Msg); }
  1043.  
  1044. if (APlayerData[playerid][Sexo] == 1) {
  1045. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} cabo. [SF]", Name);
  1046. SCMA(0xFFFFFFFF, Msg); }
  1047.  
  1048. if (APlayerData[playerid][Sexo] == 2) {
  1049. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} cabo. [SF]", Name);
  1050. SCMA(0xFFFFFFFF, Msg); }}
  1051.  
  1052. }
  1053. case 2:
  1054. {
  1055. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 2275.0, 2460.0, 10.9, 90.0, 0, 0, 0, 0, 0, 0);
  1056. SendClientMessage(playerid, 0xFF0000FF, "{0000CD}Você foi para o resgate de {FFFFFF}Roca Escalante {00FF00}R${FFFFFF}100 {0000CD}foram custados a você!");
  1057. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1058. //Reduce the player's money by 200
  1059. Ganhos(playerid, -100, 0);
  1060.  
  1061.  
  1062. if(APlayerData[playerid][StatsPoliceFined] >= 1000){
  1063. if (APlayerData[playerid][Sexo] == 0) {
  1064. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} marechal da polícia. [LV]", Name);
  1065. SCMA(0xFFFFFFFF, Msg); }
  1066.  
  1067. if (APlayerData[playerid][Sexo] == 1) {
  1068. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} marechal da polícia. [LV]", Name);
  1069. SCMA(0xFFFFFFFF, Msg); }
  1070.  
  1071. if (APlayerData[playerid][Sexo] == 2) {
  1072. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} marechal da polícia. [LV]", Name);
  1073. SCMA(0xFFFFFFFF, Msg); }}
  1074.  
  1075. else if(APlayerData[playerid][StatsPoliceFined] >= 500){
  1076. if (APlayerData[playerid][Sexo] == 0) {
  1077. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} delegado local. [LV]", Name);
  1078. SCMA(0xFFFFFFFF, Msg); }
  1079.  
  1080. if (APlayerData[playerid][Sexo] == 1) {
  1081. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} delegado local. [LV]", Name);
  1082. SCMA(0xFFFFFFFF, Msg); }
  1083.  
  1084. if (APlayerData[playerid][Sexo] == 2) {
  1085. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} delegada local. [LV]", Name);
  1086. SCMA(0xFFFFFFFF, Msg); }}
  1087.  
  1088.  
  1089. else if(APlayerData[playerid][StatsPoliceFined] >= 100){
  1090.  
  1091. if (APlayerData[playerid][Sexo] == 0) {
  1092. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} sargento. [LV]", Name);
  1093. SCMA(0xFFFFFFFF, Msg); }
  1094.  
  1095. if (APlayerData[playerid][Sexo] == 1) {
  1096. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} sargento. [LV]", Name);
  1097. SCMA(0xFFFFFFFF, Msg); }
  1098.  
  1099. if (APlayerData[playerid][Sexo] == 2) {
  1100. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} sargento. [LV]", Name);
  1101. SCMA(0xFFFFFFFF, Msg); }}
  1102.  
  1103. else if(APlayerData[playerid][StatsPoliceFined] >= 0){
  1104. if (APlayerData[playerid][Sexo] == 0) {
  1105. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} cabo. [LV]", Name);
  1106. SCMA(0xFFFFFFFF, Msg); }
  1107.  
  1108. if (APlayerData[playerid][Sexo] == 1) {
  1109. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} cabo. [LV]", Name);
  1110. SCMA(0xFFFFFFFF, Msg); }
  1111.  
  1112. if (APlayerData[playerid][Sexo] == 2) {
  1113. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} cabo. [LV]", Name);
  1114. SCMA(0xFFFFFFFF, Msg); }}
  1115. }
  1116. case 3:
  1117. {
  1118. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 614.7687,-599.1743,17.2330,267.3997, 0, 0, 0, 0, 0, 0);
  1119. SendClientMessage(playerid, 0xFF0000FF, "{0000CD}Você foi para o resgate de {FFFFFF}Red Country. {00FF00}R${FFFFFF}100 {0000CD}foram custados a você!");
  1120. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1121. //Reduce the player's money by 200
  1122. Ganhos(playerid, -100, 0);
  1123.  
  1124.  
  1125. if(APlayerData[playerid][StatsPoliceFined] >= 1000){
  1126. if (APlayerData[playerid][Sexo] == 0) {
  1127. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} marechal da polícia. [RC]", Name);
  1128. SCMA(0xFFFFFFFF, Msg); }
  1129.  
  1130. if (APlayerData[playerid][Sexo] == 1) {
  1131. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} marechal da polícia. [RC]", Name);
  1132. SCMA(0xFFFFFFFF, Msg); }
  1133.  
  1134. if (APlayerData[playerid][Sexo] == 2) {
  1135. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} marechal da polícia. [RC]", Name);
  1136. SCMA(0xFFFFFFFF, Msg); }}
  1137.  
  1138. else if(APlayerData[playerid][StatsPoliceFined] >= 500){
  1139. if (APlayerData[playerid][Sexo] == 0) {
  1140. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} delegado local. [RC]", Name);
  1141. SCMA(0xFFFFFFFF, Msg); }
  1142.  
  1143. if (APlayerData[playerid][Sexo] == 1) {
  1144. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} delegado local. [RC]", Name);
  1145. SCMA(0xFFFFFFFF, Msg); }
  1146.  
  1147. if (APlayerData[playerid][Sexo] == 2) {
  1148. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} delegada local. [RC]", Name);
  1149. SCMA(0xFFFFFFFF, Msg); }}
  1150.  
  1151.  
  1152. else if(APlayerData[playerid][StatsPoliceFined] >= 100){
  1153.  
  1154. if (APlayerData[playerid][Sexo] == 0) {
  1155. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} sargento. [RC]", Name);
  1156. SCMA(0xFFFFFFFF, Msg); }
  1157.  
  1158. if (APlayerData[playerid][Sexo] == 1) {
  1159. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} sargento. [RC]", Name);
  1160. SCMA(0xFFFFFFFF, Msg); }
  1161.  
  1162. if (APlayerData[playerid][Sexo] == 2) {
  1163. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} sargento. [RC]", Name);
  1164. SCMA(0xFFFFFFFF, Msg); }}
  1165.  
  1166. else if(APlayerData[playerid][StatsPoliceFined] >= 0){
  1167. if (APlayerData[playerid][Sexo] == 0) {
  1168. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} cabo. [RC]", Name);
  1169. SCMA(0xFFFFFFFF, Msg); }
  1170.  
  1171. if (APlayerData[playerid][Sexo] == 1) {
  1172. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como um {0000EE}policial{FFFFFF} cabo. [RC]", Name);
  1173. SCMA(0xFFFFFFFF, Msg); }
  1174.  
  1175. if (APlayerData[playerid][Sexo] == 2) {
  1176. format(Msg, 128, "{FFFFFF}» {0000EE}%s{FFFFFF} entrou como uma {0000EE}policial{FFFFFF} cabo. [RC]", Name);
  1177. SCMA(0xFFFFFFFF, Msg); }}
  1178. }
  1179. case 4:
  1180. {
  1181. new HouseList[1000];
  1182. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  1183. {
  1184.  
  1185. if (APlayerData[playerid][Houses][i] != 0)
  1186. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  1187. else
  1188. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  1189. }
  1190. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  1191. }
  1192. case 5:
  1193. {
  1194. new BusinessList[1000], BusID, BusType, Earnings;
  1195. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  1196. {
  1197.  
  1198. BusID = APlayerData[playerid][Business][i];
  1199. if (BusID != 0)
  1200. {
  1201. BusType = ABusinessData[BusID][BusinessType];
  1202. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  1203. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  1204. }
  1205. else
  1206. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  1207. }
  1208. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  1209. }
  1210. }
  1211. }
  1212. case ClassCourier:
  1213. {
  1214.  
  1215. // Set the spawn coordinates based on the selection in the list
  1216. switch (listitem)
  1217. {
  1218.  
  1219. case 0:
  1220. {
  1221. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 798.0, -618.75, 16.4, 0.0, 0, 0, 0, 0, 0, 0);
  1222. SendClientMessage(playerid, 0xFF0000FF, "{FF0080}Você foi para o resgate de {FFFFFF}Dillimore. {00FF00}R${FFFFFF}100 {FF0080}foram custados a você!");
  1223. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1224. //Reduce the player's money by 200
  1225. Ganhos(playerid, -100, 0);
  1226.  
  1227.  
  1228. if(APlayerData[playerid][StatsCourierJobs] >= 1000){
  1229. if (APlayerData[playerid][Sexo] == 0) {
  1230. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} chefe do almoxarifado. [LS]", Name);
  1231. SCMA(0xFFFFFFFF, Msg); }
  1232.  
  1233. if (APlayerData[playerid][Sexo] == 1) {
  1234. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} chefe do almoxarifado. [LS]", Name);
  1235. SCMA(0xFFFFFFFF, Msg); }
  1236.  
  1237. if (APlayerData[playerid][Sexo] == 2) {
  1238. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} chefe do almoxarifado. [LS]", Name);
  1239. SCMA(0xFFFFFFFF, Msg); }}
  1240.  
  1241. else if(APlayerData[playerid][StatsCourierJobs] >= 500){
  1242. if (APlayerData[playerid][Sexo] == 0) {
  1243. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} gerente. [LS]", Name);
  1244. SCMA(0xFFFFFFFF, Msg); }
  1245.  
  1246. if (APlayerData[playerid][Sexo] == 1) {
  1247. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} gerente. [LS]", Name);
  1248. SCMA(0xFFFFFFFF, Msg); }
  1249.  
  1250. if (APlayerData[playerid][Sexo] == 2) {
  1251. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} gerente. [LS]", Name);
  1252. SCMA(0xFFFFFFFF, Msg); }}
  1253.  
  1254.  
  1255. else if(APlayerData[playerid][StatsCourierJobs] >= 100){
  1256.  
  1257. if (APlayerData[playerid][Sexo] == 0) {
  1258. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} supervisor de entregas. [LS]", Name);
  1259. SCMA(0xFFFFFFFF, Msg); }
  1260.  
  1261. if (APlayerData[playerid][Sexo] == 1) {
  1262. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} supervisor de entregas. [LS]", Name);
  1263. SCMA(0xFFFFFFFF, Msg); }
  1264.  
  1265. if (APlayerData[playerid][Sexo] == 2) {
  1266. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} supervisora de entregas. [LS]", Name);
  1267. SCMA(0xFFFFFFFF, Msg); }}
  1268.  
  1269. else if(APlayerData[playerid][StatsCourierJobs] >= 0){
  1270. if (APlayerData[playerid][Sexo] == 0) {
  1271. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} iniciante. [LS]", Name);
  1272. SCMA(0xFFFFFFFF, Msg); }
  1273.  
  1274. if (APlayerData[playerid][Sexo] == 1) {
  1275. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} iniciante. [LS]", Name);
  1276. SCMA(0xFFFFFFFF, Msg); }
  1277.  
  1278. if (APlayerData[playerid][Sexo] == 2) {
  1279. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} iniciante. [LS]", Name);
  1280. SCMA(0xFFFFFFFF, Msg); }}
  1281. }
  1282. case 1:
  1283. {
  1284. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -1849.25, -135.0, 12.0, 90.0, 0, 0, 0, 0, 0, 0);
  1285. SendClientMessage(playerid, 0xFF0000FF, "{FF0080}Você foi para o resgate de {FFFFFF}Doherty. {00FF00}R${FFFFFF}100 {FF0080}foram custados a você!");
  1286. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1287. //Reduce the player's money by 200
  1288. Ganhos(playerid, -100, 0);
  1289.  
  1290. if(APlayerData[playerid][StatsCourierJobs] >= 1000){
  1291. if (APlayerData[playerid][Sexo] == 0) {
  1292. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} chefe do almoxarifado. [SF]", Name);
  1293. SCMA(0xFFFFFFFF, Msg); }
  1294.  
  1295. if (APlayerData[playerid][Sexo] == 1) {
  1296. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} chefe do almoxarifado. [SF]", Name);
  1297. SCMA(0xFFFFFFFF, Msg); }
  1298.  
  1299. if (APlayerData[playerid][Sexo] == 2) {
  1300. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} chefe do almoxarifado. [SF]", Name);
  1301. SCMA(0xFFFFFFFF, Msg); }}
  1302.  
  1303. else if(APlayerData[playerid][StatsCourierJobs] >= 500){
  1304. if (APlayerData[playerid][Sexo] == 0) {
  1305. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} gerente. [SF]", Name);
  1306. SCMA(0xFFFFFFFF, Msg); }
  1307.  
  1308. if (APlayerData[playerid][Sexo] == 1) {
  1309. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} gerente. [SF]", Name);
  1310. SCMA(0xFFFFFFFF, Msg); }
  1311.  
  1312. if (APlayerData[playerid][Sexo] == 2) {
  1313. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} gerente. [SF]", Name);
  1314. SCMA(0xFFFFFFFF, Msg); }}
  1315.  
  1316.  
  1317. else if(APlayerData[playerid][StatsCourierJobs] >= 100){
  1318.  
  1319. if (APlayerData[playerid][Sexo] == 0) {
  1320. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} supervisor de entregas. [SF]", Name);
  1321. SCMA(0xFFFFFFFF, Msg); }
  1322.  
  1323. if (APlayerData[playerid][Sexo] == 1) {
  1324. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} supervisor de entregas. [SF]", Name);
  1325. SCMA(0xFFFFFFFF, Msg); }
  1326.  
  1327. if (APlayerData[playerid][Sexo] == 2) {
  1328. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} supervisora de entregas. [SF]", Name);
  1329. SCMA(0xFFFFFFFF, Msg); }}
  1330.  
  1331. else if(APlayerData[playerid][StatsCourierJobs] >= 0){
  1332. if (APlayerData[playerid][Sexo] == 0) {
  1333. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} iniciante. [SF]", Name);
  1334. SCMA(0xFFFFFFFF, Msg); }
  1335.  
  1336. if (APlayerData[playerid][Sexo] == 1) {
  1337. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} iniciante. [SF]", Name);
  1338. SCMA(0xFFFFFFFF, Msg); }
  1339.  
  1340. if (APlayerData[playerid][Sexo] == 2) {
  1341. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} iniciante. [SF]", Name);
  1342. SCMA(0xFFFFFFFF, Msg); }}
  1343. }
  1344. case 2:
  1345. {
  1346. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1050.5, 1931.0, 10.9, 270.0, 0, 0, 0, 0, 0, 0);
  1347. SendClientMessage(playerid, 0xFF0000FF, "{FF0080}Você foi para o resgate de {FFFFFF}Whitewood. {00FF00}R${FFFFFF}100 {FF0080}foram custados a você!");
  1348. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1349. //Reduce the player's money by 200
  1350. Ganhos(playerid, -100, 0);
  1351.  
  1352. if(APlayerData[playerid][StatsCourierJobs] >= 1000){
  1353. if (APlayerData[playerid][Sexo] == 0) {
  1354. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} chefe do almoxarifado. [LV]", Name);
  1355. SCMA(0xFFFFFFFF, Msg); }
  1356.  
  1357. if (APlayerData[playerid][Sexo] == 1) {
  1358. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} chefe do almoxarifado. [LV]", Name);
  1359. SCMA(0xFFFFFFFF, Msg); }
  1360.  
  1361. if (APlayerData[playerid][Sexo] == 2) {
  1362. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} chefe do almoxarifado. [LV]", Name);
  1363. SCMA(0xFFFFFFFF, Msg); }}
  1364.  
  1365. else if(APlayerData[playerid][StatsCourierJobs] >= 500){
  1366. if (APlayerData[playerid][Sexo] == 0) {
  1367. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} gerente. [LV]", Name);
  1368. SCMA(0xFFFFFFFF, Msg); }
  1369.  
  1370. if (APlayerData[playerid][Sexo] == 1) {
  1371. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} gerente. [LV]", Name);
  1372. SCMA(0xFFFFFFFF, Msg); }
  1373.  
  1374. if (APlayerData[playerid][Sexo] == 2) {
  1375. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} gerente. [LV]", Name);
  1376. SCMA(0xFFFFFFFF, Msg); }}
  1377.  
  1378.  
  1379. else if(APlayerData[playerid][StatsCourierJobs] >= 100){
  1380.  
  1381. if (APlayerData[playerid][Sexo] == 0) {
  1382. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} supervisor de entregas. [LV]", Name);
  1383. SCMA(0xFFFFFFFF, Msg); }
  1384.  
  1385. if (APlayerData[playerid][Sexo] == 1) {
  1386. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} supervisor de entregas. [LV]", Name);
  1387. SCMA(0xFFFFFFFF, Msg); }
  1388.  
  1389. if (APlayerData[playerid][Sexo] == 2) {
  1390. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} supervisora de entregas. [LV]", Name);
  1391. SCMA(0xFFFFFFFF, Msg); }}
  1392.  
  1393. else if(APlayerData[playerid][StatsCourierJobs] >= 0){
  1394. if (APlayerData[playerid][Sexo] == 0) {
  1395. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} iniciante. [LV]", Name);
  1396. SCMA(0xFFFFFFFF, Msg); }
  1397.  
  1398. if (APlayerData[playerid][Sexo] == 1) {
  1399. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como um {FF0080}agente dos correios{FFFFFF} iniciante. [LV]", Name);
  1400. SCMA(0xFFFFFFFF, Msg); }
  1401.  
  1402. if (APlayerData[playerid][Sexo] == 2) {
  1403. format(Msg, 128, "{FFFFFF}» {FF0080}%s{FFFFFF} entrou como uma {FF0080}agente dos correios{FFFFFF} iniciante. [LV]", Name);
  1404. SCMA(0xFFFFFFFF, Msg); }}
  1405. }
  1406. case 3:
  1407. {
  1408. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  1409. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  1410. }
  1411. case 4:
  1412. {
  1413. new HouseList[1000];
  1414. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  1415. {
  1416.  
  1417. if (APlayerData[playerid][Houses][i] != 0)
  1418. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  1419. else
  1420. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  1421. }
  1422. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  1423. }
  1424. case 5:
  1425. {
  1426. new BusinessList[1000], BusID, BusType, Earnings;
  1427. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  1428. {
  1429.  
  1430. BusID = APlayerData[playerid][Business][i];
  1431. if (BusID != 0)
  1432. {
  1433. BusType = ABusinessData[BusID][BusinessType];
  1434. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  1435. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  1436. }
  1437. else
  1438. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  1439. }
  1440. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  1441. }
  1442. }
  1443. }
  1444. case ClassAssistance:
  1445. {
  1446.  
  1447. switch (listitem)
  1448. {
  1449.  
  1450. case 0:
  1451. {
  1452. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 211.25, 24.75, 2.6, 270.0, 0, 0, 0, 0, 0, 0);
  1453. SendClientMessage(playerid, 0xFF0000FF, "{80FF00}Você foi para o resgate de {FFFFFF}Blueberry. {00FF00}R${FFFFFF}100 {80FF00}foram custados a você!");
  1454. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1455. //Reduce the player's money by 200
  1456. Ganhos(playerid, -100, 0);
  1457.  
  1458. if(APlayerData[playerid][StatsAssistance] >= 1000){
  1459. if (APlayerData[playerid][Sexo] == 0) {
  1460. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} chefe de manutenção mecânica. [BB]", Name);
  1461. SCMA(0xFFFFFFFF, Msg); }
  1462.  
  1463. if (APlayerData[playerid][Sexo] == 1) {
  1464. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} chefe de manutenção mecânica. [BB]", Name);
  1465. SCMA(0xFFFFFFFF, Msg); }
  1466.  
  1467. if (APlayerData[playerid][Sexo] == 2) {
  1468. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como uma {80FF00}mecânica{FFFFFF} chefe de manutenção mecânica. [BB]", Name);
  1469. SCMA(0xFFFFFFFF, Msg); }}
  1470.  
  1471. else if(APlayerData[playerid][StatsAssistance] >= 500){
  1472. if (APlayerData[playerid][Sexo] == 0) {
  1473. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} encarregado da manutenção. [BB]", Name);
  1474. SCMA(0xFFFFFFFF, Msg); }
  1475.  
  1476. if (APlayerData[playerid][Sexo] == 1) {
  1477. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} encarregado da manutenção. [BB]", Name);
  1478. SCMA(0xFFFFFFFF, Msg); }
  1479.  
  1480. if (APlayerData[playerid][Sexo] == 2) {
  1481. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como uma {80FF00}mecânica{FFFFFF} encarregada da manutenção. [BB]", Name);
  1482. SCMA(0xFFFFFFFF, Msg); }}
  1483.  
  1484.  
  1485. else if(APlayerData[playerid][StatsAssistance] >= 100){
  1486.  
  1487. if (APlayerData[playerid][Sexo] == 0) {
  1488. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} profissional automotivo. [BB]", Name);
  1489. SCMA(0xFFFFFFFF, Msg); }
  1490.  
  1491. if (APlayerData[playerid][Sexo] == 1) {
  1492. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} profissional automotivo. [BB]", Name);
  1493. SCMA(0xFFFFFFFF, Msg); }
  1494.  
  1495. if (APlayerData[playerid][Sexo] == 2) {
  1496. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como uma {80FF00}mecânica{FFFFFF} profissional automotivo. [BB]", Name);
  1497. SCMA(0xFFFFFFFF, Msg); }}
  1498.  
  1499. else if(APlayerData[playerid][StatsAssistance] >= 0){
  1500. if (APlayerData[playerid][Sexo] == 0) {
  1501. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} iniciante. [BB]", Name);
  1502. SCMA(0xFFFFFFFF, Msg); }
  1503.  
  1504. if (APlayerData[playerid][Sexo] == 1) {
  1505. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} iniciante. [BB]", Name);
  1506. SCMA(0xFFFFFFFF, Msg); }
  1507.  
  1508. if (APlayerData[playerid][Sexo] == 2) {
  1509. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como uma {80FF00}mecânica{FFFFFF} iniciante. [BB]", Name);
  1510. SCMA(0xFFFFFFFF, Msg); }}
  1511.  
  1512.  
  1513. }
  1514. case 1:
  1515. {
  1516. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 2026.2931,-1879.5952,13.5469,91.5325, 0, 0, 0, 0, 0, 0);
  1517. SendClientMessage(playerid, 0xFF0000FF, "{80FF00}Você foi para o resgate de {FFFFFF}Willowfield. {00FF00}R${FFFFFF}100 {80FF00}foram custados a você!");
  1518. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1519. //Reduce the player's money by 200
  1520. Ganhos(playerid, -100, 0);
  1521.  
  1522. if(APlayerData[playerid][StatsAssistance] >= 1000){
  1523. if (APlayerData[playerid][Sexo] == 0) {
  1524. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} chefe de manutenção mecânica. [LS]", Name);
  1525. SCMA(0xFFFFFFFF, Msg); }
  1526.  
  1527. if (APlayerData[playerid][Sexo] == 1) {
  1528. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} chefe de manutenção mecânica. [LS]", Name);
  1529. SCMA(0xFFFFFFFF, Msg); }
  1530.  
  1531. if (APlayerData[playerid][Sexo] == 2) {
  1532. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como uma {80FF00}mecânica{FFFFFF} chefe de manutenção mecânica. [LS]", Name);
  1533. SCMA(0xFFFFFFFF, Msg); }}
  1534.  
  1535. else if(APlayerData[playerid][StatsAssistance] >= 500){
  1536. if (APlayerData[playerid][Sexo] == 0) {
  1537. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} encarregado da manutenção. [LS]", Name);
  1538. SCMA(0xFFFFFFFF, Msg); }
  1539.  
  1540. if (APlayerData[playerid][Sexo] == 1) {
  1541. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} encarregado da manutenção. [LS]", Name);
  1542. SCMA(0xFFFFFFFF, Msg); }
  1543.  
  1544. if (APlayerData[playerid][Sexo] == 2) {
  1545. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como uma {80FF00}mecânica{FFFFFF} encarregada da manutenção. [LS]", Name);
  1546. SCMA(0xFFFFFFFF, Msg); }}
  1547.  
  1548.  
  1549. else if(APlayerData[playerid][StatsAssistance] >= 100){
  1550.  
  1551. if (APlayerData[playerid][Sexo] == 0) {
  1552. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} profissional automotivo. [LS]", Name);
  1553. SCMA(0xFFFFFFFF, Msg); }
  1554.  
  1555. if (APlayerData[playerid][Sexo] == 1) {
  1556. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} profissional automotivo. [LS]", Name);
  1557. SCMA(0xFFFFFFFF, Msg); }
  1558.  
  1559. if (APlayerData[playerid][Sexo] == 2) {
  1560. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como uma {80FF00}mecânica{FFFFFF} profissional automotivo. [LS]", Name);
  1561. SCMA(0xFFFFFFFF, Msg); }}
  1562.  
  1563. else if(APlayerData[playerid][StatsAssistance] >= 0){
  1564. if (APlayerData[playerid][Sexo] == 0) {
  1565. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} iniciante. [LS]", Name);
  1566. SCMA(0xFFFFFFFF, Msg); }
  1567.  
  1568. if (APlayerData[playerid][Sexo] == 1) {
  1569. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como um {80FF00}mecânico{FFFFFF} iniciante. [LS]", Name);
  1570. SCMA(0xFFFFFFFF, Msg); }
  1571.  
  1572. if (APlayerData[playerid][Sexo] == 2) {
  1573. format(Msg, 128, "{FFFFFF}» {80FF00}%s{FFFFFF} entrou como uma {80FF00}mecânica{FFFFFF} iniciante. [LS]", Name);
  1574. SCMA(0xFFFFFFFF, Msg); }}
  1575. }
  1576. case 2:
  1577. {
  1578. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  1579. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  1580. }
  1581. case 3:
  1582. {
  1583. new HouseList[1000];
  1584. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  1585. {
  1586.  
  1587. if (APlayerData[playerid][Houses][i] != 0)
  1588. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  1589. else
  1590. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  1591. }
  1592. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  1593. }
  1594. case 4:
  1595. {
  1596. new BusinessList[1000], BusID, BusType, Earnings;
  1597. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  1598. {
  1599.  
  1600. BusID = APlayerData[playerid][Business][i];
  1601. if (BusID != 0)
  1602. {
  1603. BusType = ABusinessData[BusID][BusinessType];
  1604. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  1605. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  1606. }
  1607. else
  1608. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  1609. }
  1610. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  1611. }
  1612. }
  1613. }
  1614. case ClassPizza:
  1615. {
  1616.  
  1617. // Set the spawn coordinates based on the selection in the list
  1618. switch (listitem)
  1619. {
  1620.  
  1621. case 0:
  1622. {
  1623. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 2301.2170,2571.4937,10.8219, 0.0, 0, 0, 0, 0, 0, 0);
  1624. SendClientMessage(playerid, 0xFF0000FF, "{EECFA1}Você foi para o resgate de {FFFFFF}Julius North. {00FF00}R${FFFFFF}100 {EECFA1}foram custados a você!");
  1625. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1626. //Reduce the player's money by 200
  1627. Ganhos(playerid, -100, 0);
  1628.  
  1629. if(APlayerData[playerid][StatsPizzaJobs] >= 1000){
  1630. if (APlayerData[playerid][Sexo] == 0) {
  1631. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como um {EECFA1}motoboy{FFFFFF} rei dos deliverys. [LV]", Name);
  1632. SCMA(0xFFFFFFFF, Msg); }
  1633.  
  1634. if (APlayerData[playerid][Sexo] == 1) {
  1635. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como um {EECFA1}motoboy{FFFFFF} rei dos deliverys. [LV]", Name);
  1636. SCMA(0xFFFFFFFF, Msg); }
  1637.  
  1638. if (APlayerData[playerid][Sexo] == 2) {
  1639. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como uma {EECFA1}motogirl{FFFFFF} rainha dos deliverys. [LV]", Name);
  1640. SCMA(0xFFFFFFFF, Msg); }}
  1641.  
  1642. else if(APlayerData[playerid][StatsPizzaJobs] >= 500){
  1643. if (APlayerData[playerid][Sexo] == 0) {
  1644. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como um {EECFA1}motoboy{FFFFFF} encarregado do app. [LV]", Name);
  1645. SCMA(0xFFFFFFFF, Msg); }
  1646.  
  1647. if (APlayerData[playerid][Sexo] == 1) {
  1648. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como um {EECFA1}motoboy{FFFFFF} encarregado do app. [LV]", Name);
  1649. SCMA(0xFFFFFFFF, Msg); }
  1650.  
  1651. if (APlayerData[playerid][Sexo] == 2) {
  1652. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como uma {EECFA1}motogirl{FFFFFF} encarregada do app. [LV]", Name);
  1653. SCMA(0xFFFFFFFF, Msg); }}
  1654.  
  1655.  
  1656. else if(APlayerData[playerid][StatsPizzaJobs] >= 100){
  1657.  
  1658. if (APlayerData[playerid][Sexo] == 0) {
  1659. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como um {EECFA1}motoboy{FFFFFF} secretário de delivery. [LV]", Name);
  1660. SCMA(0xFFFFFFFF, Msg); }
  1661.  
  1662. if (APlayerData[playerid][Sexo] == 1) {
  1663. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como um {EECFA1}motoboy{FFFFFF} secretário de delivery. [LV]", Name);
  1664. SCMA(0xFFFFFFFF, Msg); }
  1665.  
  1666. if (APlayerData[playerid][Sexo] == 2) {
  1667. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como uma {EECFA1}motogirl{FFFFFF} secretária de delivery. [LV]", Name);
  1668. SCMA(0xFFFFFFFF, Msg); }}
  1669.  
  1670. else if(APlayerData[playerid][StatsPizzaJobs] >= 0){
  1671. if (APlayerData[playerid][Sexo] == 0) {
  1672. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como um {EECFA1}motoboy{FFFFFF} iniciante. [LV]", Name);
  1673. SCMA(0xFFFFFFFF, Msg); }
  1674.  
  1675. if (APlayerData[playerid][Sexo] == 1) {
  1676. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como um {EECFA1}motoboy{FFFFFF} iniciante. [LV]", Name);
  1677. SCMA(0xFFFFFFFF, Msg); }
  1678.  
  1679. if (APlayerData[playerid][Sexo] == 2) {
  1680. format(Msg, 128, "{FFFFFF}» {EECFA1}%s{FFFFFF} entrou como uma {EECFA1}motogirl{FFFFFF} iniciante. [LV]", Name);
  1681. SCMA(0xFFFFFFFF, Msg); }}
  1682. }
  1683. case 1:
  1684. {
  1685. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  1686. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  1687. }
  1688. case 2:
  1689. {
  1690. new HouseList[1000];
  1691. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  1692. {
  1693.  
  1694. if (APlayerData[playerid][Houses][i] != 0)
  1695. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  1696. else
  1697. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  1698. }
  1699. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  1700. }
  1701. case 3:
  1702. {
  1703. new BusinessList[1000], BusID, BusType, Earnings;
  1704. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  1705. {
  1706.  
  1707. BusID = APlayerData[playerid][Business][i];
  1708. if (BusID != 0)
  1709. {
  1710. BusType = ABusinessData[BusID][BusinessType];
  1711. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  1712. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  1713. }
  1714. else
  1715. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  1716. }
  1717. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  1718. }
  1719. }
  1720. }
  1721. case ClassMafia:
  1722. {
  1723.  
  1724. // Set the spawn coordinates based on the selection in the list
  1725. switch (listitem)
  1726. {
  1727.  
  1728. case 0:
  1729. {
  1730. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 957.9697,2451.6240,12.6584,179.9493, 0, 0, 0, 0, 0, 0);
  1731. SendClientMessage(playerid, 0xFF0000FF, "{8000FF}Você foi para o resgate de {FFFFFF}Whitewood Estates. {00FF00}R${FFFFFF}100 {8000FF}foram custados a você!");
  1732. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1733. SetCameraBehindPlayer(playerid);
  1734. //Reduce the player's money by 200
  1735. Ganhos(playerid, -100, 0);
  1736.  
  1737. if(APlayerData[playerid][StatsMafiaJobs] >= 1000){
  1738. if (APlayerData[playerid][Sexo] == 0) {
  1739. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} chefe do crime. [BS]", Name);
  1740. SCMA(0xFFFFFFFF, Msg); }
  1741.  
  1742. if (APlayerData[playerid][Sexo] == 1) {
  1743. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} chefe do crime. [BS]", Name);
  1744. SCMA(0xFFFFFFFF, Msg); }
  1745.  
  1746. if (APlayerData[playerid][Sexo] == 2) {
  1747. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} chefe do crime. [BS]", Name);
  1748. SCMA(0xFFFFFFFF, Msg); }}
  1749.  
  1750. else if(APlayerData[playerid][StatsMafiaJobs] >= 500){
  1751. if (APlayerData[playerid][Sexo] == 0) {
  1752. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} assaltante. [BS]", Name);
  1753. SCMA(0xFFFFFFFF, Msg); }
  1754.  
  1755. if (APlayerData[playerid][Sexo] == 1) {
  1756. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} assaltante. [BS]", Name);
  1757. SCMA(0xFFFFFFFF, Msg); }
  1758.  
  1759. if (APlayerData[playerid][Sexo] == 2) {
  1760. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} assaltante. [BS]", Name);
  1761. SCMA(0xFFFFFFFF, Msg); }}
  1762.  
  1763.  
  1764. else if(APlayerData[playerid][StatsMafiaJobs] >= 100){
  1765.  
  1766. if (APlayerData[playerid][Sexo] == 0) {
  1767. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} narcotraficante. [BS]", Name);
  1768. SCMA(0xFFFFFFFF, Msg); }
  1769.  
  1770. if (APlayerData[playerid][Sexo] == 1) {
  1771. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} narcotraficante. [BS]", Name);
  1772. SCMA(0xFFFFFFFF, Msg); }
  1773.  
  1774. if (APlayerData[playerid][Sexo] == 2) {
  1775. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} narcotraficante. [BS]", Name);
  1776. SCMA(0xFFFFFFFF, Msg); }}
  1777.  
  1778. else if(APlayerData[playerid][StatsMafiaJobs] >= 0){
  1779. if (APlayerData[playerid][Sexo] == 0) {
  1780. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} capanga. [BS]", Name);
  1781. SCMA(0xFFFFFFFF, Msg); }
  1782.  
  1783. if (APlayerData[playerid][Sexo] == 1) {
  1784. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} capanga. [BS]", Name);
  1785. SCMA(0xFFFFFFFF, Msg); }
  1786.  
  1787. if (APlayerData[playerid][Sexo] == 2) {
  1788. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} capanga. [BS]", Name);
  1789. SCMA(0xFFFFFFFF, Msg); }}
  1790.  
  1791. }
  1792. case 1:
  1793. {
  1794. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 2403.3577,-2346.1191,16.0481,43.9146, 0, 0, 0, 0, 0, 0);
  1795. SendClientMessage(playerid, 0xFF0000FF, "{8000FF}Você foi para o resgate de {FFFFFF}Ocean Docks. {00FF00}R${FFFFFF}100 {8000FF}foram custados a você!");
  1796. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1797. //Reduce the player's money by 200
  1798. Ganhos(playerid, -100, 0);
  1799.  
  1800. if(APlayerData[playerid][StatsMafiaJobs] >= 1000){
  1801. if (APlayerData[playerid][Sexo] == 0) {
  1802. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} chefe do crime. [LS]", Name);
  1803. SCMA(0xFFFFFFFF, Msg); }
  1804.  
  1805. if (APlayerData[playerid][Sexo] == 1) {
  1806. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} chefe do crime. [LS]", Name);
  1807. SCMA(0xFFFFFFFF, Msg); }
  1808.  
  1809. if (APlayerData[playerid][Sexo] == 2) {
  1810. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} chefe do crime. [LS]", Name);
  1811. SCMA(0xFFFFFFFF, Msg); }}
  1812.  
  1813. else if(APlayerData[playerid][StatsMafiaJobs] >= 500){
  1814. if (APlayerData[playerid][Sexo] == 0) {
  1815. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} assaltante. [LS]", Name);
  1816. SCMA(0xFFFFFFFF, Msg); }
  1817.  
  1818. if (APlayerData[playerid][Sexo] == 1) {
  1819. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} assaltante. [LS]", Name);
  1820. SCMA(0xFFFFFFFF, Msg); }
  1821.  
  1822. if (APlayerData[playerid][Sexo] == 2) {
  1823. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} assaltante. [LS]", Name);
  1824. SCMA(0xFFFFFFFF, Msg); }}
  1825.  
  1826.  
  1827. else if(APlayerData[playerid][StatsMafiaJobs] >= 100){
  1828.  
  1829. if (APlayerData[playerid][Sexo] == 0) {
  1830. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} narcotraficante. [LS]", Name);
  1831. SCMA(0xFFFFFFFF, Msg); }
  1832.  
  1833. if (APlayerData[playerid][Sexo] == 1) {
  1834. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} narcotraficante. [LS]", Name);
  1835. SCMA(0xFFFFFFFF, Msg); }
  1836.  
  1837. if (APlayerData[playerid][Sexo] == 2) {
  1838. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} narcotraficante. [LS]", Name);
  1839. SCMA(0xFFFFFFFF, Msg); }}
  1840.  
  1841. else if(APlayerData[playerid][StatsMafiaJobs] >= 0){
  1842. if (APlayerData[playerid][Sexo] == 0) {
  1843. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} capanga. [LS]", Name);
  1844. SCMA(0xFFFFFFFF, Msg); }
  1845.  
  1846. if (APlayerData[playerid][Sexo] == 1) {
  1847. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} capanga. [LS]", Name);
  1848. SCMA(0xFFFFFFFF, Msg); }
  1849.  
  1850. if (APlayerData[playerid][Sexo] == 2) {
  1851. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} capanga. [LS]", Name);
  1852. SCMA(0xFFFFFFFF, Msg); }}
  1853. }
  1854. case 2:
  1855. {
  1856. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -2929.3279,470.5910,8.3389,267.6602, 0, 0, 0, 0, 0, 0);
  1857. SendClientMessage(playerid, 0xFF0000FF, "{8000FF}Você foi para o resgate de {FFFFFF}Palisades. {00FF00}R${FFFFFF}100 {8000FF}foram custados a você!");
  1858. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1859. //Reduce the player's money by 200
  1860. Ganhos(playerid, -100, 0);
  1861.  
  1862. if(APlayerData[playerid][StatsMafiaJobs] >= 1000){
  1863. if (APlayerData[playerid][Sexo] == 0) {
  1864. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} chefe do crime. [SF]", Name);
  1865. SCMA(0xFFFFFFFF, Msg); }
  1866.  
  1867. if (APlayerData[playerid][Sexo] == 1) {
  1868. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} chefe do crime. [SF]", Name);
  1869. SCMA(0xFFFFFFFF, Msg); }
  1870.  
  1871. if (APlayerData[playerid][Sexo] == 2) {
  1872. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} chefe do crime. [SF]", Name);
  1873. SCMA(0xFFFFFFFF, Msg); }}
  1874.  
  1875. else if(APlayerData[playerid][StatsMafiaJobs] >= 500){
  1876. if (APlayerData[playerid][Sexo] == 0) {
  1877. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} assaltante. [SF]", Name);
  1878. SCMA(0xFFFFFFFF, Msg); }
  1879.  
  1880. if (APlayerData[playerid][Sexo] == 1) {
  1881. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} assaltante. [SF]", Name);
  1882. SCMA(0xFFFFFFFF, Msg); }
  1883.  
  1884. if (APlayerData[playerid][Sexo] == 2) {
  1885. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} assaltante. [SF]", Name);
  1886. SCMA(0xFFFFFFFF, Msg); }}
  1887.  
  1888.  
  1889. else if(APlayerData[playerid][StatsMafiaJobs] >= 100){
  1890.  
  1891. if (APlayerData[playerid][Sexo] == 0) {
  1892. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} narcotraficante. [SF]", Name);
  1893. SCMA(0xFFFFFFFF, Msg); }
  1894.  
  1895. if (APlayerData[playerid][Sexo] == 1) {
  1896. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} narcotraficante. [SF]", Name);
  1897. SCMA(0xFFFFFFFF, Msg); }
  1898.  
  1899. if (APlayerData[playerid][Sexo] == 2) {
  1900. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} narcotraficante. [SF]", Name);
  1901. SCMA(0xFFFFFFFF, Msg); }}
  1902.  
  1903. else if(APlayerData[playerid][StatsMafiaJobs] >= 0){
  1904. if (APlayerData[playerid][Sexo] == 0) {
  1905. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} capanga. [SF]", Name);
  1906. SCMA(0xFFFFFFFF, Msg); }
  1907.  
  1908. if (APlayerData[playerid][Sexo] == 1) {
  1909. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como um {8000FF}mafioso{FFFFFF} capanga. [SF]", Name);
  1910. SCMA(0xFFFFFFFF, Msg); }
  1911.  
  1912. if (APlayerData[playerid][Sexo] == 2) {
  1913. format(Msg, 128, "{FFFFFF}» {8000FF}%s{FFFFFF} entrou como uma {8000FF}mafiosa{FFFFFF} capanga. [SF]", Name);
  1914. SCMA(0xFFFFFFFF, Msg); }}
  1915. }
  1916. case 3:
  1917. {
  1918. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  1919. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  1920. }
  1921. case 4:
  1922. {
  1923. new HouseList[1000];
  1924. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  1925. {
  1926.  
  1927. if (APlayerData[playerid][Houses][i] != 0)
  1928. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  1929. else
  1930. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  1931. }
  1932. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  1933. }
  1934. case 5:
  1935. {
  1936. new BusinessList[1000], BusID, BusType, Earnings;
  1937. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  1938. {
  1939.  
  1940. BusID = APlayerData[playerid][Business][i];
  1941. if (BusID != 0)
  1942. {
  1943. BusType = ABusinessData[BusID][BusinessType];
  1944. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  1945. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  1946. }
  1947. else
  1948. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  1949. }
  1950. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  1951. }
  1952. }
  1953. }
  1954. case ClassMedico:
  1955. {
  1956.  
  1957. // Set the spawn coordinates based on the selection in the list
  1958. switch (listitem)
  1959. {
  1960. case 0:
  1961. {
  1962. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1608.9668, 1818.2228,10.8203, 100.0, 0, 0, 0, 0, 0, 0);
  1963. SendClientMessage(playerid, 0xFF0000FF, "{FA8072}Você foi para o resgate de {FFFFFF}Redsands West. {00FF00}R${FFFFFF}100 {FA8072}foram custados a você!");
  1964. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  1965. //Reduce the player's money by 200
  1966. Ganhos(playerid, -100, 0);
  1967.  
  1968. if(APlayerData[playerid][StatsMedico] >= 1000){
  1969. if (APlayerData[playerid][Sexo] == 0) {
  1970. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como um {FA8072}médico{FFFFFF} cirurgião. [LS]", Name);
  1971. SCMA(0xFFFFFFFF, Msg); }
  1972.  
  1973. if (APlayerData[playerid][Sexo] == 1) {
  1974. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como um {FA8072}médico{FFFFFF} cirurgião. [LS]", Name);
  1975. SCMA(0xFFFFFFFF, Msg); }
  1976.  
  1977. if (APlayerData[playerid][Sexo] == 2) {
  1978. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como uma {FA8072}médica{FFFFFF} cirurgiã. [LS]", Name);
  1979. SCMA(0xFFFFFFFF, Msg); }}
  1980.  
  1981. else if(APlayerData[playerid][StatsMedico] >= 500){
  1982. if (APlayerData[playerid][Sexo] == 0) {
  1983. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como um {FA8072}médico{FFFFFF} experiente. [LS]", Name);
  1984. SCMA(0xFFFFFFFF, Msg); }
  1985.  
  1986. if (APlayerData[playerid][Sexo] == 1) {
  1987. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como um {FA8072}médico{FFFFFF} experiente. [LS]", Name);
  1988. SCMA(0xFFFFFFFF, Msg); }
  1989.  
  1990. if (APlayerData[playerid][Sexo] == 2) {
  1991. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como uma {FA8072}médica{FFFFFF} experiente. [LS]", Name);
  1992. SCMA(0xFFFFFFFF, Msg); }}
  1993.  
  1994.  
  1995. else if(APlayerData[playerid][StatsMedico] >= 100){
  1996.  
  1997. if (APlayerData[playerid][Sexo] == 0) {
  1998. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como um {FA8072}médico{FFFFFF} certificado. [LS]", Name);
  1999. SCMA(0xFFFFFFFF, Msg); }
  2000.  
  2001. if (APlayerData[playerid][Sexo] == 1) {
  2002. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como um {FA8072}médico{FFFFFF} certificado. [LS]", Name);
  2003. SCMA(0xFFFFFFFF, Msg); }
  2004.  
  2005. if (APlayerData[playerid][Sexo] == 2) {
  2006. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como uma {FA8072}médica{FFFFFF} certificada. [LS]", Name);
  2007. SCMA(0xFFFFFFFF, Msg); }}
  2008.  
  2009. else if(APlayerData[playerid][StatsMedico] >= 0){
  2010. if (APlayerData[playerid][Sexo] == 0) {
  2011. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como um {FA8072}médico{FFFFFF} estagiário. [LS]", Name);
  2012. SCMA(0xFFFFFFFF, Msg); }
  2013.  
  2014. if (APlayerData[playerid][Sexo] == 1) {
  2015. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como um {FA8072}médico{FFFFFF} estagiário. [LS]", Name);
  2016. SCMA(0xFFFFFFFF, Msg); }
  2017.  
  2018. if (APlayerData[playerid][Sexo] == 2) {
  2019. format(Msg, 128, "{FFFFFF}» {FA8072}%s{FFFFFF} entrou como uma {FA8072}médica{FFFFFF} estagiária. [LS]", Name);
  2020. SCMA(0xFFFFFFFF, Msg); }}
  2021. }
  2022. case 1:
  2023. {
  2024. new HouseList[1000];
  2025. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  2026. {
  2027.  
  2028. if (APlayerData[playerid][Houses][i] != 0)
  2029. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  2030. else
  2031. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  2032. }
  2033. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  2034. }
  2035. case 2:
  2036. {
  2037. new BusinessList[1000], BusID, BusType, Earnings;
  2038. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  2039. {
  2040.  
  2041. BusID = APlayerData[playerid][Business][i];
  2042. if (BusID != 0)
  2043. {
  2044. BusType = ABusinessData[BusID][BusinessType];
  2045. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  2046. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  2047. }
  2048. else
  2049. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  2050. }
  2051. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  2052. }
  2053. }
  2054. }
  2055. case ClassRoadWorker:
  2056. {
  2057.  
  2058. // Set the spawn coordinates based on the selection in the list
  2059. switch (listitem)
  2060. {
  2061. case 0:
  2062. {
  2063. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -1866.25, -1715.25, 22.7, 125.0, 0, 0, 0, 0, 0, 0);
  2064. SendClientMessage(playerid, 0xFF0000FF, "{B0C4DE}Você foi para o resgate de {FFFFFF}WhetStone. {00FF00}R${FFFFFF}100 {B0C4DE}foram custados a você!");
  2065. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  2066. //Reduce the player's money by 200
  2067. Ganhos(playerid, -100, 0);
  2068.  
  2069. if(APlayerData[playerid][StatsRoadworkerJobs] >= 1000){
  2070. if (APlayerData[playerid][Sexo] == 0) {
  2071. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como um {B0C4DE}operário{FFFFFF} rei dos maquinários. [WS]", Name);
  2072. SCMA(0xFFFFFFFF, Msg); }
  2073.  
  2074. if (APlayerData[playerid][Sexo] == 1) {
  2075. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como um {B0C4DE}operário{FFFFFF} rei dos maquinários. [WS]", Name);
  2076. SCMA(0xFFFFFFFF, Msg); }
  2077.  
  2078. if (APlayerData[playerid][Sexo] == 2) {
  2079. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como uma {B0C4DE}operária{FFFFFF} rainha dos maquinários. [WS]", Name);
  2080. SCMA(0xFFFFFFFF, Msg); }}
  2081.  
  2082. else if(APlayerData[playerid][StatsRoadworkerJobs] >= 500){
  2083. if (APlayerData[playerid][Sexo] == 0) {
  2084. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como um {B0C4DE}operário{FFFFFF} diretor de reparos. [WS]", Name);
  2085. SCMA(0xFFFFFFFF, Msg); }
  2086.  
  2087. if (APlayerData[playerid][Sexo] == 1) {
  2088. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como um {B0C4DE}operário{FFFFFF} diretor de reparos. [WS]", Name);
  2089. SCMA(0xFFFFFFFF, Msg); }
  2090.  
  2091. if (APlayerData[playerid][Sexo] == 2) {
  2092. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como uma {B0C4DE}operária{FFFFFF} diretor de reparos. [WS]", Name);
  2093. SCMA(0xFFFFFFFF, Msg); }}
  2094.  
  2095.  
  2096. else if(APlayerData[playerid][StatsRoadworkerJobs] >= 100){
  2097.  
  2098. if (APlayerData[playerid][Sexo] == 0) {
  2099. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como um {B0C4DE}operário{FFFFFF} supervisor de radares. [WS]", Name);
  2100. SCMA(0xFFFFFFFF, Msg); }
  2101.  
  2102. if (APlayerData[playerid][Sexo] == 1) {
  2103. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como um {B0C4DE}operário{FFFFFF} supervisor de radares. [WS]", Name);
  2104. SCMA(0xFFFFFFFF, Msg); }
  2105.  
  2106. if (APlayerData[playerid][Sexo] == 2) {
  2107. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como uma {B0C4DE}operária{FFFFFF} supervisora de radares. [WS]", Name);
  2108. SCMA(0xFFFFFFFF, Msg); }}
  2109.  
  2110. else if(APlayerData[playerid][StatsRoadworkerJobs] >= 0){
  2111. if (APlayerData[playerid][Sexo] == 0) {
  2112. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como um {B0C4DE}operário{FFFFFF} auxiliar em reparos. [WS]", Name);
  2113. SCMA(0xFFFFFFFF, Msg); }
  2114.  
  2115. if (APlayerData[playerid][Sexo] == 1) {
  2116. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como um {B0C4DE}operário{FFFFFF} auxiliar em reparos. [WS]", Name);
  2117. SCMA(0xFFFFFFFF, Msg); }
  2118.  
  2119. if (APlayerData[playerid][Sexo] == 2) {
  2120. format(Msg, 128, "{FFFFFF}» {B0C4DE}%s{FFFFFF} entrou como uma {B0C4DE}operária{FFFFFF} auxiliar em reparos. [WS]", Name);
  2121. SCMA(0xFFFFFFFF, Msg); }}
  2122. }
  2123. case 1:
  2124. {
  2125. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  2126. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  2127. }
  2128. case 2:
  2129. {
  2130. new HouseList[1000];
  2131. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  2132. {
  2133.  
  2134. if (APlayerData[playerid][Houses][i] != 0)
  2135. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  2136. else
  2137. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  2138. }
  2139. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  2140. }
  2141. case 3:
  2142. {
  2143. new BusinessList[1000], BusID, BusType, Earnings;
  2144. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  2145. {
  2146.  
  2147. BusID = APlayerData[playerid][Business][i];
  2148. if (BusID != 0)
  2149. {
  2150. BusType = ABusinessData[BusID][BusinessType];
  2151. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  2152. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  2153. }
  2154. else
  2155. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  2156. }
  2157. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  2158. }
  2159. }
  2160. }
  2161. case ClassTaxiDriver:
  2162. {
  2163.  
  2164. // Set the spawn coordinates based on the selection in the list
  2165. switch (listitem)
  2166. {
  2167.  
  2168. case 0:
  2169. {
  2170. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1650.5203,-1124.4360,23.9063,274.0598, 0, 0, 0, 0, 0, 0);
  2171. SendClientMessage(playerid, 0xFF0000FF, "{FFFF00}Você foi para o resgate de {FFFFFF}Mulholland. {00FF00}R${FFFFFF}100 {FFFF00}foram custados a você!");
  2172. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  2173. //Reduce the player's money by 200
  2174. Ganhos(playerid, -100, 0);
  2175.  
  2176. if(APlayerData[playerid][StatsTaxiDriverJobs] >= 1000){
  2177. if (APlayerData[playerid][Sexo] == 0) {
  2178. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} chefe em perímetro urbano. [LS]", Name);
  2179. SCMA(0xFFFFFFFF, Msg); }
  2180.  
  2181. if (APlayerData[playerid][Sexo] == 1) {
  2182. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} chefe em perímetro urbano. [LS]", Name);
  2183. SCMA(0xFFFFFFFF, Msg); }
  2184.  
  2185. if (APlayerData[playerid][Sexo] == 2) {
  2186. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como uma {FFFF00}taxista{FFFFFF} chefe em perímetro urbano. [LS]", Name);
  2187. SCMA(0xFFFFFFFF, Msg); }}
  2188.  
  2189. else if(APlayerData[playerid][StatsTaxiDriverJobs] >= 500){
  2190. if (APlayerData[playerid][Sexo] == 0) {
  2191. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} veterano em taximetro. [LS]", Name);
  2192. SCMA(0xFFFFFFFF, Msg); }
  2193.  
  2194. if (APlayerData[playerid][Sexo] == 1) {
  2195. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} veterano em taximetro. [LS]", Name);
  2196. SCMA(0xFFFFFFFF, Msg); }
  2197.  
  2198. if (APlayerData[playerid][Sexo] == 2) {
  2199. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como uma {FFFF00}taxista{FFFFFF} veterana em taximetro. [LS]", Name);
  2200. SCMA(0xFFFFFFFF, Msg); }}
  2201.  
  2202.  
  2203. else if(APlayerData[playerid][StatsTaxiDriverJobs] >= 100){
  2204.  
  2205. if (APlayerData[playerid][Sexo] == 0) {
  2206. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} profissional em 4 rodas. [LS]", Name);
  2207. SCMA(0xFFFFFFFF, Msg); }
  2208.  
  2209. if (APlayerData[playerid][Sexo] == 1) {
  2210. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} profissional em 4 rodas. [LS]", Name);
  2211. SCMA(0xFFFFFFFF, Msg); }
  2212.  
  2213. if (APlayerData[playerid][Sexo] == 2) {
  2214. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como uma {FFFF00}taxista{FFFFFF} profissional em 4 rodas. [LS]", Name);
  2215. SCMA(0xFFFFFFFF, Msg); }}
  2216.  
  2217. else if(APlayerData[playerid][StatsTaxiDriverJobs] >= 0){
  2218. if (APlayerData[playerid][Sexo] == 0) {
  2219. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} iniciante. [LS]", Name);
  2220. SCMA(0xFFFFFFFF, Msg); }
  2221.  
  2222. if (APlayerData[playerid][Sexo] == 1) {
  2223. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} iniciante. [LS]", Name);
  2224. SCMA(0xFFFFFFFF, Msg); }
  2225.  
  2226. if (APlayerData[playerid][Sexo] == 2) {
  2227. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como uma {FFFF00}taxista{FFFFFF} iniciante. [LS]", Name);
  2228. SCMA(0xFFFFFFFF, Msg); }}
  2229. }
  2230. case 1:
  2231. {
  2232. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1138.9193,1397.9423,5.8203,355.8166, 0, 0, 0, 0, 0, 0);
  2233. SendClientMessage(playerid, 0xFF0000FF, "{FFFF00}Você foi para o resgate de {FFFFFF}Blackfield. {00FF00}R${FFFFFF}100 {FFFF00}foram custados a você!");
  2234. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  2235. //Reduce the player's money by 200
  2236. Ganhos(playerid, -100, 0);
  2237.  
  2238. if(APlayerData[playerid][StatsTaxiDriverJobs] >= 1000){
  2239. if (APlayerData[playerid][Sexo] == 0) {
  2240. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} chefe em perímetro urbano. [LV]", Name);
  2241. SCMA(0xFFFFFFFF, Msg); }
  2242.  
  2243. if (APlayerData[playerid][Sexo] == 1) {
  2244. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} chefe em perímetro urbano. [LV]", Name);
  2245. SCMA(0xFFFFFFFF, Msg); }
  2246.  
  2247. if (APlayerData[playerid][Sexo] == 2) {
  2248. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como uma {FFFF00}taxista{FFFFFF} chefe em perímetro urbano. [LV]", Name);
  2249. SCMA(0xFFFFFFFF, Msg); }}
  2250.  
  2251. else if(APlayerData[playerid][StatsTaxiDriverJobs] >= 500){
  2252. if (APlayerData[playerid][Sexo] == 0) {
  2253. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} veterano em taximetro. [LV]", Name);
  2254. SCMA(0xFFFFFFFF, Msg); }
  2255.  
  2256. if (APlayerData[playerid][Sexo] == 1) {
  2257. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} veterano em taximetro. [LV]", Name);
  2258. SCMA(0xFFFFFFFF, Msg); }
  2259.  
  2260. if (APlayerData[playerid][Sexo] == 2) {
  2261. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como uma {FFFF00}taxista{FFFFFF} veterana em taximetro. [LV]", Name);
  2262. SCMA(0xFFFFFFFF, Msg); }}
  2263.  
  2264.  
  2265. else if(APlayerData[playerid][StatsTaxiDriverJobs] >= 100){
  2266.  
  2267. if (APlayerData[playerid][Sexo] == 0) {
  2268. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} profissional em 4 rodas. [LV]", Name);
  2269. SCMA(0xFFFFFFFF, Msg); }
  2270.  
  2271. if (APlayerData[playerid][Sexo] == 1) {
  2272. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} profissional em 4 rodas. [LV]", Name);
  2273. SCMA(0xFFFFFFFF, Msg); }
  2274.  
  2275. if (APlayerData[playerid][Sexo] == 2) {
  2276. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como uma {FFFF00}taxista{FFFFFF} profissional em 4 rodas. [LV]", Name);
  2277. SCMA(0xFFFFFFFF, Msg); }}
  2278.  
  2279. else if(APlayerData[playerid][StatsTaxiDriverJobs] >= 0){
  2280. if (APlayerData[playerid][Sexo] == 0) {
  2281. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} iniciante. [LV]", Name);
  2282. SCMA(0xFFFFFFFF, Msg); }
  2283.  
  2284. if (APlayerData[playerid][Sexo] == 1) {
  2285. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como um {FFFF00}taxista{FFFFFF} iniciante. [LV]", Name);
  2286. SCMA(0xFFFFFFFF, Msg); }
  2287.  
  2288. if (APlayerData[playerid][Sexo] == 2) {
  2289. format(Msg, 128, "{FFFFFF}» {FFFF00}%s{FFFFFF} entrou como uma {FFFF00}taxista{FFFFFF} iniciante. [LV]", Name);
  2290. SCMA(0xFFFFFFFF, Msg); }}
  2291. }
  2292. case 2:
  2293. {
  2294. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  2295. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  2296. }
  2297. case 3:
  2298. {
  2299. new HouseList[1000];
  2300. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  2301. {
  2302.  
  2303. if (APlayerData[playerid][Houses][i] != 0)
  2304. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  2305. else
  2306. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  2307. }
  2308. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  2309. }
  2310. case 4:
  2311. {
  2312. new BusinessList[1000], BusID, BusType, Earnings;
  2313. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  2314. {
  2315.  
  2316. BusID = APlayerData[playerid][Business][i];
  2317. if (BusID != 0)
  2318. {
  2319. BusType = ABusinessData[BusID][BusinessType];
  2320. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  2321. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  2322. }
  2323. else
  2324. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  2325. }
  2326. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  2327. }
  2328. }
  2329. }
  2330. case ClassMaritimoDriver:
  2331. {
  2332.  
  2333. // Set the spawn coordinates based on the selection in the list
  2334. switch (listitem)
  2335. {
  2336.  
  2337. case 0:
  2338. {
  2339. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 2724.6697,-2570.8540,3.0000,182.1634, 0, 0, 0, 0, 0, 0);
  2340. SendClientMessage(playerid, 0xFF0000FF, "{43CD80}Você foi para {FFFFFF}Ocean Docks. {00FF00}R${FFFFFF}100 {43CD80}foram custados a você!");
  2341. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  2342. //Reduce the player's money by 200
  2343. Ganhos(playerid, -100, 0);
  2344.  
  2345. if (APlayerData[playerid][Sexo] == 0) {
  2346. format(Msg, 128, "{FFFFFF}» {43CD80}%s{FFFFFF} entrou como um {43CD80}Transportador Maritimo{FFFFFF}. [LS]", Name);
  2347. SCMA(0xFFFFFFFF, Msg); }
  2348.  
  2349. if (APlayerData[playerid][Sexo] == 1) {
  2350. format(Msg, 128, "{FFFFFF}» {43CD80}%s{FFFFFF} entrou como um {43CD80}Transportador Maritimo{FFFFFF}. [LS]", Name);
  2351. SCMA(0xFFFFFFFF, Msg); }
  2352.  
  2353. if (APlayerData[playerid][Sexo] == 2) {
  2354. format(Msg, 128, "{FFFFFF}» {43CD80}%s{FFFFFF} entrou como uma {43CD80}Transportadora Maritima{FFFFFF}. [LS]", Name);
  2355. SCMA(0xFFFFFFFF, Msg); }
  2356. }
  2357. case 1:
  2358. {
  2359. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -2196.6345,2405.6853,4.9587,48.6595, 0, 0, 0, 0, 0, 0);
  2360. SendClientMessage(playerid, 0xFF0000FF, "{43CD80}Você foi para {FFFFFF}BaySide. {00FF00}R${FFFFFF}100 {43CD80}foram custados a você!");
  2361. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  2362. //Reduce the player's money by 200
  2363. Ganhos(playerid, -100, 0);
  2364.  
  2365. if (APlayerData[playerid][Sexo] == 0) {
  2366. format(Msg, 128, "{FFFFFF}» {43CD80}%s{FFFFFF} entrou como um {43CD80}Transportador Maritimo{FFFFFF}. [BS]", Name);
  2367. SCMA(0xFFFFFFFF, Msg); }
  2368.  
  2369. if (APlayerData[playerid][Sexo] == 1) {
  2370. format(Msg, 128, "{FFFFFF}» {43CD80}%s{FFFFFF} entrou como um {43CD80}Transportador Maritimo{FFFFFF}. [BS]", Name);
  2371. SCMA(0xFFFFFFFF, Msg); }
  2372.  
  2373. if (APlayerData[playerid][Sexo] == 2) {
  2374. format(Msg, 128, "{FFFFFF}» {43CD80}%s{FFFFFF} entrou como uma {43CD80}Transportadora Maritima{FFFFFF}. [BS]", Name);
  2375. SCMA(0xFFFFFFFF, Msg); }
  2376. }
  2377. case 2:
  2378. {
  2379. SetPlayerPos(playerid, 2164.2405, -1007.3947, 62.7968);
  2380. SCM(playerid, -1, "{FF0000}Você foi para a área de DM");
  2381. }
  2382. case 3:
  2383. {
  2384. new HouseList[1000];
  2385. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  2386. {
  2387.  
  2388. if (APlayerData[playerid][Houses][i] != 0)
  2389. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  2390. else
  2391. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  2392. }
  2393. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  2394. }
  2395. case 4:
  2396. {
  2397. new BusinessList[1000], BusID, BusType, Earnings;
  2398. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  2399. {
  2400.  
  2401. BusID = APlayerData[playerid][Business][i];
  2402. if (BusID != 0)
  2403. {
  2404. BusType = ABusinessData[BusID][BusinessType];
  2405. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  2406. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  2407. }
  2408. else
  2409. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  2410. }
  2411. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  2412. }
  2413. }
  2414. }
  2415. case ClassAdvogado:
  2416. {
  2417.  
  2418. // Set the spawn coordinates based on the selection in the list
  2419. switch (listitem)
  2420. {
  2421.  
  2422. case 0:
  2423. {
  2424. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1069.9181,-1775.3966,13.3411,0.6120, 0, 0, 0, 0, 0, 0);
  2425. SendClientMessage(playerid, 0xFF0000FF, "{DDA0DD}Você foi para o resgate de {FFFFFF}Conference Center. {00FF00}R${FFFFFF}100 {DDA0DD}foram custados a você!");
  2426. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  2427. //Reduce the player's money by 200
  2428. Ganhos(playerid, -100, 0);
  2429.  
  2430. if(APlayerData[playerid][StatusAdvogado] >= 1000){
  2431. if (APlayerData[playerid][Sexo] == 0) {
  2432. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como um {DDA0DD}advogado{FFFFFF} rei da advocacia. [LS]", Name);
  2433. SCMA(0xFFFFFFFF, Msg); }
  2434.  
  2435. if (APlayerData[playerid][Sexo] == 1) {
  2436. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como um {DDA0DD}advogado{FFFFFF} rei da advocacia. [LS]", Name);
  2437. SCMA(0xFFFFFFFF, Msg); }
  2438.  
  2439. if (APlayerData[playerid][Sexo] == 2) {
  2440. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como uma {DDA0DD}advogada{FFFFFF} rainha da advocacia. [LS]", Name);
  2441. SCMA(0xFFFFFFFF, Msg); }}
  2442.  
  2443. else if(APlayerData[playerid][StatusAdvogado] >= 500){
  2444. if (APlayerData[playerid][Sexo] == 0) {
  2445. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como um {DDA0DD}advogado{FFFFFF} juiz criminal. [LS]", Name);
  2446. SCMA(0xFFFFFFFF, Msg); }
  2447.  
  2448. if (APlayerData[playerid][Sexo] == 1) {
  2449. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como um {DDA0DD}advogado{FFFFFF} juiz criminal. [LS]", Name);
  2450. SCMA(0xFFFFFFFF, Msg); }
  2451.  
  2452. if (APlayerData[playerid][Sexo] == 2) {
  2453. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como uma {DDA0DD}advogada{FFFFFF} juiza criminal. [LS]", Name);
  2454. SCMA(0xFFFFFFFF, Msg); }}
  2455.  
  2456.  
  2457. else if(APlayerData[playerid][StatusAdvogado] >= 100){
  2458.  
  2459. if (APlayerData[playerid][Sexo] == 0) {
  2460. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como um {DDA0DD}advogado{FFFFFF} promotor. [LS]", Name);
  2461. SCMA(0xFFFFFFFF, Msg); }
  2462.  
  2463. if (APlayerData[playerid][Sexo] == 1) {
  2464. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como um {DDA0DD}advogado{FFFFFF} promotor. [LS]", Name);
  2465. SCMA(0xFFFFFFFF, Msg); }
  2466.  
  2467. if (APlayerData[playerid][Sexo] == 2) {
  2468. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como uma {DDA0DD}advogada{FFFFFF} promotora. [LS]", Name);
  2469. SCMA(0xFFFFFFFF, Msg); }}
  2470.  
  2471. else if(APlayerData[playerid][StatusAdvogado] >= 0){
  2472. if (APlayerData[playerid][Sexo] == 0) {
  2473. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como um {DDA0DD}advogado{FFFFFF} estágiaria de justiça. [LS]", Name);
  2474. SCMA(0xFFFFFFFF, Msg); }
  2475.  
  2476. if (APlayerData[playerid][Sexo] == 1) {
  2477. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como um {DDA0DD}advogado{FFFFFF} estágiaria de justiça. [LS]", Name);
  2478. SCMA(0xFFFFFFFF, Msg); }
  2479.  
  2480. if (APlayerData[playerid][Sexo] == 2) {
  2481. format(Msg, 128, "{FFFFFF}» {DDA0DD}%s{FFFFFF} entrou como uma {DDA0DD}advogada{FFFFFF} estágiaria de justiça. [LS]", Name);
  2482. SCMA(0xFFFFFFFF, Msg); }}
  2483. }
  2484. case 1:
  2485. {
  2486. new HouseList[1000];
  2487. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  2488. {
  2489.  
  2490. if (APlayerData[playerid][Houses][i] != 0)
  2491. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  2492. else
  2493. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  2494. }
  2495. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  2496. }
  2497. case 2:
  2498. {
  2499. new BusinessList[1000], BusID, BusType, Earnings;
  2500. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  2501. {
  2502.  
  2503. BusID = APlayerData[playerid][Business][i];
  2504. if (BusID != 0)
  2505. {
  2506. BusType = ABusinessData[BusID][BusinessType];
  2507. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  2508. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  2509. }
  2510. else
  2511. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  2512. }
  2513. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  2514. }
  2515. }
  2516. }
  2517. case ClassVigilante:
  2518. {
  2519.  
  2520. // Set the spawn coordinates based on the selection in the list
  2521. switch (listitem)
  2522. {
  2523.  
  2524. case 0:
  2525. {
  2526. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1766.1881,-1699.2538,13.4713,310.4645, 0, 0, 0, 0, 0, 0);
  2527. SendClientMessage(playerid, 0xFF0000FF, "{9BCD9B}Você foi para o resgate de {FFFFFF}Little Mexico. {00FF00}R${FFFFFF}100 {9BCD9B}foram custados a você!");
  2528. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  2529. //Reduce the player's money by 200
  2530. Ganhos(playerid, -100, 0);
  2531. CarroF[playerid] = true;
  2532.  
  2533. if (APlayerData[playerid][Sexo] == 0) {
  2534. format(Msg, 128, "{FFFFFF}» {9BCD9B}%s{FFFFFF} entrou como um {9BCD9B}vigilante{FFFFFF}. [LS]", Name);
  2535. SCMA(0xFFFFFFFF, Msg); }
  2536.  
  2537. if (APlayerData[playerid][Sexo] == 1) {
  2538. format(Msg, 128, "{FFFFFF}» {9BCD9B}%s{FFFFFF} entrou como um {9BCD9B}vigilante{FFFFFF}. [LS]", Name);
  2539. SCMA(0xFFFFFFFF, Msg); }
  2540.  
  2541. if (APlayerData[playerid][Sexo] == 2) {
  2542. format(Msg, 128, "{FFFFFF}» {9BCD9B}%s{FFFFFF} entrou como uma {9BCD9B}vigilante{FFFFFF}. [LS]", Name);
  2543. SCMA(0xFFFFFFFF, Msg); }
  2544. }
  2545. case 1:
  2546. {
  2547. new HouseList[1000];
  2548. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  2549. {
  2550.  
  2551. if (APlayerData[playerid][Houses][i] != 0)
  2552. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  2553. else
  2554. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  2555. }
  2556. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  2557. }
  2558. case 2:
  2559. {
  2560. new BusinessList[1000], BusID, BusType, Earnings;
  2561. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  2562. {
  2563.  
  2564. BusID = APlayerData[playerid][Business][i];
  2565. if (BusID != 0)
  2566. {
  2567. BusType = ABusinessData[BusID][BusinessType];
  2568. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  2569. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  2570. }
  2571. else
  2572. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  2573. }
  2574. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  2575. }
  2576. }
  2577. }
  2578. case ClassExercito:
  2579. {
  2580.  
  2581. // Set the spawn coordinates based on the selection in the list
  2582. switch (listitem)
  2583. {
  2584. case 0:
  2585. {
  2586. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -5609.4287,2928.5859,2.3450,222.5056, 0, 0, 0, 0, 0, 0);
  2587. SendClientMessage(playerid, 0xFF0000FF, "{228B22}Você foi para a {FFFFFF}Base. {00FF00}R${FFFFFF}100 {228B22}foram custados a você!");
  2588. SpawnPlayer(playerid);
  2589. //Reduce the player's money by 200
  2590. Ganhos(playerid, -100, 0);
  2591.  
  2592.  
  2593. if(APlayerData[playerid][StatsPoliceFined] >= 0){
  2594. if (APlayerData[playerid][Sexo] == 0) {
  2595. format(Msg, 128, "{FFFFFF}» {228B22}%s{FFFFFF} entrou como um {228B22}militar.{FFFFFF} [BASE]", Name);
  2596. SCMA(0xFFFFFFFF, Msg); }
  2597.  
  2598. if (APlayerData[playerid][Sexo] == 1) {
  2599. format(Msg, 128, "{FFFFFF}» {228B22}%s{FFFFFF} entrou como um {228B22}militar.{FFFFFF} [BASE]", Name);
  2600. SCMA(0xFFFFFFFF, Msg); }
  2601.  
  2602. if (APlayerData[playerid][Sexo] == 2) {
  2603. format(Msg, 128, "{FFFFFF}» {228B22}%s{FFFFFF} entrou como uma {228B22}militar.{FFFFFF} [BASE]", Name);
  2604. SCMA(0xFFFFFFFF, Msg); }}
  2605.  
  2606. }
  2607. case 1:
  2608. {
  2609. new HouseList[1000];
  2610. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  2611. {
  2612.  
  2613. if (APlayerData[playerid][Houses][i] != 0)
  2614. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  2615. else
  2616. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  2617. }
  2618. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  2619. }
  2620. case 2:
  2621. {
  2622. new BusinessList[1000], BusID, BusType, Earnings;
  2623. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  2624. {
  2625.  
  2626. BusID = APlayerData[playerid][Business][i];
  2627. if (BusID != 0)
  2628. {
  2629. BusType = ABusinessData[BusID][BusinessType];
  2630. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  2631. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  2632. }
  2633. else
  2634. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  2635. }
  2636. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  2637. }
  2638. }
  2639. }
  2640. case ClassBombeiro:
  2641. {
  2642.  
  2643. // Set the spawn coordinates based on the selection in the list
  2644. switch (listitem)
  2645. {
  2646.  
  2647. case 0:
  2648. {
  2649. SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -2326.5859,-87.3357,35.2993,53.6351, 0, 0, 0, 0, 0, 0);
  2650. SendClientMessage(playerid, 0xFF0000FF, "{B03060}Você foi para o resgate de {FFFFFF}Garcia. {00FF00}R${FFFFFF}100 {B03060}foram custados a você!");
  2651. SpawnPlayer(playerid); // Force the player to spawn at the requested coordinates
  2652. //Reduce the player's money by 200
  2653. Ganhos(playerid, -100, 0);
  2654.  
  2655. if (APlayerData[playerid][Sexo] == 0) {
  2656. format(Msg, 128, "{FFFFFF}» {B03060}%s{FFFFFF} entrou como um {B03060}bombeiro{FFFFFF}. [SF]", Name);
  2657. SCMA(0xFFFFFFFF, Msg); }
  2658.  
  2659. if (APlayerData[playerid][Sexo] == 1) {
  2660. format(Msg, 128, "{FFFFFF}» {B03060}%s{FFFFFF} entrou como um {B03060}bombeiro{FFFFFF}. [SF]", Name);
  2661. SCMA(0xFFFFFFFF, Msg); }
  2662.  
  2663. if (APlayerData[playerid][Sexo] == 2) {
  2664. format(Msg, 128, "{FFFFFF}» {B03060}%s{FFFFFF} entrou como uma {B03060}bombeiro{FFFFFF}. [SF]", Name);
  2665. SCMA(0xFFFFFFFF, Msg); }
  2666. }
  2667. case 1:
  2668. {
  2669. new HouseList[1000];
  2670. for (new i; i < MAX_HOUSESPERPLAYER; i++)
  2671. {
  2672.  
  2673. if (APlayerData[playerid][Houses][i] != 0)
  2674. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName]);
  2675. else
  2676. format(HouseList, 1000, "%s{FFFFFF}» {6495ED}%s{6495ED}\n", HouseList, "-");
  2677. }
  2678. ShowPlayerDialog(playerid, DialogGoHome2, DIALOG_STYLE_LIST, "Selecione a casa que deseja ir:", HouseList, "Ir", #);
  2679. }
  2680. case 2:
  2681. {
  2682. new BusinessList[1000], BusID, BusType, Earnings;
  2683. for (new i; i < MAX_BUSINESSPERPLAYER; i++)
  2684. {
  2685.  
  2686. BusID = APlayerData[playerid][Business][i];
  2687. if (BusID != 0)
  2688. {
  2689. BusType = ABusinessData[BusID][BusinessType];
  2690. Earnings = (BusinessTransactionTime - ABusinessData[BusID][LastTransaction]) * ABusinessInteriors[BusType][BusEarnings] * ABusinessData[BusID][BusinessLevel];
  2691. format(BusinessList, 1000, "%s{00FF00}%s{FFFFFF} (ganhos: {00FF00}R${FFFFFF}%i)\n", BusinessList, ABusinessData[BusID][BusinessName], Earnings);
  2692. }
  2693. else
  2694. format(BusinessList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", BusinessList, "-");
  2695. }
  2696. ShowPlayerDialog(playerid, DialogGoBusiness2, DIALOG_STYLE_LIST, "Escolha a empresa para ir:", BusinessList, "Selecionar", #);
  2697. }
  2698. }
  2699. }
  2700. }
  2701.  
  2702.  
  2703. return 1;
  2704. }
Advertisement
Add Comment
Please, Sign In to add comment