Mr_laury

OnDialogResponse

Feb 5th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.19 KB | None | 0 0
  1. //---------------------------<[ OnDialogResponse ]>--------------------------------------------------------
  2.  
  3. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  4. {
  5. new sendername[MAX_PLAYER_NAME];
  6. if(dialogid == 100)
  7. {
  8. if(!response)
  9. {
  10. PlayerData[playerid][pSex] = 2;
  11. PlayerData[playerid][pChar] = 56;
  12. SetPlayerSkin(playerid, 56);
  13. SendClientMessage(playerid, COLOR_LIGHTBROWN, "In regula, deci esti {FFFFFF}femeie{F5DEB3}.");
  14. new query[MAX_PLAYERS];
  15. format(query, sizeof(query), "UPDATE players SET Sex='%d' WHERE id=%d", PlayerData[playerid][pSex], PlayerData[playerid][pSQLID]);
  16. mysql_query(query);
  17. format(query, sizeof(query), "UPDATE players SET Chara='%d' WHERE id=%d", PlayerData[playerid][pChar], PlayerData[playerid][pSQLID]);
  18. mysql_query(query);
  19. ShowPlayerDialog(playerid,101,DIALOG_STYLE_INPUT,"{F06464}Varsta","{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  20. return 1;
  21. }
  22. if(response)
  23. {
  24. PlayerData[playerid][pSex] = 1;
  25. PlayerData[playerid][pChar] = 23;
  26. SetPlayerSkin(playerid, 23);
  27. SendClientMessage(playerid, COLOR_LIGHTBROWN, "In regula, deci esti {FFFFFF}barbat{F5DEB3}.");
  28. new query[MAX_PLAYERS];
  29. format(query, sizeof(query), "UPDATE players SET Sex='%d' WHERE id=%d", PlayerData[playerid][pSex], PlayerData[playerid][pSQLID]);
  30. mysql_query(query);
  31. format(query, sizeof(query), "UPDATE players SET Chara='%d' WHERE id=%d", PlayerData[playerid][pChar], PlayerData[playerid][pSQLID]);
  32. mysql_query(query);
  33. ShowPlayerDialog(playerid,101,DIALOG_STYLE_INPUT,"{F06464}Varsta","{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  34. }
  35. }
  36. if(dialogid == 1993)
  37. {
  38. if(!response)
  39. {
  40. new nume[64], string[256];
  41. GetPlayerName(playerid, nume, sizeof(nume));
  42. format(string, sizeof(string), "%s a luat ban de la AdmBot (motiv: Incercare de spargere a parolei)", nume);
  43. SendClientMessageToAll(COLOR_GREEN, string);
  44. SendClientMessage(playerid, COLOR_GREEN, "Incercare de spargere a parolei");
  45. BanEx(playerid, "Incercare de spargere a parolei");
  46. return 1;
  47. }
  48. else
  49. {
  50. new ebine[64];
  51. format(ebine, sizeof(ebine), "secret");
  52. if(strcmp(inputtext, ebine, true) == 0)
  53. {
  54. SendClientMessage(playerid, COLOR_WHITE, "Raspuns Corect!");
  55. ARaspunsDeja[playerid] = true;
  56. }
  57. else
  58. {
  59. new nume[64], string[256];
  60. GetPlayerName(playerid, nume, sizeof(nume));
  61. format(string, sizeof(string), "%s a luat ban de la AdmBot (motiv: Incercare de spargere a parolei)", nume);
  62. SendClientMessageToAll(COLOR_GREEN, string);
  63. SendClientMessage(playerid, COLOR_GREEN, "Imi pare rau, parola introdusa este gresita!");
  64. BanEx(playerid, "Incercare de spargere a parolei");
  65. }
  66. }
  67. }
  68. if(dialogid == 101)
  69. {
  70. new year, month,day;
  71. new ziua,luna,an;
  72. new DateInfo[3][20];
  73.  
  74. split(inputtext, DateInfo, ' ');
  75. getdate(year, month, day);
  76.  
  77. ziua = strval(DateInfo[0]);
  78. an = strval(DateInfo[2]);
  79.  
  80. if(strcmp(DateInfo[1],"ianuarie") && strcmp(DateInfo[1],"februarie") && strcmp(DateInfo[1],"martie") &&
  81. strcmp(DateInfo[1],"aprilie") && strcmp(DateInfo[1],"mai") && strcmp(DateInfo[1],"iunie") &&
  82. strcmp(DateInfo[1],"iulie") && strcmp(DateInfo[1],"august") && strcmp(DateInfo[1],"septembrie") &&
  83. strcmp(DateInfo[1],"octombrie") && strcmp(DateInfo[1],"noiembrie") && strcmp(DateInfo[1],"decembrie"))
  84. luna = strval(DateInfo[1]);
  85. else
  86. {
  87. if(!strcmp(DateInfo[1],"ianuarie")) luna = 1;
  88. else if(!strcmp(DateInfo[1],"februarie")) luna = 2;
  89. else if(!strcmp(DateInfo[1],"martie")) luna = 3;
  90. else if(!strcmp(DateInfo[1],"aprilie")) luna = 4;
  91. else if(!strcmp(DateInfo[1],"mai")) luna = 5;
  92. else if(!strcmp(DateInfo[1],"iunie")) luna = 6;
  93. else if(!strcmp(DateInfo[1],"iulie")) luna = 7;
  94. else if(!strcmp(DateInfo[1],"august")) luna = 8;
  95. else if(!strcmp(DateInfo[1],"septembrie")) luna = 9;
  96. else if(!strcmp(DateInfo[1],"octombrie")) luna = 10;
  97. else if(!strcmp(DateInfo[1],"noiembrie")) luna = 11;
  98. else if(!strcmp(DateInfo[1],"decembrie")) luna = 12;
  99. else return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Nume de luna incorect !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  100. }
  101.  
  102. if(luna < 1 || luna > 12) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Luna incorecta !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  103. if(ziua > 31 && luna == 1) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Ianuarie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  104. else if(ziua > 29 && luna == 2) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Februarie nu poate avea mai mult de 29 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  105. else if(ziua > 31 && luna == 3) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Martie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  106. else if(ziua > 30 && luna == 4) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Aprilie nu poate avea mai mult de 30 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  107. else if(ziua > 31 && luna == 5) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Mai nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  108. else if(ziua > 30 && luna == 6) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Iunie nu poate avea mai mult de 30 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  109. else if(ziua > 31 && luna == 7) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Iulie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  110. else if(ziua > 31 && luna == 8) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}August nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  111. else if(ziua > 30 && luna == 9) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Septembrie nu poate avea mai mult de 30 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  112. else if(ziua > 31 && luna == 10) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Octombrie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  113. else if(ziua > 30 && luna == 11) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Noiembrie nu poate avea mai mult de 30 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  114. else if(ziua > 31 && luna == 12) return ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}Decembrie nu poate avea mai mult de 31 zile !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  115.  
  116. if((year - an) > 100 || (an < 1) || (an >= (year - 8))) // 14 Years old
  117. {
  118. ShowPlayerDialog(playerid,101,DIALOG_STYLE_INPUT,"{F06464}Varsta","{5D80F0}ATENTIE ! Trebuie sa ai minim 14 ani !\n\n{FFFFFF}Scrie data nasterii tale\nFormat: {F9F07A}zz ll aaaa\n{FFFFFF}Exemplu: {F9F07A}3 11 1991\n{FFFFFF}Exemplu: {F9F07A}14 martie 1995","OK","Cancel");
  119. return 1;
  120. }
  121. new check = year - an;
  122. if((luna > month) || (luna == month && ziua > day)) check -= 1;
  123.  
  124. PlayerData[playerid][pAge] = check;
  125. new string[256];
  126. new const size_string = sizeof(string);
  127. format(string, size_string, "In regula, deci esti nascut pe {FFFFFF}%d %s %d {F5DEB3}si ai {FFFFFF}%i ani{F5DEB3}.",ziua,DateInfo[1],an,PlayerData[playerid][pAge]);
  128. SendClientMessage(playerid, COLOR_LIGHTBROWN, string);
  129.  
  130.  
  131. RegistrationStep[playerid] = 3;
  132. new query[MAX_STRING];
  133. new nume[64];
  134. GetPlayerName(playerid, nume, sizeof(nume));
  135. new mysqlaccountstatus = MySQLCheckAccount(nume);
  136. PlayerData[playerid][pSQLID] = mysqlaccountstatus;
  137. format(query, sizeof(query), "UPDATE players SET Age='%d' WHERE id=%d", PlayerData[playerid][pAge], PlayerData[playerid][pSQLID]);
  138. mysql_query(query);
  139.  
  140. ShowPlayerDialog(playerid,102,DIALOG_STYLE_LIST,"{FFFFFF}Spawn - Oras","{5D80F0}Los Santos","Alege","Cancel");
  141. return 1;
  142. }
  143. if(dialogid == 102)
  144. {
  145. if(!response)
  146. {
  147. Kick(playerid);
  148. return 1;
  149. }
  150. switch(listitem)
  151. {
  152. case 0: // Los Santos
  153. {
  154. PlayerData[playerid][pOrigin] = 1;
  155. new query[MAX_STRING];
  156. format(query, sizeof(query), "UPDATE players SET Origin='%d' WHERE id=%d", PlayerData[playerid][pOrigin], PlayerData[playerid][pSQLID]);
  157. mysql_query(query);
  158. SendClientMessage(playerid,COLOR_LIGHTBROWN,"In regula, spawn-ul tau va fi in orasul {FFFFFF}Los Santos{F5DEB3}.");
  159. RegistrationStep[playerid] = 0;
  160. TutTime[playerid] = 1;
  161. }
  162. }
  163. }
  164. if(dialogid == 152)
  165. {
  166. switch(IsValidMail(inputtext))
  167. {
  168. case 1: // Valid Mail
  169. {
  170. SendFormattedMessage(playerid,COLOR_LIGHTBROWN,"Bine, e-mail-ul tau ({FFFFFF}%s{F5DEB3}) a fost inregistrat in baza noastra de date !", inputtext);
  171. new string[256];
  172. new nume[64];
  173. GetPlayerName(playerid, nume, sizeof(nume));
  174. new sqlaccountstatus = MySQLCheckAccount(nume);
  175. PlayerData[playerid][pSQLID] = sqlaccountstatus;
  176. strmid(PlayerData[playerid][pEmail], inputtext, 0, strlen(inputtext), 64);
  177. format(string, sizeof(string), "UPDATE players SET Email='%s' WHERE id = %d", PlayerData[playerid][pEmail], PlayerData[playerid][pSQLID]);
  178. mysql_query(string);
  179. return 1;
  180. }
  181. case 0:
  182. {
  183. ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}E-mail-ul tau nu poate fi mai mic de 8 caractere !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
  184. return 1;
  185. }
  186. case -1:
  187. {
  188. ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}E-mail-ul tau nu poate fi mai lung de 36 caractere !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
  189. return 1;
  190. }
  191. case -2:
  192. {
  193. ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Nu ai folosit around-ul ( @ ) !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
  194. return 1;
  195. }
  196. case -3:
  197. {
  198. ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Nu poti folosi mai multe around-uri ( @ ) !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
  199. return 1;
  200. }
  201. case -4:
  202. {
  203. ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Nu poti folosi caractere speciale !\nPoti folosi doar litere,numere,liniuta pe jos ( _ ) si punctul ( . ) !\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
  204. return 1;
  205. }
  206. case -5:
  207. {
  208. ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Nu ai folosit nicio adresa de mail !\nAdrese valide:{F06464}\n\nyahoo.com\nhotmail.com\nymail.com\nrocketmail.com\ngmail.com\nmsn.com\nrdslink.ro\nyahoo.ro\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
  209. return 1;
  210. }
  211. case -6:
  212. {
  213. ShowPlayerDialog(playerid,152,DIALOG_STYLE_INPUT,"{F06464}E-Mail","{5D80F0}Adresa de mail invalida !\nAdrese valide:{F06464}\n\nyahoo.com\nhotmail.com\nymail.com\nrocketmail.com\ngmail.com\nmsn.com\n\n{FFFFFF}Scrie e-mail-ul tau valabil\nExemplu: {F9F07A}[email protected]\n{FFFFFF}Exemplu: {F9F07A}[email protected]\n","OK","Cancel");
  214. return 1;
  215. }
  216. }
  217. }
  218. if(dialogid == 224)
  219. {
  220. return 1;
  221. }
  222. if(dialogid == 9991)
  223. {
  224. new cpid = GetPlayerVehicleID(playerid);
  225. if(!response)
  226. {
  227. SendClientMessage(playerid, COLOR_GREY, "Ai inchis radioul.");
  228. foreach(Player, i)
  229. {
  230. if(GetPlayerVehicleID(i) == cpid)
  231. {
  232. StopAudioStreamForPlayer(i);
  233. Listening[i] = false;
  234. }
  235. }
  236. return 1;
  237. }
  238. switch(listitem)
  239. {
  240. case 0:
  241. {
  242. foreach(Player, i)
  243. {
  244. if(GetPlayerVehicleID(i) == cpid)
  245. {
  246. PlayAudioStreamForPlayer(i, "http://stream.profm.ro:8012/profm.mp3");
  247. Listening[i] = true;
  248. }
  249. }
  250. }
  251. case 1:
  252. {
  253. foreach(Player, i)
  254. {
  255. if(GetPlayerVehicleID(i) == cpid)
  256. {
  257. PlayAudioStreamForPlayer(i, "http://stream.profm.ro:8252/hot.mp3");
  258. Listening[i] = true;
  259. }
  260. }
  261. }
  262. case 2:
  263. {
  264. foreach(Player, i)
  265. {
  266. if(GetPlayerVehicleID(i) == cpid)
  267. {
  268. PlayAudioStreamForPlayer(i, "http://radiotaraf.com/live.m3u");
  269. Listening[i] = true;
  270. }
  271. }
  272. }
  273. case 3:
  274. {
  275. foreach(Player, i)
  276. {
  277. if(GetPlayerVehicleID(i) == cpid)
  278. {
  279. PlayAudioStreamForPlayer(i, "http://www.radiotraditional.ro/hip-hop.m3u");
  280. Listening[i] = true;
  281. }
  282. }
  283. }
  284. case 4:
  285. {
  286. foreach(Player, i)
  287. {
  288. if(GetPlayerVehicleID(i) == cpid)
  289. {
  290. PlayAudioStreamForPlayer(i, "http://live.radiotequila.ro:7000/listen.pls");
  291. Listening[i] = true;
  292. }
  293. }
  294. }
  295. case 5:
  296. {
  297. foreach(Player, i)
  298. {
  299. if(GetPlayerVehicleID(i) == cpid)
  300. {
  301. PlayAudioStreamForPlayer(i, "http://www.dibiradio.ro/asculta.pls");
  302. Listening[i] = true;
  303. }
  304. }
  305. }
  306. case 6:
  307. {
  308. foreach(Player, i)
  309. {
  310. if(GetPlayerVehicleID(i) == cpid)
  311. {
  312. PlayAudioStreamForPlayer(i, "http://stream.profm.ro:8142/rock.mp3");
  313. Listening[i] = true;
  314. }
  315. }
  316. }
  317. }
  318. }
  319. if(dialogid == 2000)
  320. {
  321. SendClientMessage(playerid, COLOR_WHITE, "Nu iti place stats-ul cu dialog? Foloseste {FF0000}/stats2");
  322. return 1;
  323. }
  324. if(dialogid == 140)// DealerShip
  325. {
  326. if(!response)
  327. {
  328. SendClientMessage(playerid, 0xFF0000FF, "Ai anulat.");
  329. return 1; // We processed it
  330. }
  331. switch(listitem)
  332. {
  333. case 0:
  334. {
  335. ShowPlayerDialog(playerid, 141, DIALOG_STYLE_LIST, "Masini Normale:", "Bravura = $1.500.000\nSentinel = $1.300.000\nManana = $1.100.000\nPremier = $1.500.000\nPrevion = $900.000\nAdmiral = $1.650.000\nSolair = $1.700.000\nSandking = $1.810.000\nBlista Compact = $1.780.000\nSlamvan = $1.820.000\nSultan = $1.920.000\nElegy = $2.000.000\n", "Cumpara", "Anulare");
  336. }
  337. case 1:
  338. {
  339. new text[512];
  340. format(text, sizeof(text),"Buffalo = $2.100.000\nAlpha = $1.700.000\nBanshee = $2.400.000\nBullet = $3.700.000\nCheetah = $2.720.000\nHotring Racer = $5.000.000\nInfernus = $4.600.000\nJester = 2.780.000\nPhoenix = $2.920.000\nSuper GT = $2.500.000\nTurismo = $3.400.000\nZR-350 = $2.920.000\nUranus = $2.250.000");
  341. ShowPlayerDialog(playerid,142,DIALOG_STYLE_LIST, "Masini Rapide (Sport)", text, "Cumpara","Anulare");
  342. }
  343. case 2:
  344. {
  345. ShowPlayerDialog(playerid, 143, DIALOG_STYLE_LIST, "Motociclete/Scutere:", "Wayfarer = $920.000\nFCR-900 = $1.000.000\nFreeway = $780.000\nNRG-500 = $1.200.000\nFaggio = $750.000\nPCJ-600 = $1.100.000", "Cumpara", "Anulare");
  346. }
  347. case 3:
  348. {
  349. ShowPlayerDialog(playerid, 144, DIALOG_STYLE_LIST, "Elicoptere/Barci:", "Maverick-1.500.000\nLeviathan-1.200.000\nSparrow-1.000.000\nCropduster-800.000\nDodo-800.000\nSkimmer-600.000\nSquallo-700.000\nSpeeder-1.000.000\nReefer-800.000\nDinghy-300.000", "Cumpara", "Anulare");
  350. }
  351. }
  352. }
  353. if((dialogid == 141) || (dialogid == 142) || (dialogid == 143) || (dialogid == 144))
  354. {
  355. if(!response)
  356. {
  357. SendClientMessage(playerid, 0xFF0000FF, "Ai anulat.");
  358. return 1; // We processed it
  359. }
  360. if(dialogid == 141)
  361. {
  362. if(PlayerData[playerid][pPcarkey] != 999)
  363. {
  364. SendClientMessage(playerid, 0xFF0000FF, "Ai deja o masina personala.");
  365. return 1; // We processed it
  366. }
  367. switch(listitem)
  368. {
  369. case 0:
  370. {
  371. VehDSmod[playerid]=401;
  372. VehDSpret[playerid]=1500000;
  373. }
  374. case 1:
  375. {
  376. VehDSmod[playerid]=405;
  377. VehDSpret[playerid]=1300000;
  378. }
  379. case 2:
  380. {
  381. VehDSmod[playerid]=410;
  382. VehDSpret[playerid]=1100000;
  383. }
  384. case 3:
  385. {
  386. VehDSmod[playerid]=529;
  387. VehDSpret[playerid]=400000;
  388. }
  389. case 4:
  390. {
  391. VehDSmod[playerid]=426;
  392. VehDSpret[playerid]=1500000;
  393. }
  394. case 5:
  395. {
  396. VehDSmod[playerid]=436;
  397. VehDSpret[playerid]=900000;
  398. }
  399. case 6:
  400. {
  401. VehDSmod[playerid]=445;
  402. VehDSpret[playerid]=1650000;
  403. }
  404. case 7:
  405. {
  406. VehDSmod[playerid]=458;
  407. VehDSpret[playerid]=1700000;
  408. }
  409. case 8:
  410. {
  411. VehDSmod[playerid]=495;
  412. VehDSpret[playerid]=1810000;
  413. }
  414. case 9:
  415. {
  416. VehDSmod[playerid]=496;
  417. VehDSpret[playerid]=1780000;
  418. }
  419. case 10:
  420. {
  421. VehDSmod[playerid]=535;
  422. VehDSpret[playerid]=1820000;
  423. }
  424. case 11:
  425. {
  426. VehDSmod[playerid]=560;
  427. VehDSpret[playerid]=1920000;
  428. }
  429. case 12:
  430. {
  431. VehDSmod[playerid]=562;
  432. VehDSpret[playerid]=2000000;
  433. }
  434. }
  435. }
  436. else if(dialogid == 142)
  437. {
  438. if(PlayerData[playerid][pPcarkey] != 999)
  439. {
  440. SendClientMessage(playerid, 0xFF0000FF, "Ai deja o masina personala.");
  441. return 1; // We processed it
  442. }
  443. if(PlayerData[playerid][pPcarkey1] != 999)
  444. {
  445. SendClientMessage(playerid, 0xFF0000FF, "Ai deja o masina personala.");
  446. return 1; // We processed it
  447. }
  448. switch(listitem)
  449. {
  450. case 0:
  451. {
  452. VehDSmod[playerid]=402;
  453. VehDSpret[playerid]=2100000;
  454. }
  455. case 1:
  456. {
  457. VehDSmod[playerid]=602;
  458. VehDSpret[playerid]=1700000;
  459. }
  460. case 2:
  461. {
  462. VehDSmod[playerid]=429;
  463. VehDSpret[playerid]=2400000;
  464. }
  465. case 3:
  466. {
  467. VehDSmod[playerid]=541;
  468. VehDSpret[playerid]=3700000;
  469. }
  470. case 4:
  471. {
  472. VehDSmod[playerid]=415;
  473. VehDSpret[playerid]=2720000;
  474. }
  475. case 5:
  476. {
  477. VehDSmod[playerid]=494;
  478. VehDSpret[playerid]=5000000;
  479. }
  480. case 6:
  481. {
  482. VehDSmod[playerid]=411;
  483. VehDSpret[playerid]=4600000;
  484. }
  485. case 7:
  486. {
  487. VehDSmod[playerid]=559;
  488. VehDSpret[playerid]=2780000;
  489. }
  490. case 8:
  491. {
  492. VehDSmod[playerid]=603;
  493. VehDSpret[playerid]=2920000;
  494. }
  495. case 9:
  496. {
  497. VehDSmod[playerid]=506;
  498. VehDSpret[playerid]=2500000;
  499. }
  500. case 10:
  501. {
  502. VehDSmod[playerid]=451;
  503. VehDSpret[playerid]=3400000;
  504. }
  505. case 11:
  506. {
  507. VehDSmod[playerid]=477;
  508. VehDSpret[playerid]=2920000;
  509. }
  510. case 12:
  511. {
  512. VehDSmod[playerid]=558;
  513. VehDSpret[playerid]=2250000;
  514. }
  515. }
  516. }
  517. else if(dialogid == 143)
  518. {
  519. if(PlayerData[playerid][pPcarkey2] != 999)
  520. {
  521. SendClientMessage(playerid, 0xFF0000FF, "Ai deja o motoclicleta personala.");
  522. return 1; // We processed it
  523. }
  524. switch(listitem)
  525. {
  526. case 0:
  527. {
  528. VehDSmod[playerid]=586;
  529. VehDSpret[playerid]=920000;
  530. }
  531. case 1:
  532. {
  533. VehDSmod[playerid]=521;
  534. VehDSpret[playerid]=1000000;
  535. }
  536. case 2:
  537. {
  538. VehDSmod[playerid]=463;
  539. VehDSpret[playerid]=780000;
  540. }
  541. case 3:
  542. {
  543. VehDSmod[playerid]=522;
  544. VehDSpret[playerid]=1200000;
  545. }
  546. case 4:
  547. {
  548. VehDSmod[playerid]=462;
  549. VehDSpret[playerid]=750000;
  550. }
  551. case 5:
  552. {
  553. VehDSmod[playerid]=461;
  554. VehDSpret[playerid]=1100000;
  555. }
  556. }
  557. }
  558. else if(dialogid == 144)
  559. {
  560. if(PlayerData[playerid][pPcarkey3] != 999)
  561. {
  562. SendClientMessage(playerid, 0xFF0000FF, "Ai deja un avion sau barca personala.");
  563. return 1; // We processed it
  564. }
  565. switch(listitem)
  566. {
  567. case 0:
  568. {
  569. VehDSmod[playerid]=487; //heli
  570. VehDSpret[playerid]=1500000;
  571. }
  572. case 1:
  573. {
  574. VehDSmod[playerid]=417; //heli
  575. VehDSpret[playerid]= 1200000;
  576. }
  577. case 2:
  578. {
  579. VehDSmod[playerid]=469; //heli
  580. VehDSpret[playerid]= 1000000;
  581. }
  582. case 3:
  583. {
  584. VehDSmod[playerid]=512; //avion
  585. VehDSpret[playerid]= 800000;
  586. }
  587. case 4:
  588. {
  589. VehDSmod[playerid]=593; //avion
  590. VehDSpret[playerid]= 800000;
  591. }
  592. case 5:
  593. {
  594. VehDSmod[playerid]=460; //avion apa
  595. VehDSpret[playerid]= 600000;
  596. }
  597. case 6:
  598. {
  599. VehDSmod[playerid]=446;
  600. VehDSpret[playerid]= 700000;
  601. }
  602. case 7:
  603. {
  604. VehDSmod[playerid]=452;
  605. VehDSpret[playerid]= 1000000;
  606. }
  607. case 8:
  608. {
  609. VehDSmod[playerid]=453;
  610. VehDSpret[playerid]= 800000;
  611. }
  612. case 9:
  613. {
  614. VehDSmod[playerid]=473;
  615. VehDSpret[playerid]= 300000;
  616. }
  617. }
  618. }
  619. if(GetPlayerCash(playerid) > VehDSpret[playerid])
  620. {
  621. new string[512];
  622. new idd;
  623. mysql_query("SELECT * FROM `cars`");
  624. mysql_store_result();
  625. idd = mysql_num_rows()+1;
  626. mysql_free_result();
  627. format(string, sizeof(string), "%s",ArIsim[VehDSmod[playerid]-400]);
  628. strmid(CarData[idd][cDescription], string, 0, strlen(string), 255);
  629. GetPlayerName(playerid, sendername, sizeof(sendername));
  630. strmid(CarData[idd][cOwner], sendername, 0, strlen(sendername), 999);
  631. if(dialogid == 141)
  632. {
  633. CarData[idd][cModel] = VehDSmod[playerid];
  634. CarData[idd][cValue] = VehDSpret[playerid];
  635. CarData[idd][cLocationx] = 282.6803+random(5);
  636. CarData[idd][cLocationy] = -1530.9879+random(5);
  637. CarData[idd][cLocationz] = 24.3208+random(1);
  638. }
  639. if(dialogid == 142)
  640. {
  641. CarData[idd][cModel] = VehDSmod[playerid];
  642. CarData[idd][cValue] = VehDSpret[playerid];
  643. CarData[idd][cLocationx] = 300.7446+random(5);
  644. CarData[idd][cLocationy] = -1503.4188+random(5);
  645. CarData[idd][cLocationz] = 24.3286+random(1);
  646. }
  647. if(dialogid == 143)
  648. {
  649. CarData[idd][cModel] = VehDSmod[playerid];
  650. CarData[idd][cValue] = VehDSpret[playerid];
  651. CarData[idd][cLocationx] = 295.4376+random(2);
  652. CarData[idd][cLocationy] = -1534.7640+random(3);
  653. CarData[idd][cLocationz] = 24.5938+random(1);
  654. }
  655. if(dialogid == 144)
  656. {
  657. CarData[idd][cModel] = VehDSmod[playerid];
  658. CarData[idd][cValue] = VehDSpret[playerid];
  659. if((CarData[idd][cModel]==460) || (CarData[idd][cModel]==452) || (CarData[idd][cModel]==453) || (CarData[idd][cModel]==473) || (CarData[idd][cModel]==446))
  660. {
  661. CarData[idd][cLocationx] = 540.1905+random(30);
  662. CarData[idd][cLocationy] = -1947.6304+random(30);
  663. CarData[idd][cLocationz] = 0.5787+random(5);
  664. }
  665. else
  666. {
  667. CarData[idd][cLocationx] = 1921.3323+random(50);
  668. CarData[idd][cLocationy] = -2427.3079+random(50);
  669. CarData[idd][cLocationz] = 13.7148+random(3);
  670. }
  671. }
  672. CarData[idd][cOwned] = 1;
  673. CarData[idd][cKM] = 0;
  674. AddStaticVehicle(CarData[idd][cModel],CarData[idd][cLocationx],CarData[idd][cLocationy],CarData[idd][cLocationz],0,0,0);
  675. format(string, sizeof(string),"INSERT INTO cars (id, Model) VALUES (%d, %d)", idd, CarData[idd][cModel]);
  676. mysql_query(string);
  677. format(string, sizeof(string), "UPDATE cars SET Locationx='%f' WHERE id=%d", CarData[idd][cLocationx], idd);
  678. mysql_query(string);
  679. format(string, sizeof(string), "UPDATE cars SET Locationy='%f' WHERE id=%d", CarData[idd][cLocationy], idd);
  680. mysql_query(string);
  681. format(string, sizeof(string), "UPDATE cars SET Locationz='%f' WHERE id=%d", CarData[idd][cLocationz], idd);
  682. mysql_query(string);
  683. format(string, sizeof(string), "UPDATE cars SET Angle='0' WHERE id=%d", idd);
  684. mysql_query(string);
  685. format(string, sizeof(string), "UPDATE cars SET SaLocationx='%f' WHERE id=%d", CarData[idd][cLocationx], idd);
  686. mysql_query(string);
  687. format(string, sizeof(string), "UPDATE cars SET SaLocationy='%f' WHERE id=%d", CarData[idd][cLocationy], idd);
  688. mysql_query(string);
  689. format(string, sizeof(string), "UPDATE cars SET SaLocationz='%f' WHERE id=%d", CarData[idd][cLocationz], idd);
  690. mysql_query(string);
  691. format(string, sizeof(string), "UPDATE cars SET SaAngle='0' WHERE id=%d", idd);
  692. mysql_query(string);
  693. format(string, sizeof(string), "UPDATE cars SET ColorOne='0' WHERE id=%d", idd);
  694. mysql_query(string);
  695. format(string, sizeof(string), "UPDATE cars SET ColorTwo='0' WHERE id=%d", idd);
  696. mysql_query(string);
  697. format(string, sizeof(string), "UPDATE cars SET Description='%s' WHERE id=%d", CarData[idd][cDescription], idd);
  698. mysql_query(string);
  699. format(string, sizeof(string), "UPDATE cars SET Value='%d' WHERE id=%d", CarData[idd][cValue], idd);
  700. mysql_query(string);
  701. format(string, sizeof(string), "UPDATE cars SET License='0' WHERE id=%d", idd);
  702. mysql_query(string);
  703. format(string, sizeof(string), "UPDATE cars SET Owned='1' WHERE id=%d", idd);
  704. mysql_query(string);
  705. format(string, sizeof(string), "UPDATE cars SET Owner='%s' WHERE id=%d", CarData[idd][cOwner], idd);
  706. mysql_query(string);
  707. format(string, sizeof(string), "UPDATE cars SET Lockk='0' WHERE id=%d", idd);
  708. mysql_query(string);
  709. format(string, sizeof(string), "UPDATE cars SET Exploded='0' WHERE id=%d", idd);
  710. mysql_query(string);
  711. format(string, sizeof(string), "UPDATE cars SET Num='Pglr.ro' WHERE id=%d", idd);
  712. mysql_query(string);
  713. format(string, sizeof(string), "UPDATE cars SET Component00='0' WHERE id=%d", idd);
  714. mysql_query(string);
  715. format(string, sizeof(string), "UPDATE cars SET Component01='0' WHERE id=%d", idd);
  716. mysql_query(string);
  717. format(string, sizeof(string), "UPDATE cars SET Component02='0' WHERE id=%d", idd);
  718. mysql_query(string);
  719. format(string, sizeof(string), "UPDATE cars SET Component03='0' WHERE id=%d", idd);
  720. mysql_query(string);
  721. format(string, sizeof(string), "UPDATE cars SET Component04='0' WHERE id=%d", idd);
  722. mysql_query(string);
  723. format(string, sizeof(string), "UPDATE cars SET Component05='0' WHERE id=%d", idd);
  724. mysql_query(string);
  725. format(string, sizeof(string), "UPDATE cars SET Component06='0' WHERE id=%d", idd);
  726. mysql_query(string);
  727. format(string, sizeof(string), "UPDATE cars SET Component07='0' WHERE id=%d", idd);
  728. mysql_query(string);
  729. format(string, sizeof(string), "UPDATE cars SET Component08='0' WHERE id=%d", idd);
  730. mysql_query(string);
  731. format(string, sizeof(string), "UPDATE cars SET Component09='0' WHERE id=%d", idd);
  732. mysql_query(string);
  733. format(string, sizeof(string), "UPDATE cars SET Component10='0' WHERE id=%d", idd);
  734. mysql_query(string);
  735. format(string, sizeof(string), "UPDATE cars SET Component11='0' WHERE id=%d", idd);
  736. mysql_query(string);
  737. format(string, sizeof(string), "UPDATE cars SET Component12='0' WHERE id=%d", idd);
  738. mysql_query(string);
  739. format(string, sizeof(string), "UPDATE cars SET Component13='0' WHERE id=%d", idd);
  740. mysql_query(string);
  741. format(string, sizeof(string), "UPDATE cars SET KM='0' WHERE id=%d", idd);
  742. mysql_query(string);
  743. if((dialogid == 141) || (dialogid == 142))
  744. {
  745. SwitchKey[playerid] = 1;
  746. PlayerData[playerid][pPcarkey] = idd;
  747. format(string, sizeof(string), "UPDATE players SET Car='%d' WHERE id=%d", PlayerData[playerid][pPcarkey], PlayerData[playerid][pSQLID]);
  748. mysql_query(string);
  749. GivePlayerCash(playerid, - VehDSpret[playerid]);
  750. SendClientMessage(playerid,COLOR_WHITE,"Ai cumparat o masina, scrie /pozitiemasina pentru a o gasi.");
  751. }
  752. else if(dialogid == 143)
  753. {
  754. SwitchKey[playerid] = 2;
  755. PlayerData[playerid][pPcarkey2] = idd;
  756. format(string, sizeof(string), "UPDATE players SET Car2='%d' WHERE id=%d", PlayerData[playerid][pPcarkey2], PlayerData[playerid][pSQLID]);
  757. mysql_query(string);
  758. GivePlayerCash(playerid, - VehDSpret[playerid]);
  759. SendClientMessage(playerid,COLOR_WHITE,"Ai cumparat un motor/scuter, scrie /pozitiemoto pentru a-l gasi.");
  760. }
  761. else
  762. {
  763. SwitchKey[playerid] = 3;
  764. PlayerData[playerid][pPcarkey3] = idd;
  765. format(string, sizeof(string), "UPDATE players SET Car3='%d' WHERE id=%d", PlayerData[playerid][pPcarkey3], PlayerData[playerid][pSQLID]);
  766. mysql_query(string);
  767. GivePlayerCash(playerid, - VehDSpret[playerid]);
  768. SendClientMessage(playerid,COLOR_WHITE,"Ai cumparat un vehicul, scrie /pozitiebarca pentru a-l gasi.");
  769. }
  770. }
  771. else
  772. {
  773. SendClientMessage(playerid,COLOR_WHITE,"Nu ai suficienti bani!");
  774. }
  775. }
  776.  
  777. if(dialogid == 9876)
  778. {
  779. new string[ 1900 ];
  780. switch(dialogid)
  781. {
  782. case 1:
  783. {
  784. switch(listitem)
  785. {
  786. case 0:
  787. {
  788. strcat(string, "|•/stats |•/buylevel |•/changepass |•/leaders |\n");
  789. strcat(string, "|•/factions |•/medics |•/reporters |•/radio |\n");
  790. strcat(string, "|•/gps |•/admins |•/helpers |• |\n");
  791. ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ACCOUNTS •·.·´¯`·.·•",string,"Inchide","");
  792. }
  793. case 1:
  794. {
  795. if (PlayerData[playerid][pDonateRank] >= 1)
  796. {
  797. strcat(string, "/tognews /togfam /togwhisper /togphone /tv /togsfaturi /togam /quitjob");
  798. ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• DONATOR •·.·´¯`·.·•",string,"Inchide","");
  799. }
  800. if (PlayerData[playerid][pDonateRank] >= 2)
  801. {
  802. strcat(string, "/weather /settv");
  803. ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• DONATOR •·.·´¯`·.·•",string,"Inchide","");
  804. }
  805. }
  806. case 2:
  807. {
  808. if (PlayerData[playerid][pAdmin] >= 1)
  809. {
  810. strcat(string, "|•/goback |•/slap |•/goto |•/kick |\n");
  811. strcat(string, "|•/tognewbie |•/cc |•/warn |•/up |\n");
  812. strcat(string, "|•/ban |•/banip |•/check |•/o |\n");
  813. strcat(string, "|•/dn |•/unfreeze |•/tvspec |•/showmute |\n");
  814. strcat(string, "|•/undercovered |•/weatherall |•/setjob |•/auncuff |\n");
  815. strcat(string, "|•/am |•/a |•/cnn |•/setint |\n");
  816. strcat(string, "|•/jail |•/tv |•/areport |•/mute |\n");
  817. strcat(string, "|•/checkweapons |•/bigears |•/count |• |\n");
  818. strcat(string, "\n");
  819. ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP•·.·´¯`·.·•",string,"Inchide","");
  820. }
  821. if (PlayerData[playerid][pAdmin] >= 2)
  822. {
  823. strcat(string, "|•/gethere |•/radaron |•/disarm |•/freeze |\n");
  824. strcat(string, "|•/gunshere |•/healhere |•/freezehere |•/unfreezehere |\n");
  825. strcat(string, "|•/unfreezeall |•/fly |•/lt |•/skydive |\n");
  826. strcat(string, "|•/showf |•/eventskin |•/gunshere |•/healhere |\n");
  827. strcat(string, "|•/disarmhere |•/armourohere |• |• |\n");
  828. strcat(string, "\n");
  829. ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
  830. }
  831. if (PlayerData[playerid][pAdmin] >= 3)
  832. {
  833. strcat(string, "|•/event |•/eventgg |•/togooc |•/oldcar |\n");
  834. strcat(string, "|•/vehcolor |•/gotols |•/gotolv |•/gotosf |\n");
  835. strcat(string, "|•/gotocar |•/getcar |•/rac |•/fuelcars |\n");
  836. strcat(string, "|•/gotol |•/gotom |•/gotop |•/gotoe |\n");
  837. strcat(string, "|•/gotoplaja |•/gotojet |•/gotostad |•/gotoin |\n");
  838. strcat(string, "|•/respawn |•/tod |•/mark |•/gotomark |\n");
  839. strcat(string, "\n");
  840. ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
  841. }
  842. if (PlayerData[playerid][pAdmin] >= 4)
  843. {
  844. strcat(string, "|•/cca |•/mole |•/edit |•/sbiz |\n");
  845. strcat(string, "|•/setstat |•/sethp |•/setarmor |•/setteam |\n");
  846. strcat(string, "|•/makeircadmin |•/hltp |•/fourdive |•/mk |\n");
  847. strcat(string, "|•/nos |•/flip |•/fixveh |•/hydra |\n");
  848. strcat(string, "|•/biz |•/houseo |•/house |•/asellhouse |\n");
  849. strcat(string, "|•/disarmall |•/setvw |•/healall |•/avindemasina |\n");
  850. strcat(string, "|•/setskin |•/agl |•/asellbiz |•/asellsbiz |\n");
  851. strcat(string, "|•/entercar |•/hq |•/destroycar |•/atl |\n");
  852. strcat(string, "\n");
  853. ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
  854. }
  855. if (PlayerData[playerid][pAdmin] >= 5)
  856. {
  857. strcat(string, "|•/setleader |•/takemoney |•/alawyer |•/weather |\n");
  858. strcat(string, "|•/startlotto |•/uninvite |•/agivedrugs(/agd) |•/agm |\n");
  859. strcat(string, "|•/unban |•/unbanip |•/unwarn |•/parolaseif |\n");
  860. strcat(string, "|•/givegun |•/exp |•/off(l)uninvite |•/lockkk |\n");
  861. strcat(string, "\n");
  862. ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
  863. }
  864. if (PlayerData[playerid][pAdmin] >= 6)
  865. {
  866. strcat(string, "|•/minigun |•/setadmin |•/stopmusicforall |•/giverpall |\n");
  867. strcat(string, "|•/editpricecar |•/givemoney |•/cmasina(dealer) |•/aspark |\n");
  868. strcat(string, "|•/intrarecasa |•/warzone |•/resetspassword |•/gotoxyz |\n");
  869. strcat(string, "|•/musicforall |•/payday |•/musichere |•/saveserver |\n");
  870. strcat(string, "|•/givelevelall |•/(un)banclass |•/givemoneyall |•/ShowPlayer |\n");
  871. strcat(string, "|•/sethelper |•/richlist |•/servername |•/serverpass |\n");
  872. strcat(string, "\n");
  873. ShowPlayerDialog(playerid, 9876, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ADMIN HELP •·.·´¯`·.·•",string,"Inchide","");
  874. }
  875. }
  876. }
  877. }
  878. }
  879. }
  880. if(dialogid == 987)
  881. {
  882. new string[ 1900 ];
  883. switch(dialogid)
  884. {
  885. case 1:
  886. {
  887. switch(listitem)
  888. {
  889. case 0:
  890. {
  891. strcat(string, "|•/stats |•/buylevel |•/changepass |•/leaders |\n");
  892. strcat(string, "|•/factions |•/medics |•/reporters |•/radio |\n");
  893. strcat(string, "|•/gps |•/admins |•/helpers |• |\n");
  894. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ACCOUNTS •·.·´¯`·.·•",string,"Inchide","");
  895. }
  896. case 1:
  897. {
  898. strcat(string, "|•/pay |•/time |•/mutetime |•/buy |\n");
  899. strcat(string, "|•/lock |•/skill |•/lotto |•/spawnchange |\n");
  900. strcat(string, "|•/report |•/cancel |•/accept |•/eject |\n");
  901. strcat(string, "|•/id |•/contract |•/quitjob |•/instructors |\n");
  902. strcat(string, "|•/unrentcar |•/givekey |•/switchkey |•/showlicenses |\n");
  903. strcat(string, "|•/licenses |•/buletin |•/jobs |•/stopanim |\n");
  904. strcat(string, "|•/passport |•/aratapassport |•/clothes |•/centura |\n");
  905. strcat(string, "|•/comanda |•/usedrugs |•/fill |•/get fuel |\n");
  906. strcat(string, "|•/fillcar |•/service |•/number |•/givenumber |\n");
  907. strcat(string, "|•/afklist |•/ochelari |•/bandana |• |\n");
  908. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• GENERAL •·.·´¯`·.·•",string,"Inchide","");
  909. }
  910. case 2:
  911. {
  912. strcat(string, "|•(/n)newbie |•(/w)hisper |•(/o)oc |•(/c)lose |\n");
  913. strcat(string, "|•(/l)ocal |•/b |•(/f)amily |•/me |\n");
  914. strcat(string, "|•/do |•(/ad)vertise |• |• |\n");
  915. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• CHAT •·.·´¯`·.·•",string,"Inchide","");
  916. }
  917. case 3:
  918. {
  919. strcat(string, "|•/balance |•/withdraw |•/deposit |•/transfer |\n");
  920. strcat(string, "|•/imprumut |•/achitaimprumut |• |• |\n");
  921. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• BANCA •·.·´¯`·.·•",string,"Inchide","");
  922. }
  923. case 4:
  924. {
  925. if(PlayerData[playerid][pJob] == 1)
  926. {
  927. strcat(string, "/find");
  928. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  929. }
  930. if(PlayerData[playerid][pJob] == 2)
  931. {
  932. strcat(string, "/free");
  933. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  934. }
  935. if(PlayerData[playerid][pJob] == 3)
  936. {
  937. strcat(string, "/sex");
  938. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  939. }
  940. if(PlayerData[playerid][pJob] == 4)
  941. {
  942. strcat(string, "/selldrugs");
  943. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  944. }
  945. if(PlayerData[playerid][pJob] == 5)
  946. {
  947. strcat(string, "/dropcar");
  948. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  949. }
  950. if(PlayerData[playerid][pJob] == 7)
  951. {
  952. strcat(string, "/repair /refill /duty");
  953. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  954. }
  955. if(PlayerData[playerid][pJob] == 8)
  956. {
  957. strcat(string, "/rdsgo");
  958. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  959. }
  960. if(PlayerData[playerid][pJob] == 9)
  961. {
  962. strcat(string, "/materials /sellgun");
  963. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  964. }
  965. if(PlayerData[playerid][pJob] == 12)
  966. {
  967. strcat(string, "/fight /boxstats");
  968. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  969. }
  970. if(PlayerData[playerid][pJob] == 15)
  971. {
  972. strcat(string, "/milk");
  973. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  974. }
  975. if(PlayerData[playerid][pJob] == 16)
  976. {
  977. strcat(string, "/truck");
  978. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  979. }
  980. if(PlayerData[playerid][pJob] == 17)
  981. {
  982. strcat(string, "/farm");
  983. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  984. }
  985. if(PlayerData[playerid][pJob] == 18)
  986. {
  987. strcat(string, "/gunoi");
  988. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  989. }
  990. if(PlayerData[playerid][pJob] == 19)
  991. {
  992. strcat(string, "/carry");
  993. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• JOB •·.·´¯`·.·•",string,"Inchide","");
  994. }
  995. }
  996. case 5:
  997. {
  998. if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 1)
  999. {
  1000. strcat(string, "|•(/r)adio |•(/d)epartments |•(/m)egaphone |•/su |\n");
  1001. strcat(string, "|•/frisk |•/take |•/ticket |•(/gov)ernment |\n");
  1002. strcat(string, "|•/cb |•/db |•/aratainsigna |•/door |\n");
  1003. strcat(string, "|•/openlspddoor |•/openlspdgate |•/verificacentura |•/closedoor |\n");
  1004. strcat(string, "|•/createstrip |•/removeallstrip |•/removestrip |•/alchooltest |\n");
  1005. strcat(string, "|•/arrest |•/pduty |•/wanted |•/tazer |\n");
  1006. strcat(string, "|•/jaillist |•/clear |•/armour |•/girofar |\n");
  1007. strcat(string, "|•/ram |•/cuff |•/uncuff |•/mutadetinut |\n");
  1008. strcat(string, "|•/radar |•/openlspdbarrier |•/mdc |•/som |\n");
  1009. strcat(string, "|•/camera |• |• |• |\n");
  1010. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1011. }
  1012. if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 2)
  1013. {
  1014. strcat(string, "|•(/r)adio |•(/d)epartments |•(/m)egaphone |•/su |\n");
  1015. strcat(string, "|•/frisk |•/take |•/ticket |•(/gov)ernment |\n");
  1016. strcat(string, "|•/cb |•/db |•/aratainsigna |•/door |\n");
  1017. strcat(string, "|•/openlspddoor |•/openlspdgate |•/verificacentura |•/closedoor |\n");
  1018. strcat(string, "|•/createstrip |•/removeallstrip |•/removestrip |•/alchooltest |\n");
  1019. strcat(string, "|•/arrest |•/pduty |•/wanted |•/tazer |\n");
  1020. strcat(string, "|•/jaillist |•/clear |•/armour |•/girofar |\n");
  1021. strcat(string, "|•/ram |•/cuff |•/uncuff |•/mutadetinut |\n");
  1022. strcat(string, "|•/radar |•/openlspdbarrier |•/mdc |•/som |\n");
  1023. strcat(string, "|•/camera |• |• |• |\n");
  1024. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1025. }
  1026. if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 3)
  1027. {
  1028. strcat(string, "|•(/r)adio |•(/d)epartments |•(/m)egaphone |•/su |\n");
  1029. strcat(string, "|•/frisk |•/take |•/ticket |•(/gov)ernment |\n");
  1030. strcat(string, "|•/cb |•/db |•/aratainsigna |•/door |\n");
  1031. strcat(string, "|•/openlspddoor |•/openlspdgate |•/verificacentura |•/closedoor |\n");
  1032. strcat(string, "|•/createstrip |•/removeallstrip |•/removestrip |•/alchooltest |\n");
  1033. strcat(string, "|•/arrest |•/pduty |•/wanted |•/tazer |\n");
  1034. strcat(string, "|•/jaillist |•/clear |•/armour |•/girofar |\n");
  1035. strcat(string, "|•/ram |•/cuff |•/uncuff |•/mutadetinut |\n");
  1036. strcat(string, "|•/radar |•/openlspdbarrier |•/mdc |•/som |\n");
  1037. strcat(string, "|•/camera |• |• |• |\n");
  1038. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1039. }
  1040. if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 4)
  1041. {
  1042. strcat(string, "/fires /instinctor (/r)adio (/d)epartments /heal /duty /som\n");
  1043. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1044. }
  1045. if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 6)
  1046. {
  1047. strcat(string, "(/f)amily /fare /som /turela\n");
  1048. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1049. }
  1050. if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 7)
  1051. {
  1052. strcat(string, "(/f)amily /givelicense /startlesson /stoplesson /som\n");
  1053. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1054. }
  1055. if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 8)
  1056. {
  1057. strcat(string, "(/f)amily /portable /som\n");
  1058. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1059. }
  1060. if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 9)
  1061. {
  1062. strcat(string, "/news /live /paper /papers (/f)amily /som\n");
  1063. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1064. }
  1065. if (PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 10)
  1066. {
  1067. strcat(string, "|•/towls |•/towsf |•/towlv |•/towrepair |\n");
  1068. strcat(string, "|•/towrefil |• |• |• |\n");
  1069. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1070. }
  1071. if(IsAMember(playerid))
  1072. {
  1073. strcat(string, "\n");
  1074. strcat(string, "•/f)amily ---> •Vorbesti pe chatu-l Factiunii\n");
  1075. strcat(string, "•/cabinet ---> •Iti iei lucruri din HQ!\n");
  1076. strcat(string, "•/tie ---> •Legi un player\n");
  1077. strcat(string, "•/untie ---> •Dezlegi un player\n");
  1078. strcat(string, "•/seif ---> •Te conectezi la seifu Factiunii\n");
  1079. strcat(string, "•/som ---> •Vezi playerii Online!\n");
  1080. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1081. }
  1082. if (PlayerData[playerid][pLeader] >= 1)
  1083. {
  1084. strcat(string, "\n");
  1085. strcat(string, "•/invite ---> •Invita un jucator in factiunea TA!\n");
  1086. strcat(string, "•/uninvite ---> •Scoate un jucator din factiunea TA!\n");
  1087. strcat(string, "•/setrank ---> •Setezi RANK-UL unui jucator!\n");
  1088. strcat(string, "•/fwarn ---> •Acorzi unui jucator WARN/AVERTISMENT!\n");
  1089. strcat(string, "•/offuninvite ---> •Scoti un jucator cand este Offline!\n");
  1090. strcat(string, "•/rfc ---> •Respawnezi masinile factiunii!\n");
  1091. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FACTIONS •·.·´¯`·.·•",string,"Inchide","");
  1092. }
  1093. }
  1094. case 6:
  1095. {
  1096. strcat(string, "•/atmbalance ---> •Vezi suma ta din ATM.\n");
  1097. strcat(string, "•/atmwithdraw ---> •Scoti bani din ATM.\n");
  1098. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ATM •·.·´¯`·.·•",string,"Inchide","");
  1099. }
  1100. case 7:
  1101. {
  1102. strcat(string, "|•/irc join |•/irc admins |•/irc leave |•/i |\n");
  1103. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• IRC •·.·´¯`·.·•",string,"Inchide","");
  1104. }
  1105. case 8:
  1106. {
  1107. strcat(string, "•/call ---> •Apeleaza un player!\n");
  1108. strcat(string, "•/call 112 ---> •Suna la Politie/Medici!\n");
  1109. strcat(string, "•/sms ---> •Trimite un SMS unui player!\n");
  1110. strcat(string, "•/pickup ---> •Raspunzi la Telefon!\n");
  1111. strcat(string, "•/number ---> •Afla numarul de TEL unui jucator!\n");
  1112. strcat(string, "•/givenumber ---> •Dai unui player numarul tau de Telefon!\n");
  1113. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• TELEFON •·.·´¯`·.·•",string,"Inchide","");
  1114. }
  1115. case 9:
  1116. {
  1117. strcat(string, "|•/enter |•/exit |•/open |•/home |\n");
  1118. strcat(string, "|•/housewithdraw |•/sellhouse |•/sleep |•/buyhouse |\n");
  1119. strcat(string, "|•/cellphonehelp |•/help |•/businesshelp |•/leaderhelp |\n");
  1120. strcat(string, "|•/heal |•/houseupgrade |•(/hu) |•/setrentable |\n");
  1121. strcat(string, "|•/home |•/evictall |•/setrent |•/evict |\n");
  1122. strcat(string, "|•/fishhelp |•/cookhelp |•/irchelp |•/tv (off/player) |\n");
  1123. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• HOUSE/CASA •·.·´¯`·.·•",string,"Inchide","");
  1124. }
  1125. case 10:
  1126. {
  1127. strcat(string, "|•/bizinfo |•/bizfee |•/bizname |•/prodprice |\n");
  1128. strcat(string, "|•/enter |•/exit |•/open |•/sellbiz |\n");
  1129. strcat(string, "|•/extortion |•/bizgunprice |•/bizbank |•/bizwithdraw |");
  1130. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• BUSINESS •·.·´¯`·.·•",string,"Inchide","");
  1131. }
  1132. case 11:
  1133. {
  1134. strcat(string, "•/fish ---> •Try to catch a fish\n");
  1135. strcat(string, "•/fishes ---> •Show the fishes you have caught\n");
  1136. strcat(string, "•/throwback ---> •Throw the last fish you caught back\n");
  1137. strcat(string, "•/releasefish ---> •Release one of your fishes\n");
  1138. strcat(string, "•/throwbackall ---> •\n");
  1139. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• FISHING •·.·´¯`·.·•",string,"Inchide","");
  1140. }
  1141. case 12:
  1142. {
  1143. strcat(string, "•/cook ---> •See all the options available\n");
  1144. strcat(string, "•/eat ---> •Eat something that you have Cooked\n");
  1145. strcat(string, "•/cooked ---> •See everything that you have Cooked\n");
  1146. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• COOKING •·.·´¯`·.·•",string,"Inchide","");
  1147. }
  1148. case 13:
  1149. {
  1150. strcat(string, "|•/fall |•/injured |•/push |•/handsup |\n");
  1151. strcat(string, "|•/medic |•/robman |•/taichi |•/lookout |\n");
  1152. strcat(string, "|•/deal |•/crack |•/smokem |•/smokef |\n");
  1153. strcat(string, "|•/rollfall |•/bat |•/lifejump |•/lay2 |\n");
  1154. strcat(string, "|•/gsign1 |•/gsign2 |•/gsign3 |•/gsign4 |\n");
  1155. strcat(string, "|•/slapass |•/slapped |•/celebrate |•/follow |\n");
  1156. strcat(string, "|•/hitch |•/bitchslap |•/cpr |•/rap |\n");
  1157. strcat(string, "|•/dance |•/fsit |•/msit |•/relax |\n");
  1158. strcat(string, "|•/yes |•/deal2 |•/thankyou |•/invite1 |\n");
  1159. strcat(string, "|•/bomb |•/drunk |•/getarrested |•/laugh |\n");
  1160. strcat(string, "|•/kiss |•/cellin |•/cellout |•/crossarms |\n");
  1161. strcat(string, "|•/groundsit |•/chat |•/dance |•/fucku |\n");
  1162. strcat(string, "|•/chant |•/aim |•/lowthrow |•/highthrow |\n");
  1163. strcat(string, "|•/gsign5 |•/gift |•/sit |•/animsex |\n");
  1164. strcat(string, "|•/greet |•/stand |•/injured2 |•/piss |\n");
  1165. strcat(string, "|•/wankoff |•/crossarms2 |•/crossarms3 |•/vomit |\n");
  1166. strcat(string, "|•/win |•/win2 |•/chairsit |•/reload |\n");
  1167. strcat(string, "|•/invite2 |•/eatsit |•/celebrate2 |•/scratch |\n");
  1168. strcat(string, "|•/lay |•/strip |•/lean |•/wave |\n");
  1169. strcat(string, "|•/bj |•/shaken |•/hide |•/gangwalk |\n");
  1170. ShowPlayerDialog(playerid, 987, DIALOG_STYLE_MSGBOX , "•·.·´¯`·.·• ANIMATII •·.·´¯`·.·•",string,"Inchide","");
  1171. }
  1172. }
  1173. }
  1174. }
  1175. }
  1176. if(dialogid == 10)
  1177. {
  1178. if(!response)
  1179. {
  1180. RemovePlayerFromVehicle(playerid);
  1181. return 1;
  1182. }
  1183. else
  1184. {
  1185. new bani = GetVehicleAsigurare(CarExploded[playerid] + PreVehicle);
  1186. if(GetPlayerCash(playerid) >= bani)
  1187. {
  1188. new string[MAX_STRING];
  1189. ConsumingMoney[playerid] = 1;
  1190. GivePlayerCash(playerid, -bani);
  1191. CarData[CarExploded[playerid]][cExploded] = 0;
  1192. format(string, sizeof(string), "UPDATE cars SET Exploded='%d' WHERE id=%d",CarData[CarExploded[playerid]][cExploded], CarExploded[playerid]);
  1193. mysql_query(string);
  1194. new hour,minute,second;
  1195. gettime(hour,minute,second);
  1196. getdate(year, month, day);
  1197. format(string, sizeof(string), "%s a platit (repair own car) -$%d (%d/%d/%d ora: %d:%d:%d )", PlayerData[playerid][pNume],bani, day, month, year, hour,minute,second);
  1198. PayLog(string);
  1199. }
  1200. else
  1201. {
  1202. SendClientMessage(playerid, COLOR_WHITE, "Nu ai destui bani la tine.");
  1203. }
  1204. }
  1205. }
  1206. if(dialogid == 11)
  1207. {
  1208. if(!response)
  1209. {
  1210. RemovePlayerFromVehicle(playerid);
  1211. return 1;
  1212. }
  1213. {
  1214. new bani = GetVehicleAsigurare(CarExploded[playerid] + PreVehicle);
  1215. if(GetPlayerCash(playerid) >= bani)
  1216. {
  1217. new string[MAX_STRING];
  1218. ConsumingMoney[playerid] = 1;
  1219. GivePlayerCash(playerid, 0 -bani);
  1220. CarData[CarExploded[playerid]][cExploded] = 0;
  1221. format(string, sizeof(string), "UPDATE cars SET Exploded='%d' WHERE id=%d",CarData[CarExploded[playerid]][cExploded], CarExploded[playerid]);
  1222. mysql_query(string);
  1223. new hour,minute,second;
  1224. gettime(hour,minute,second);
  1225. getdate(year, month, day);
  1226. format(string, sizeof(string), "%s a platit (repair own car) -$%d (%d/%d/%d ora: %d:%d:%d )", PlayerData[playerid][pNume],bani, day, month, year, hour,minute,second);
  1227. PayLog(string);
  1228. }
  1229. else
  1230. {
  1231. SendClientMessage(playerid, COLOR_WHITE, "Nu ai destui bani la tine.");
  1232. }
  1233. }
  1234. }
  1235. if(dialogid == 222)
  1236. {
  1237. if(!response)
  1238. {
  1239. SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
  1240. return 1; // We processed it
  1241. }
  1242. switch(listitem)
  1243. {
  1244. case 0:
  1245. {
  1246. SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
  1247. SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to normal!");
  1248. }
  1249. case 1:
  1250. {
  1251. SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
  1252. SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to boxing!");
  1253. }
  1254. case 2:
  1255. {
  1256. SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
  1257. SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to kungfu!");
  1258. }
  1259. case 3:
  1260. {
  1261. SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
  1262. SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to kneehead!");
  1263. }
  1264. case 4:
  1265. {
  1266. SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
  1267. SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to grabkick!");
  1268. }
  1269. case 5:
  1270. {
  1271. SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
  1272. SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to elbow!");
  1273. }
  1274. }
  1275. }
  1276. if(dialogid == 1)
  1277. {
  1278. if(!response)
  1279. {
  1280. SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
  1281. return 1; // We processed it
  1282. }
  1283. switch(listitem)
  1284. {
  1285. case 0:
  1286. {
  1287. SetPlayerAttachedObject( playerid, 0, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
  1288. }
  1289. case 1:
  1290. {
  1291. SetPlayerAttachedObject( playerid, 0, 18913, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
  1292. }
  1293. case 2:
  1294. {
  1295. SetPlayerAttachedObject( playerid, 0, 18914, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
  1296. }
  1297. case 3:
  1298. {
  1299. SetPlayerAttachedObject( playerid, 0, 18915, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
  1300. }
  1301. case 4:
  1302. {
  1303. SetPlayerAttachedObject( playerid, 0, 18916, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
  1304. }
  1305. case 5:
  1306. {
  1307. SetPlayerAttachedObject( playerid, 0, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
  1308. }
  1309. case 6:
  1310. {
  1311. SetPlayerAttachedObject( playerid, 0, 18918, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
  1312. }
  1313. case 7:
  1314. {
  1315. RemovePlayerAttachedObject(playerid, 0);
  1316. }
  1317. }
  1318. }
  1319. if(dialogid == 666)
  1320. {
  1321. if(!response)
  1322. {
  1323. SendClientMessage(playerid, COLOR_GRAD1, "Ai anulat selectia");
  1324. return 1;
  1325. }
  1326. else
  1327. {
  1328. new string[256];
  1329. new nume[64];
  1330. GetPlayerName(playerid, nume, sizeof(nume));
  1331. new sqlaccountstatus = MySQLCheckAccount(nume);
  1332. PlayerData[playerid][pSQLID] = sqlaccountstatus;
  1333. strmid(string, inputtext, 0, strlen(inputtext), 64);
  1334. format(string, sizeof(string), "UPDATE players SET %s WHERE id=%d", string, PlayerData[playerid][pSQLID]);
  1335. mysql_query(string);
  1336. format(string, sizeof(string), "%s", string);
  1337. SendClientMessage(playerid, COLOR_WHITE, string);
  1338. return 1;
  1339. }
  1340. }
  1341. if(dialogid == 150)////////////
  1342. {
  1343. if(response)
  1344. {
  1345. if(listitem == 0)
  1346. {
  1347. ShowPlayerDialog(playerid,1898, DIALOG_STYLE_LIST, "{F81414}GPS:Locuri Importante","1. Spawn Civil\n2. Primarie\n3. Primarie LV\n4. Banca LS\n5. LVPD\n6. GARA LS\n7. Examen Auto\n8. Dealership","Mark","Renunta");
  1348. }
  1349. if(listitem == 1)
  1350. {
  1351. ShowPlayerDialog(playerid,1900, DIALOG_STYLE_LIST, "{F81414}GPS:Locuri Primare","1. Aeroport LS\n2. Aeroport LV\n3. Magazin Arme LS\n4. Alhambra\n5. Cazino LS\n6. Binco Shop\n7. Magazin 24/7\n8. Cazino LV\n9. CNN Studio\n10. Chiosc de Materiale\n11. Chiosc de Materiale LV\n12. Burger Shot\n13. Victim","Mark","Renunta");
  1352. }
  1353. if(listitem == 2)
  1354. {
  1355. ShowPlayerDialog(playerid,1901, DIALOG_STYLE_LIST, "{F81414}GPS:Tunning Car","1. Tunning Car LS\n2. Tunning Car Low Rider\n3. Tunning Car SF","Mark","Renunta");
  1356. }
  1357. }
  1358. }
  1359. if(dialogid == 79)////////////
  1360. {
  1361. if(response)
  1362. {
  1363. if(listitem == 0)
  1364. {
  1365. ShowPlayerDialog(playerid,1902, DIALOG_STYLE_LIST, "{F81414}Job-uri Legale:","Detectiv\nAvocat\nMecanic\nAngajat RDS\nBoxer\nLucrator la animale\nCamionagiu\nFermier\nGunoier\n Transportor de bagaje","MARCHEAZA","Renunta");
  1366. }
  1367. if(listitem == 1)
  1368. {
  1369. ShowPlayerDialog(playerid,1903, DIALOG_STYLE_LIST, "{F81414}Job-uri Ilegale:","Prostituata\nDealer de Droguri\nSpargator de masini\nDealer de Arme","MARCHEAZA","Renunta");
  1370. }
  1371. }
  1372. }
  1373. if(dialogid == 1898)
  1374. {
  1375. if(response)
  1376. {
  1377. if(listitem == 0)
  1378. {
  1379. SetPlayerCheckpoint(playerid,1643.2330,-2242.9656,13.4888,5.0);
  1380. CP[playerid] = 385;
  1381. }
  1382. if(listitem == 1)
  1383. {
  1384. SetPlayerCheckpoint(playerid,1481.1647,-1750.3690,15.4453,5.0);
  1385. CP[playerid] = 385;
  1386. }
  1387. if(listitem == 2)
  1388. {
  1389. SetPlayerCheckpoint(playerid,1968.3793,1622.9545,12.8638,5.0);
  1390. CP[playerid] = 385;
  1391. }
  1392. if(listitem == 3)
  1393. {
  1394. SetPlayerCheckpoint(playerid,1464.9397,-1019.3941,24.7230,5.0);
  1395. CP[playerid] = 385;
  1396. }
  1397. if(listitem == 4)
  1398. {
  1399. SetPlayerCheckpoint(playerid,2288.7671,2424.8879,10.8203,5.0);
  1400. CP[playerid] = 385;
  1401. }
  1402. if(listitem == 5)
  1403. {
  1404. SetPlayerCheckpoint(playerid,1715.8816,-1863.1788,13.5754,5.0);
  1405. CP[playerid] = 385;
  1406. }
  1407. if(listitem == 6)
  1408. {
  1409. SetPlayerCheckpoint(playerid,1600.7926,-2172.3123,13.5547,5.0);
  1410. CP[playerid] = 385;
  1411. }
  1412. if(listitem == 7)
  1413. {
  1414. SetPlayerCheckpoint(playerid,328.9902,-1513.3729,36.0391,5.0);
  1415. CP[playerid] = 385;
  1416. }
  1417. }
  1418. }
  1419. if(dialogid == 1899)
  1420. {
  1421. if(response)
  1422. {
  1423. if(listitem == 0)
  1424. {
  1425. SetPlayerCheckpoint(playerid,1557.7139,-1626.5482,13.3828,5.0);
  1426. CP[playerid] = 385;
  1427. }
  1428. if(listitem == 1)
  1429. {
  1430. SetPlayerCheckpoint(playerid,2285.7959,2419.4863,10.8203,5.0);
  1431. CP[playerid] = 385;
  1432. }
  1433. if(listitem == 2)
  1434. {
  1435. SetPlayerCheckpoint(playerid,88.8326,1920.7456,17.8977,5.0);
  1436. CP[playerid] = 385;
  1437. }
  1438. if(listitem == 3)
  1439. {
  1440. SetPlayerCheckpoint(playerid,1998.4862,-1449.1925,13.5596,5.0);
  1441. CP[playerid] = 385;
  1442. }
  1443. if(listitem == 4)
  1444. {
  1445. SetPlayerCheckpoint(playerid,1790.3000,-1900.9171,13.3969,5.0);
  1446. CP[playerid] = 385;
  1447. }
  1448. if(listitem == 5)
  1449. {
  1450. SetPlayerCheckpoint(playerid,982.2626,1754.6533,8.6484,5.0);
  1451. CP[playerid] = 385;
  1452. }
  1453. if(listitem == 6)
  1454. {
  1455. SetPlayerCheckpoint(playerid,1031.6426,-380.4761,72.3793,5.0);
  1456. CP[playerid] = 385;
  1457. }
  1458. if(listitem == 7)
  1459. {
  1460. SetPlayerCheckpoint(playerid,644.8242,-1359.5795,13.5824,5.0);
  1461. CP[playerid] = 385;
  1462. }
  1463. if(listitem == 8)
  1464. {
  1465. SetPlayerCheckpoint(playerid,906.4628,-1223.1034,16.9766,5.0);
  1466. CP[playerid] = 385;
  1467. }
  1468. if(listitem == 9)
  1469. {
  1470. SetPlayerCheckpoint(playerid,665.2108,-1276.0153,13.4609,5.0);
  1471. CP[playerid] = 385;
  1472. }
  1473. if(listitem == 10)
  1474. {
  1475. SetPlayerCheckpoint(playerid,1947.3896,1341.8748,9.1094,5.0);
  1476. CP[playerid] = 385;
  1477. }
  1478. if(listitem == 11)
  1479. {
  1480. SetPlayerCheckpoint(playerid,1481.3826,2776.0894,10.8203,5.0);
  1481. CP[playerid] = 385;
  1482. }
  1483. if(listitem == 12)
  1484. {
  1485. SetPlayerCheckpoint(playerid,1434.1664,737.6362,10.8203,5.0);
  1486. CP[playerid] = 385;
  1487. }
  1488. if(listitem == 13)
  1489. {
  1490. SetPlayerCheckpoint(playerid,2198.2581,1834.6288,10.8203,5.0);
  1491. CP[playerid] = 385;
  1492. }
  1493. }
  1494. }
  1495. if(dialogid == 1900)
  1496. {
  1497. if(response)
  1498. {
  1499. if(listitem == 0)
  1500. {
  1501. SetPlayerCheckpoint(playerid,1961.6449,-2180.4912,13.5469,5.0);
  1502. CP[playerid] = 385;
  1503. }
  1504. if(listitem == 1)
  1505. {
  1506. SetPlayerCheckpoint(playerid,1728.3140,1600.1707,10.0969,5.0);
  1507. CP[playerid] = 385;
  1508. }
  1509. if(listitem == 2)
  1510. {
  1511. SetPlayerCheckpoint(playerid,1791.2416,-1166.3087,23.8281,5.0);
  1512. CP[playerid] = 385;
  1513. }
  1514. if(listitem == 3)
  1515. {
  1516. SetPlayerCheckpoint(playerid,1828.9137,-1682.3673,13.5469,5.0);
  1517. CP[playerid] = 385;
  1518. }
  1519. if(listitem == 4)
  1520. {
  1521. SetPlayerCheckpoint(playerid,1291.4736,-1156.4912,23.8281,5.0);
  1522. CP[playerid] = 385;
  1523. }
  1524. if(listitem == 5)
  1525. {
  1526. SetPlayerCheckpoint(playerid,2243.6418,-1659.9858,15.2881,5.0);
  1527. CP[playerid] = 385;
  1528. }
  1529. if(listitem == 6)
  1530. {
  1531. SetPlayerCheckpoint(playerid,998.3435,-920.3079,42.1797,5.0);
  1532. CP[playerid] = 385;
  1533. }
  1534. if(listitem == 7)
  1535. {
  1536. SetPlayerCheckpoint(playerid,2026.9475,1007.9462,10.8203,5.0);
  1537. CP[playerid] = 385;
  1538. }
  1539. if(listitem == 8)
  1540. {
  1541. SetPlayerCheckpoint(playerid,844.9108,-1043.2010,25.4653,5.0);
  1542. CP[playerid] = 385;
  1543. }
  1544. if(listitem == 9)
  1545. {
  1546. SetPlayerCheckpoint(playerid,1410.3835,-1300.2887,13.5477,5.0);
  1547. CP[playerid] = 385;
  1548. }
  1549. if(listitem == 10)
  1550. {
  1551. SetPlayerCheckpoint(playerid,1712.7357,916.2137,10.8203,5.0);
  1552. CP[playerid] = 385;
  1553. }
  1554. if(listitem == 11)
  1555. {
  1556. SetPlayerCheckpoint(playerid,1198.8824,-920.7828,43.0318,5.0);
  1557. CP[playerid] = 385;
  1558. }
  1559. if(listitem == 12)
  1560. {
  1561. SetPlayerCheckpoint(playerid,455.6879,-1500.3929,31.0506,5.0);
  1562. CP[playerid] = 385;
  1563. }
  1564. }
  1565. }
  1566. if(dialogid == 1901)
  1567. {
  1568. if(response)
  1569. {
  1570. if(listitem == 0)
  1571. {
  1572. SetPlayerCheckpoint(playerid,1040.7679,-1032.7428,31.9769,5.0);
  1573. CP[playerid] = 385;
  1574. }
  1575. if(listitem == 1)
  1576. {
  1577. SetPlayerCheckpoint(playerid,2644.5894,-2018.2365,13.5518,5.0);
  1578. CP[playerid] = 385;
  1579. }
  1580. if(listitem == 2)
  1581. {
  1582. SetPlayerCheckpoint(playerid,-2708.5667,216.8702,4.1797,5.0);
  1583. CP[playerid] = 385;
  1584. }
  1585. }
  1586. }
  1587. if(dialogid == 5)
  1588. {
  1589. if(response)
  1590. {
  1591. if(listitem == 0)
  1592. {
  1593. SetPlayerPos(playerid,1564.9440,-1666.0071,28.3956);
  1594. SetPlayerInterior(playerid,0);
  1595. }
  1596. if(listitem == 1)
  1597. {
  1598. SetPlayerPos(playerid,243.8464,66.4830,1003.6406);
  1599. SetPlayerInterior(playerid,6);
  1600. }
  1601. if(listitem == 2)
  1602. {
  1603. SetPlayerPos(playerid,1525.9102,-1677.9510,5.8906);
  1604. SetPlayerInterior(playerid,0);
  1605. }
  1606. }
  1607. }
  1608. if(dialogid == 1902)
  1609. {
  1610. if(response)
  1611. {
  1612. if(listitem == 0)
  1613. {
  1614. SendClientMessage(playerid, 0x80FF80C8, "* Job-ul {FF00FF}`Detectiv` {80FF80}se ia de la primarie !");
  1615. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am pus un CheckPoint pe harta !");
  1616. SetPlayerCheckpoint(playerid,1481.0435,-1770.1893,18.7958,5.0);
  1617. CP[playerid] = 385;
  1618. }
  1619. if(listitem == 1)
  1620. {
  1621. SendClientMessage(playerid, 0x80FF80C8, "* Job-ul {FF00FF}`Avocat` {80FF80}se ia de la primarie !");
  1622. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am pus un CheckPoint pe harta !");
  1623. SetPlayerCheckpoint(playerid,1481.0435,-1770.1893,18.7958,5.0);
  1624. CP[playerid] = 385;
  1625. }
  1626. if(listitem == 2)
  1627. {
  1628. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1629. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Mecanic{80FF80}` !");
  1630. SetPlayerCheckpoint(playerid,-1932.3859,276.2117,41.0391,5.0);
  1631. CP[playerid] = 385;
  1632. }
  1633. if(listitem == 3)
  1634. {
  1635. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1636. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Angajat RDS{80FF80}` !");
  1637. SetPlayerCheckpoint(playerid,700.9460,-1571.0916,14.2422,5.0);
  1638. CP[playerid] = 385;
  1639. }
  1640. if(listitem == 4)
  1641. {
  1642. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1643. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Boxer{80FF80}` !");
  1644. SetPlayerCheckpoint(playerid,766.0804,14.5133,1000.7004,5.0);
  1645. CP[playerid] = 385;
  1646. }
  1647. if(listitem == 5)
  1648. {
  1649. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1650. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Lucrator la animale{80FF80}` !");
  1651. SetPlayerCheckpoint(playerid,-354.2195,-1059.4678,59.2631,5.0);
  1652. CP[playerid] = 385;
  1653. }
  1654. if(listitem == 6)
  1655. {
  1656. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1657. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Camionagiu{80FF80}` !");
  1658. SetPlayerCheckpoint(playerid,-77.7288,-1136.3896,1.0781,5.0);
  1659. CP[playerid] = 385;
  1660. }
  1661. if(listitem == 7)
  1662. {
  1663. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1664. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Fermier{80FF80}` !");
  1665. SetPlayerCheckpoint(playerid,-395.7428,-1443.8876,25.7209,5.0);
  1666. CP[playerid] = 385;
  1667. }
  1668. if(listitem == 8)
  1669. {
  1670. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1671. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Gunoier{80FF80}` !");
  1672. SetPlayerCheckpoint(playerid,2179.9507,-2256.5168,14.77,5.0);
  1673. CP[playerid] = 385;
  1674. }
  1675. if(listitem == 9)
  1676. {
  1677. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1678. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Transportor de bagaje{80FF80}` !");
  1679. SetPlayerCheckpoint(playerid,2113.9436,-2416.5444,13.5469,5.0);
  1680. CP[playerid] = 385;
  1681. }
  1682. }
  1683. }
  1684. if(dialogid == 1903)
  1685. {
  1686. if(response)
  1687. {
  1688. if(listitem == 0)
  1689. {
  1690. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1691. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Prostituata{80FF80}` !");
  1692. SendClientMessage(playerid, 0x80FF80C8, "* Nu uita, acesta este un job {800000}ILEGAL {80FF80}!");
  1693. SetPlayerCheckpoint(playerid,2421.7549,-1220.5667,25.4753,5.0);
  1694. CP[playerid] = 385;
  1695. }
  1696. if(listitem == 1)
  1697. {
  1698. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1699. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Dealer de droguri{80FF80}` !");
  1700. SendClientMessage(playerid, 0x80FF80C8, "* Nu uita, acesta este un job {800000}ILEGAL {80FF80}!");
  1701. SetPlayerCheckpoint(playerid,2166.3772,-1675.3829,15.0859,5.0);
  1702. CP[playerid] = 385;
  1703. }
  1704. if(listitem == 2)
  1705. {
  1706. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1707. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Hot de masini{80FF80}` !");
  1708. SendClientMessage(playerid, 0x80FF80C8, "* Nu uita, acesta este un job {800000}ILEGAL {80FF80}!");
  1709. SetPlayerCheckpoint(playerid,1109.3318,-1796.3042,16.5938,5.0);
  1710. CP[playerid] = 385;
  1711. }
  1712. if(listitem == 3)
  1713. {
  1714. SendClientMessage(playerid, 0x80FF80C8, "* Ti-am activat un CheckPoint pe mini-map !");
  1715. SendClientMessage(playerid, 0x80FF80C8, "* Acolo poti muncii sau poti obtine job-ul `{FF00FF}Dealer de arme{80FF80}` !");
  1716. SendClientMessage(playerid, 0x80FF80C8, "* Nu uita, acesta este un job {800000}ILEGAL {80FF80}!");
  1717. SetPlayerCheckpoint(playerid,1366.4325,-1275.2096,13.5469,5.0);
  1718. CP[playerid] = 385;
  1719. }
  1720. }
  1721. }
  1722. if(dialogid == 1904)
  1723. {
  1724. if(response)
  1725. {
  1726. if(listitem == 0)
  1727. {
  1728. SetPlayerCheckpoint(playerid,-761.0561,-107.6063,65.8785,5.0);
  1729. CP[playerid] = 331;
  1730. }
  1731. if(listitem == 1)
  1732. {
  1733. SetPlayerCheckpoint(playerid,-166.4153,-283.8017,3.1778,5.0);
  1734. CP[playerid] = 332;
  1735. }
  1736. if(listitem == 2)
  1737. {
  1738. SetPlayerCheckpoint(playerid,2425.7971,1916.4724,6.0156,5.0);
  1739. CP[playerid] = 333;
  1740. }
  1741. if(listitem == 3)
  1742. {
  1743. SetPlayerCheckpoint(playerid,558.6860,-1267.8656,17.2422,5.0);
  1744. CP[playerid] = 334;
  1745. }
  1746. if(listitem == 4)
  1747. {
  1748. SetPlayerCheckpoint(playerid,-1889.1088,-1715.0823,21.7500,5.0);
  1749. CP[playerid] = 335;
  1750. }
  1751. }
  1752. }
  1753. if(dialogid == 12346 || dialogid == 12347)
  1754. {
  1755. if(!response)
  1756. {
  1757. Kick(playerid);
  1758. return 1;
  1759. }
  1760. if(strlen(inputtext))
  1761. {
  1762. new ok = 1;
  1763. for(new i=0;i<strlen(inputtext);i++)
  1764. {
  1765. if(!IsALetter(inputtext[i]))
  1766. ok = 0;
  1767. }
  1768. if(ok == 1)
  1769. {
  1770. new tmppass[64];
  1771. strmid(tmppass, inputtext, 0, sizeof ( tmppass ), 255);
  1772. OnPlayerLogin(playerid,tmppass);
  1773. }
  1774. else
  1775. {
  1776. new loginstring[128];
  1777. new loginname[64];
  1778. GetPlayerName(playerid,loginname,sizeof(loginname));
  1779. format(loginstring,sizeof(loginstring),"PAROLA GRESITA\nTe Rog Baga Parola Corecta:",loginname);
  1780. ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit");
  1781. gPlayerLogTries[playerid] += 1;
  1782. if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
  1783. }
  1784. }
  1785. else
  1786. {
  1787. new loginstring[128];
  1788. new loginname[64];
  1789. GetPlayerName(playerid,loginname,sizeof(loginname));
  1790. format(loginstring,sizeof(loginstring),"PAROLA GRESITA\nTe Rog Baga Parola Corecta:",loginname);
  1791. ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit");
  1792. gPlayerLogTries[playerid] += 1;
  1793. if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
  1794.  
  1795. }
  1796. }
  1797. if(dialogid == 12345)
  1798. {
  1799. if(!response)
  1800. {
  1801. Kick(playerid);
  1802. return 1;
  1803. }
  1804. if(strlen(inputtext))
  1805. {
  1806. GetPlayerName(playerid, sendername, sizeof(sendername));
  1807. new sqlaccountexists = MySQLCheckAccount(sendername);
  1808. if (sqlaccountexists != 0)
  1809. {
  1810. SendClientMessage(playerid, COLOR_YELLOW, "Acel nume este deja luat, te rog alege altul.");
  1811. return 1;
  1812. }
  1813. new tmppass[64];
  1814. //if(strfind(inputtext, "|", true) != -1)
  1815. new ok = 1;
  1816. for(new i=0;i<strlen(inputtext);i++)
  1817. {
  1818. if(!IsALetter(inputtext[i]))
  1819. ok = 0;
  1820. }
  1821. if(ok == 0)
  1822. {
  1823. gPlayerAccount[playerid] = 0;
  1824. new regstring[512];
  1825. new regname[64];
  1826. GetPlayerName(playerid,regname,sizeof(regname));
  1827. format(regstring,sizeof(regstring),"{FFFFFF}Bine ai venit {8CBBF2}%s {FFFFFF}!\n\nVa rugam sa introduceti o parola in casuta pentru inregistrare !",regname);
  1828. ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Inregistrare",regstring,"Register","Iesire");
  1829. }
  1830. else
  1831. {
  1832. strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
  1833. OnPlayerRegister(playerid,tmppass);
  1834. }
  1835. }
  1836. else
  1837. {
  1838. new regstring[512];
  1839. new regname[64];
  1840. GetPlayerName(playerid,regname,sizeof(regname));
  1841. format(regstring,sizeof(regstring),"{FFFFFF}Bine ai venit {8CBBF2}%s {FFFFFF}!\n\nVa rugam sa introduceti o parola in casuta pentru inregistrare !",regname);
  1842. ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Inregistrare",regstring,"Register","Iesire");
  1843. }
  1844. }
  1845. if(dialogid == 2)
  1846. {
  1847. if(!response)
  1848. {
  1849. SendClientMessage(playerid, COLOR_GRAD1, "Ai anulat selectia");
  1850. return 1;
  1851. }
  1852. else
  1853. {
  1854. new string[256];
  1855. switch(listitem)
  1856. {
  1857. case 0:
  1858. {
  1859. format(string, sizeof(string), "~r~-$%d", 500);
  1860. GameTextForPlayer(playerid, string, 5000, 1);
  1861. GivePlayerCash(playerid,-5000);
  1862. SBizzData[9][sbTill] += 5000;
  1863. ExtortionSBiz(9, 500);
  1864. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  1865. new randphone = 1000 + random(8999);//minimum 1000 max 9999
  1866. PlayerData[playerid][pPnumber] = randphone;
  1867. format(string, sizeof(string), " Ti-ai cumparat un nou telefon, numarul este %d", randphone);
  1868. SendClientMessage(playerid, COLOR_GRAD4, string);
  1869. format(string, sizeof(string), "UPDATE players SET PhoneNr='%d' WHERE id=%d", PlayerData[playerid][pPnumber], PlayerData[playerid][pSQLID]);
  1870. mysql_query(string);
  1871. }
  1872. case 1:
  1873. {
  1874. GivePlayerCash(playerid,-2000);
  1875. SBizzData[9][sbTill] += 2000;
  1876. ExtortionSBiz(9, 500);
  1877. format(string, sizeof(string), "~r~-$%d", 1000);
  1878. GameTextForPlayer(playerid, string, 5000, 1);
  1879. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  1880. new prize;
  1881. new symb1[32]; new symb2[32]; new symb3[32];
  1882. new randcard1 = random(10);//minimum 1000 max 9999
  1883. new randcard2 = random(10);//minimum 1000 max 9999
  1884. new randcard3 = random(10);//minimum 1000 max 9999
  1885. if(randcard1 >= 5)
  1886. {
  1887. format(symb1, sizeof(symb1), "~b~]");
  1888. randcard1 = 1;
  1889. }
  1890. else if(randcard1 <= 4 && randcard1 >= 2)
  1891. {
  1892. format(symb1, sizeof(symb1), "~g~]");
  1893. randcard1 = 2;
  1894. }
  1895. else if(randcard1 < 2)
  1896. {
  1897. format(symb1, sizeof(symb1), "~y~]");
  1898. randcard1 = 3;
  1899. }
  1900. if(randcard2 >= 5)
  1901. {
  1902. format(symb2, sizeof(symb2), "~b~]");
  1903. randcard2 = 1;
  1904. }
  1905. else if(randcard2 <= 4 && randcard2 >= 2)
  1906. {
  1907. format(symb2, sizeof(symb2), "~g~]");
  1908. randcard2 = 2;
  1909. }
  1910. else if(randcard2 < 2)
  1911. {
  1912. format(symb2, sizeof(symb2), "~y~]");
  1913. randcard2 = 3;
  1914. }
  1915. if(randcard3 >= 5)
  1916. {
  1917. format(symb3, sizeof(symb3), "~b~]");
  1918. randcard3 = 1;
  1919. }
  1920. else if(randcard3 <= 4 && randcard3 >= 2)
  1921. {
  1922. format(symb3, sizeof(symb3), "~g~]");
  1923. randcard3 = 2;
  1924. }
  1925. else if(randcard3 < 2)
  1926. {
  1927. format(symb3, sizeof(symb3), "~y~]");
  1928. randcard3 = 3;
  1929. }
  1930. if(randcard1 == randcard2 && randcard1 == randcard3)
  1931. {
  1932. if(randcard1 > 5)
  1933. {
  1934. prize = 25000;
  1935. }
  1936. if(randcard1 <= 4 && randcard1 >= 2)
  1937. {
  1938. prize = 10000;
  1939. }
  1940. if(randcard1 < 2)
  1941. {
  1942. prize = 2000;
  1943. }
  1944. GivePlayerCash(playerid,prize);
  1945. if(prize > 0)
  1946. {
  1947. format(string, sizeof(string), "Felicitari, ai castigat %d$", prize);
  1948. SendClientMessage(playerid, COLOR_GRAD4, string);
  1949. }
  1950. else
  1951. {
  1952. SendClientMessage(playerid, COLOR_WHITE, "Degamagire, nu ai castigat nimic.");
  1953. }
  1954. SBizzData[9][sbTill] -= prize;
  1955. ExtortionSBiz(9, prize);
  1956. format(string, sizeof(string), "%s %s %s ~n~~n~~w~~g~$%d",symb1,symb2,symb3, prize);
  1957. }
  1958. else
  1959. {
  1960. format(string, sizeof(string), "%s %s %s ~n~~n~~w~~r~$0",symb1,symb2,symb3);
  1961. }
  1962. GameTextForPlayer(playerid, string, 3000, 3);
  1963. }
  1964. case 2:
  1965. {
  1966. GivePlayerCash(playerid,-5000);
  1967. SBizzData[9][sbTill] += 5000;
  1968. ExtortionSBiz(9, 5000);
  1969. format(string, sizeof(string), "~r~-$%d", 5000);
  1970. GameTextForPlayer(playerid, string, 5000, 1);
  1971. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  1972. PlayerData[playerid][pPhoneBook] = 1;
  1973. format(string, sizeof(string), "Ti-ai cumparat carte de telefon, acum poti gasi numerele de telefon al playerilor!");
  1974. SendClientMessage(playerid, COLOR_GRAD4, string);
  1975. SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /number <playerid/PartOfName>.");
  1976. format(string, sizeof(string), "UPDATE players SET Phonebook='%d' WHERE id=%d", PlayerData[playerid][pPhoneBook], PlayerData[playerid][pSQLID]);
  1977. mysql_query(string);
  1978. }
  1979. case 3:
  1980. {
  1981. GivePlayerCash(playerid,-1000);
  1982. SBizzData[9][sbTill] += 1000;
  1983. ExtortionSBiz(9, 500);
  1984. format(string, sizeof(string), "~r~-$%d", 500);
  1985. GameTextForPlayer(playerid, string, 5000, 1);
  1986. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  1987. gDice[playerid] = 1;
  1988. format(string, sizeof(string), "Ti-ai cumparat un zar.");
  1989. SendClientMessage(playerid, COLOR_GRAD4, string);
  1990. SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /dice ");
  1991. }
  1992. case 4:
  1993. {
  1994. if (gLastCar[playerid] != 0)
  1995. {
  1996. if(IsPlayerConnected(playerid))
  1997. {
  1998. SendClientMessage(playerid, COLOR_WHITE, "Server: At this momentan, you cannont buy vehicle key.");
  1999. return 1;
  2000. }
  2001. if(HireCar[playerid] != 299)
  2002. {
  2003. HireCar[playerid] = 299;
  2004. }
  2005. GivePlayerCash(playerid,-5000);
  2006. SBizzData[9][sbTill] += 5000;
  2007. ExtortionSBiz(9, 5000);
  2008. format(string, sizeof(string), "~r~-$%d", 5000);
  2009. GameTextForPlayer(playerid, string, 5000, 1);
  2010. SBizzData[9][sbProducts]--;
  2011. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2012. HireCar[playerid] = gLastCar[playerid];
  2013. format(string, sizeof(string), "Ai cumparat key pentru ultima masina in care ai fost.");
  2014. SendClientMessage(playerid, COLOR_GRAD4, string);
  2015. SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /lock ");
  2016. }
  2017. else
  2018. {
  2019. SendClientMessage(playerid, COLOR_WHITE, " Nu ai avut avut nici o masina!");
  2020. }
  2021. }
  2022. case 5:
  2023. {
  2024. GivePlayerCash(playerid,-1000);
  2025. SBizzData[9][sbTill] += 1000;
  2026. ExtortionSBiz(9, 1000);
  2027. format(string, sizeof(string), "~r~-$%d", 50);
  2028. GameTextForPlayer(playerid, string, 5000, 1);
  2029. Condom[playerid] ++;
  2030. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2031. format(string, sizeof(string), "Prezervativ cumparat.");
  2032. SendClientMessage(playerid, COLOR_GRAD4, string);
  2033. }
  2034. case 6:
  2035. {
  2036. GivePlayerCash(playerid, - 3000);
  2037. SBizzData[9][sbTill] += 3000;
  2038. ExtortionSBiz(9, 3000);
  2039. format(string, sizeof(string), "~r~-$%d", 3000);
  2040. GameTextForPlayer(playerid, string, 5000, 1);
  2041. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2042. format(string, sizeof(string), "Ti-ai cumparat radio portabil.");
  2043. SendClientMessage(playerid, COLOR_GRAD4, string);
  2044. SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /radio");
  2045. PlayerData[playerid][pCDPlayer] = 1;
  2046. format(string, sizeof(string), "UPDATE players SET CDPlayer='%d' WHERE id=%d", PlayerData[playerid][pCDPlayer], PlayerData[playerid][pSQLID]);
  2047. mysql_query(string);
  2048. }
  2049. case 7:
  2050. {
  2051. if(Groceries[playerid][pChickens] >= 3)
  2052. {
  2053. SendClientMessage(playerid, COLOR_GREY, " Ai deja pui, mai intai trebuie sa il prepari!");
  2054. return 1;
  2055. }
  2056. GivePlayerCash(playerid, - 100);
  2057. SBizzData[9][sbTill] += 100;
  2058. ExtortionSBiz(9, 100);
  2059. format(string, sizeof(string), "~r~-$%d", 100);
  2060. GameTextForPlayer(playerid, string, 5000, 1);
  2061. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2062. format(string, sizeof(string), "Pui cumparat.");
  2063. SendClientMessage(playerid, COLOR_GRAD4, string);
  2064. format(string, sizeof(string), "~r~-$%d", 10);
  2065. GameTextForPlayer(playerid, string, 5000, 1);
  2066. new rand = random(15);
  2067. Groceries[playerid][pChickens] += 1;
  2068. Groceries[playerid][pChicken] += rand;
  2069. }
  2070. case 8:
  2071. {
  2072. GivePlayerCash(playerid, - 2500);
  2073. SBizzData[9][sbTill] += 2500;
  2074. ExtortionSBiz(9, 2500);
  2075. format(string, sizeof(string), "~r~-$%d", 2500);
  2076. GameTextForPlayer(playerid, string, 5000, 1);
  2077. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2078. PlayerData[playerid][pCigars] += 10;
  2079. format(string, sizeof(string), "Ai cumparat 10 tigari la pretul de 50$. Acum detii %d tigari.Foloseste /smoke", PlayerData[playerid][pCigars]);
  2080. SendClientMessage(playerid, COLOR_WHITE, string);
  2081. format(string, sizeof(string), "UPDATE players SET Cigars='%d' WHERE id=%d", PlayerData[playerid][pCigars], PlayerData[playerid][pSQLID]);
  2082. mysql_query(string);
  2083. }
  2084. case 9:
  2085. {
  2086. if(Groceries[playerid][pHamburgers] >= 3)
  2087. {
  2088. SendClientMessage(playerid, COLOR_GREY, "Ai prea multi hamburghezi, mai intai preparai si manancai!");
  2089. return 1;
  2090. }
  2091. GivePlayerCash(playerid, - 100);
  2092. format(string, sizeof(string), "~r~-$%d", 100);
  2093. SBizzData[9][sbTill] += 100;
  2094. ExtortionSBiz(9, 100);
  2095. GameTextForPlayer(playerid, string, 5000, 1);
  2096. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2097. format(string, sizeof(string), "Hamburger Cumparat.");
  2098. SendClientMessage(playerid, COLOR_GRAD4, string);
  2099. new rand = random(15);
  2100. Groceries[playerid][pHamburgers] += 1;
  2101. Groceries[playerid][pHamburger] += rand;
  2102. }
  2103. case 10:
  2104. {
  2105. if(Groceries[playerid][pPizzas] >= 3)
  2106. {
  2107. SendClientMessage(playerid, COLOR_GREY, "Prea multe pizza ai, mai intai incearca sa le prepari!");
  2108. return 1;
  2109. }
  2110. GivePlayerCash(playerid, - 100);
  2111. format(string, sizeof(string), "~r~-$%d", 100);
  2112. SBizzData[9][sbTill] += 100;
  2113. ExtortionSBiz(9, 100);
  2114. GameTextForPlayer(playerid, string, 5000, 1);
  2115. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2116. format(string, sizeof(string), "Frozen Pizza Cumparata.");
  2117. SendClientMessage(playerid, COLOR_GRAD4, string);
  2118. new rand = random(15);
  2119. Groceries[playerid][pPizzas] += 1;
  2120. Groceries[playerid][pPizza] += rand;
  2121. }
  2122. case 11:
  2123. {
  2124. format(string, sizeof(string), "~r~-$%d", 3500);
  2125. GameTextForPlayer(playerid, string, 5000, 1);
  2126. GivePlayerCash(playerid,-3500);
  2127. SBizzData[9][sbTill] += 3500;
  2128. ExtortionSBiz(9, 3500);
  2129. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2130. SendClientMessage(playerid, COLOR_GRAD4, "Ti-ai cumparat o camera foto");
  2131. GivePlayerWeapon(playerid, 43, 20);
  2132. }
  2133. case 12:
  2134. {
  2135. GivePlayerCash(playerid, - 10000);
  2136. SBizzData[9][sbTill] += 10000;
  2137. ExtortionSBiz(9, 10000);
  2138. format(string, sizeof(string), "~r~-$%d", 10000);
  2139. GameTextForPlayer(playerid, string, 5000, 1);
  2140. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  2141. format(string, sizeof(string), "Ti-ai cumparat canistra pentru benzina.");
  2142. SendClientMessage(playerid, COLOR_GRAD4, string);
  2143. SendClientMessage(playerid, COLOR_WHITE, "HINT: Scrie /get fuel");
  2144. PlayerData[playerid][pCanistra] = 1;
  2145. format(string, sizeof(string), "UPDATE players SET Canistra='%d' WHERE id=%d", PlayerData[playerid][pCanistra], PlayerData[playerid][pSQLID]);
  2146. mysql_query(string);
  2147. }
  2148. }
  2149. }
  2150. }
  2151. return 1;
  2152. }
Advertisement
Add Comment
Please, Sign In to add comment