erewefrfwfrewq

Untitled

Nov 8th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 103.09 KB | None | 0 0
  1. case DIALOG_V:
  2. {
  3. if(response)
  4. {
  5. pInfo[playerid][aVar][88] = 0;
  6. for(new i = 0; i < 14; ++i)
  7. if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
  8. {
  9. //if(pInfo[playerid][aVar][88] == listitem && Veh[playerid][i][vTax] != 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "Vehicle is seized, pay vehicle tax to it access. (/deposit)");
  10. if(pInfo[playerid][aVar][88] == listitem) return pInfo[playerid][aVar][9] = i, format(stdlg[playerid], 19, "Your %s", g_VehicleNames[Veh[playerid][i][Model]-400]),
  11. ShowPlayerDialog(playerid, DIALOG_V2, DIALOG_STYLE_LIST, stdlg[playerid], Veh[playerid][i][vSp] == 1 ? ("Spawn Vehicle") : ("Information\nLocate Vehicle\nRespawn Vehicle\nSave Tuning\nRemove Tuning\nChange Plate Number\nPark Vehicle\nSell Vehicle To State\nSell Vehicle To Player\nUnstuck Vehicle\nBuy Insurance\nDespawn"), "Select", "Back"), 1;
  12. pInfo[playerid][aVar][88]++;
  13. }
  14. }
  15. }
  16. case DIALOG_V2:
  17. {
  18. if(response)
  19. {
  20. GetVehicleParamsEx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vParams[0], vParams[1], vParams[2], vParams[3], vParams[4], vParams[5], vParams[6]);
  21. switch(listitem)
  22. {
  23. case 0:
  24. {
  25. if(Veh[playerid][pInfo[playerid][aVar][9]][vSp] == 1)
  26. {
  27. GameTextForPlayer(playerid, "~n~~w~vehicle was spawned", 3000, 3);
  28. Veh[playerid][pInfo[playerid][aVar][9]][ServerID] = CreateVehicle(Veh[playerid][pInfo[playerid][aVar][9]][Model], Veh[playerid][pInfo[playerid][aVar][9]][PosX], Veh[playerid][pInfo[playerid][aVar][9]][PosY], Veh[playerid][pInfo[playerid][aVar][9]][PosZ], Veh[playerid][pInfo[playerid][aVar][9]][VAngle], Veh[playerid][pInfo[playerid][aVar][9]][Color1], Veh[playerid][pInfo[playerid][aVar][9]][Color2], -1), vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = playerid,
  29. KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = Veh[playerid][pInfo[playerid][aVar][9]][KM], SetVehicleParamsExx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], IsABike(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]) ? (1) : (0), 0, 0, Veh[playerid][pInfo[playerid][aVar][9]][Lock] == 1 ? (1) : (0), 0, 0, 0), SetVehicleNumberPlate(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Plate]);
  30. vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = Veh[playerid][pInfo[playerid][aVar][9]][Insurance], vVar[3][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = Veh[playerid][pInfo[playerid][aVar][9]][vFuel], format(OwnName[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], MAX_PLAYER_NAME, "%s", pInfo[playerid][pUser]), Veh[playerid][pInfo[playerid][aVar][9]][vSp] = 0;
  31. ChangeVehiclePaintjob(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Paintjob]), UpdateVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Damage][0], Veh[playerid][pInfo[playerid][aVar][9]][Damage][1], Veh[playerid][pInfo[playerid][aVar][9]][Damage][2], Veh[playerid][pInfo[playerid][aVar][9]][Damage][3]), vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 1;
  32. for(new x = 0; x < 14; x++)
  33. AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][x]);
  34. if(Veh[playerid][pInfo[playerid][aVar][9]][vTOn] != 0)
  35. {
  36. Veh[playerid][pInfo[playerid][aVar][9]][vTt1] = CreateDynamicObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), Veh[playerid][pInfo[playerid][aVar][9]][vTt2] = CreateDynamicObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  37. SetDynamicObjectMaterialText(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], 0, Veh[playerid][pInfo[playerid][aVar][9]][Tt], OBJECT_MATERIAL_SIZE_512x256, "GTAWEAPON3", 100, 0, 0xFF000000, 0, 1),
  38. SetDynamicObjectMaterialText(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], 0, Veh[playerid][pInfo[playerid][aVar][9]][Tt], OBJECT_MATERIAL_SIZE_512x256, "GTAWEAPON3", 100, 0, 0xFF000000, 0, 1);
  39. switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
  40. {
  41. case 411: {
  42. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.11, 0.06, -0.1, 0.0, 0.0, 0.0),
  43. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.11, 0.06, -0.1, 360.0, 360.0, 0.0);
  44. }
  45. case 541: {
  46. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.00, -0.03, -0.1, 0.0, 0.0, 0.0),
  47. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.00, -0.03, -0.1, 360.0, 360.0, 0.0);
  48. }
  49. case 559: {
  50. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.083, 0.01, 0.05, 0.0, 0.0, 0.0),
  51. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.083, 0.01, 0.05, 360.0, 360.0, 0.0);
  52. }
  53. case 451: {
  54. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.99, 0.40, -0.2, 0.0, 0.0, 0.0),
  55. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.99, 0.40, -0.2, 360.0, 360.0, 0.0);
  56. }
  57. case 565: {
  58. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.94, 0.12, -0.0, 0.0, 0.0, 0.0),
  59. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.94, 0.12, -0.0, 360.0, 360.0, 0.0);
  60. }
  61. case 560: {
  62. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.06, 0.38, -0.0, 0.0, 0.0, 0.0),
  63. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.06, 0.38, -0.0, 360.0, 360.0, 0.0);
  64. }
  65. case 562: {
  66. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.018, 0.20, 0.04, 0.0, 0.0, 0.0),
  67. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.018, 0.20, 0.04, 360.0, 360.0, 0.0);
  68. }
  69. case 487: {
  70. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.57, -1.78, 0.43, 0.0, 0.0, -20.0),
  71. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.57, -1.78, 0.43, 360.0, 360.0, 20.0);
  72. }
  73. default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt1]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt2]);
  74. }
  75. }
  76. if(Veh[playerid][pInfo[playerid][aVar][9]][vSl] != 0)
  77. {
  78. Veh[playerid][pInfo[playerid][aVar][9]][vOsl] = CreateDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vSl], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  79. switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
  80. {
  81. case 602: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.35490, 0.23560, 0.00000, 0.00000, 0.00000);
  82. case 429: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.23490, 0.26560, 0.00000, 0.00000, 0.00000);
  83. case 426: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.56490, 0.21560, 0.00000, 0.00000, 0.00000);
  84. case 402: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.53090, 0.23260, 0.00000, 0.00000, 0.00000);
  85. case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.00390, 0.28360, 0.00000, 0.00000, 0.00000);
  86. case 415: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.19090, 0.21560, 0.00000, 0.00000, 0.00000);
  87. case 587: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.36090, 0.26660, 0.00000, 0.00000, 0.00000);
  88. case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.44190, 0.31500, 0.00000, 0.00000, 0.00000);
  89. case 475: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.47990, 0.18160, 0.00000, 0.00000, 0.00000);
  90. case 480: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.20790, 0.10660, 0.00000, 0.00000, 0.00000);
  91. case 533: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.30990, 0.24260, 0.00000, 0.00000, 0.00000);
  92. case 555: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.22490, 0.05560, 0.00000, 0.00000, 0.00000);
  93. case 536: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.81190, 0.11560, 0.00000, 0.00000, 0.00000);
  94. case 575: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.45490, 0.30460, 0.00000, 0.00000, 0.00000);
  95. case 534: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.49690, 0.11560, 0.00000, 0.00000, 0.00000);
  96. case 567: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.64390, 0.05260, 0.00000, 0.00000, 0.00000);
  97. case 535: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.39190, 0.38860, 0.00000, 0.00000, 0.00000);
  98. case 566: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.72790, 0.22060, 0.00000, 0.00000, 0.00000);
  99. case 412: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -3.27390, 0.07360, 0.00000, 0.00000, 0.00000);
  100. case 579: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.34990, 1.10260, 0.00000, 0.00000, 0.00000);
  101. case 400: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -1.92990, 0.70360, 0.00000, 0.00000, 0.00000);
  102. case 500: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -1.44690, 0.82960, 0.00000, 0.00000, 0.00000);
  103. case 445: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.58090, 0.19960, 0.00000, 0.00000, 0.00000);
  104. case 518: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.53890, 0.07360, 0.00000, 0.00000, 0.00000);
  105. case 527: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.05590, 0.30460, 0.00000, 0.00000, 0.00000);
  106. case 542: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.66490, 0.26260, 0.00000, 0.00000, 0.00000);
  107. case 585: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.76990, 0.40960, 0.00000, 0.00000, 0.00000);
  108. case 492: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.60190, 0.26260, 0.00000, 0.00000, 0.00000);
  109. case 474: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.49690, 0.22060, 0.00000, 0.00000, 0.00000);
  110. case 517: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.39190, 0.19960, 0.00000, 0.00000, 0.00000);
  111. case 405: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.43390, 0.19960, 0.00000, 0.00000, 0.00000);
  112. case 494: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.70690, 0.22060, 0.00000, 0.00000, 0.00000);
  113. case 502: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.51790, 0.21060, 0.00000, 0.00000, 0.00000);
  114. case 503: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.66490, 0.21060, 0.00000, 0.00000, 0.00000);
  115. default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOsl]);
  116. }
  117. }
  118. if(Veh[playerid][pInfo[playerid][aVar][9]][vHd] != 0)
  119. {
  120. Veh[playerid][pInfo[playerid][aVar][9]][vOhd] = CreateDynamicObject(1005, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), SetDynamicObjectMaterial(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], 0, -1, "none", "none", RGBAToARGB(VehCRGBA[Veh[playerid][pInfo[playerid][aVar][9]][Color1]]));
  121. switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
  122. {
  123. case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.97660, 0.08170, 0.00000, 0.00000, 0.00000);
  124. case 429: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 0.87160, 0.24970, 0.00000, 0.00000, 0.00000);
  125. case 415: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.56460, 0.10270, 0.00000, 0.00000, 0.00000);
  126. case 475: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
  127. case 477: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
  128. case 558: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.27070, 0.00000, 0.00000, 0.00000);
  129. case 402: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.62760, 0.27070, 0.00000, 0.00000, 0.00000);
  130. case 480: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.31260, 0.20770, 0.00000, 0.00000, 0.00000);
  131. case 533: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.24970, 0.00000, 0.00000, 0.00000);
  132. case 482: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 2.06860, 0.16570, 0.00000, 0.00000, 0.00000);
  133. case 536: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.14470, 0.00000, 0.00000, 0.00000);
  134. case 535: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.83760, 0.33370, 0.00000, 0.00000, 0.00000);
  135. case 567: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 2.13160, 0.08170, 0.00000, 0.00000, 0.00000);
  136. case 579: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.43870, 0.00000, 0.00000, 0.00000);
  137. case 506: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01170, 1.41760, 0.12370, 0.00000, 0.00000, 0.00000);
  138. case 494: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.45960, 0.18670, 0.00000, 0.00000, 0.00000);
  139. case 502: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
  140. case 503: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.77460, 0.16570, 0.00000, 0.00000, 0.00000);
  141. case 556: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.81660, 1.02670, 0.00000, 0.00000, 0.00000);
  142. case 557: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.81660, 1.00570, 0.00000, 0.00000, 0.00000);
  143. case 444: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.98460, 1.02670, 0.00000, 0.00000, 0.00000);
  144. case 562: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.24970, 0.00000, 0.00000, 0.00000);
  145. case 400: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
  146. case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.37560, 0.24970, 0.00000, 0.00000, 0.00000);
  147. case 542: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
  148. case 602: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.60660, 0.16570, 0.00000, 0.00000, 0.00000);
  149. case 445: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.76660, 0.20770, 0.00000, 0.00000, 0.00000);
  150. case 405: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.68260, 0.16570, 0.00000, 0.00000, 0.00000);
  151. case 492: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.72460, 0.31270, 0.00000, 0.00000, 0.00000);
  152. case 500: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.49360, 0.14470, 0.00000, 0.00000, 0.00000);
  153. case 412: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.17670, -1.00000, 0.00000, 0.00000);
  154. case 566: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
  155. case 559: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.72460, 0.18670, 0.00000, 0.00000, 0.00000);
  156. case 587: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.57760, 0.16570, 0.00000, 0.00000, 0.00000);
  157. default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOhd]);
  158. }
  159. }
  160. return 1;
  161. }
  162. new tmp[90], gunname[32], gunname2[32];
  163. format(tmp, sizeof(tmp), "Model: %s\nColor1: {%06x}%d {A9C4E4}| Color2: {%06x}%d{A9C4E4}\n", g_VehicleNames[Veh[playerid][pInfo[playerid][aVar][9]][Model]-400], (VehCRGBA[Veh[playerid][pInfo[playerid][aVar][9]][Color1]] >>> 8), Veh[playerid][pInfo[playerid][aVar][9]][Color1], (VehCRGBA[Veh[playerid][pInfo[playerid][aVar][9]][Color2]] >>> 8), Veh[playerid][pInfo[playerid][aVar][9]][Color2]);
  164. strcat(stdlg[playerid], tmp);
  165. format(tmp, sizeof(tmp), "Value: %s$\nPlate Number: %s\n", FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][Value]), Veh[playerid][pInfo[playerid][aVar][9]][Plate]);
  166. strcat(stdlg[playerid], tmp);
  167. format(tmp, sizeof(tmp), "Kilometers: %.0f\nInsurance: %d\nInsurance Price: %s$\nClass: %s", KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], FormatNumber(((KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]/1000) + 1) * 1000), Veh[playerid][pInfo[playerid][aVar][9]][Class]);
  168. strcat(stdlg[playerid], tmp);
  169. GetWeaponName(Veh[playerid][pInfo[playerid][aVar][9]][vWE][0], gunname, sizeof(gunname)), GetWeaponName(Veh[playerid][pInfo[playerid][aVar][9]][vWE][1], gunname2, sizeof(gunname2));
  170. format(tmp, sizeof(tmp), "\n\nMoney: %s$\nMaterials: %s\nDrugs: %s\nWeapon 1: %s, %s bullets\nWeapon 2: %s, %s bullets", FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vMoney]), FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vMats]), FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vDrugs]),
  171. Veh[playerid][pInfo[playerid][aVar][9]][vAM][0] == 0 ? ("No") : (gunname), FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vAM][0]), Veh[playerid][pInfo[playerid][aVar][9]][vAM][1] == 0 ? ("No") : (gunname2), FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vAM][1]));
  172. strcat(stdlg[playerid], tmp);
  173. format(pInfo[playerid][pT], 36, "%s's Vehicle %d", GetName(playerid), Veh[playerid][pInfo[playerid][aVar][9]][ServerID]);
  174. ShowPlayerDialog(playerid, DIALOG_INFOVEH, DIALOG_STYLE_MSGBOX, pInfo[playerid][pT], stdlg[playerid], "OK", "Back");
  175. }
  176. case 1:
  177. {
  178. new Float:vP[3];
  179. GetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vP[0], vP[1], vP[2]);
  180. SetPlayerCheckpoint(playerid, vP[0], vP[1], vP[2], 4.0), CP[playerid] = 1;
  181. GameTextForPlayer(playerid, "~n~~w~set checkpoint to your vehicle", 4000, 3);
  182. }
  183. case 2:
  184. {
  185. if(IsVehicleOccupied(Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "Someone is in your vehicle.");
  186. GetVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vVar[7][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[8][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[9][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[10][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]),
  187. SetVehicleToRespawn(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]), GameTextForPlayer(playerid, "~n~~w~your vehicle was respawned", 4000, 3);
  188. }
  189. case 3:
  190. {
  191. if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
  192. new color[2];
  193. GetVehicleColor(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], color[0], color[1]);
  194. Veh[playerid][pInfo[playerid][aVar][9]][Color1] = color[0], Veh[playerid][pInfo[playerid][aVar][9]][Color2] = color[1];
  195. Veh[playerid][pInfo[playerid][aVar][9]][Mod][0] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0),
  196. Veh[playerid][pInfo[playerid][aVar][9]][Mod][1] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1),
  197. Veh[playerid][pInfo[playerid][aVar][9]][Mod][2] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 2),
  198. Veh[playerid][pInfo[playerid][aVar][9]][Mod][3] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 3),
  199. Veh[playerid][pInfo[playerid][aVar][9]][Mod][4] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 4),
  200. Veh[playerid][pInfo[playerid][aVar][9]][Mod][5] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 5),
  201. Veh[playerid][pInfo[playerid][aVar][9]][Mod][6] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 6),
  202. Veh[playerid][pInfo[playerid][aVar][9]][Mod][7] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 7),
  203. Veh[playerid][pInfo[playerid][aVar][9]][Mod][8] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 8),
  204. Veh[playerid][pInfo[playerid][aVar][9]][Mod][9] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 9),
  205. Veh[playerid][pInfo[playerid][aVar][9]][Mod][10] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 10),
  206. Veh[playerid][pInfo[playerid][aVar][9]][Mod][11] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 11),
  207. Veh[playerid][pInfo[playerid][aVar][9]][Mod][12] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 12),
  208. Veh[playerid][pInfo[playerid][aVar][9]][Mod][13] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 13), Veh[playerid][pInfo[playerid][aVar][9]][Paintjob] = vVar[6][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]];
  209. if(Veh[playerid][pInfo[playerid][aVar][9]][vHd] != 0) SetDynamicObjectMaterial(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], 0, -1, "none", "none", RGBAToARGB(VehCRGBA[Veh[playerid][pInfo[playerid][aVar][9]][Color1]]));
  210. GameTextForPlayer(playerid, "~n~~w~tuning vehicle was saved", 4000, 3);
  211. }
  212. case 4:
  213. {
  214. if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
  215. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][0]),
  216. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][1]),
  217. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][2]),
  218. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][3]),
  219. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][4]),
  220. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][5]),
  221. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][6]),
  222. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][7]),
  223. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][8]),
  224. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][9]),
  225. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][10]),
  226. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][11]),
  227. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][12]),
  228. RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][13]);
  229. Veh[playerid][pInfo[playerid][aVar][9]][Mod][0] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][1] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][2] = 0,
  230. Veh[playerid][pInfo[playerid][aVar][9]][Mod][3] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][4] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][5] = 0,
  231. Veh[playerid][pInfo[playerid][aVar][9]][Mod][6] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][7] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][8] = 0,
  232. Veh[playerid][pInfo[playerid][aVar][9]][Mod][9] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][10] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][11] = 0,
  233. Veh[playerid][pInfo[playerid][aVar][9]][Mod][12] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][13] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Paintjob] = 3, ChangeVehiclePaintjob(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 3), vVar[6][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 3;
  234. GameTextForPlayer(playerid, "~n~~w~tuning vehicle was removed", 4000, 3);
  235. }
  236. case 5:
  237. {
  238. if(!IsPlayerInRangeOfPoint(playerid, 45.0, 369.2338,173.8134,1008.3893)) return SendClientMessage(playerid, COLOR_DARKGRAY, "You are not at the City Hall.");
  239. ShowPlayerDialog(playerid, DIALOG_PLATEVEH, DIALOG_STYLE_INPUT, "Change Vehicle Plate Number", "Introdu mai jos numarul de inamtriculare pe care il doresti la vehiculu tau.\nNumarul de inmatriculare va fi afisat dupa urmatorul respawn al vehiculului tau!", "Change", "Back");
  240. }
  241. case 6:
  242. {
  243. if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
  244. if(IsPlayerInRangeOfPoint(playerid, 80.0, 1793.5046,-1895.8068,13.3992)) return SendClientMessage(playerid, COLOR_DARKGRAY, "You can not park a vehicle in spawn civil.");
  245. new Float:x, Float:y, Float:z, Float:z_rot, oins, Float:km, gass;
  246. GetVehicleHealth(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], x);
  247. if(x < 300) return SendClientMessage(playerid, COLOR_DARKGRAY, "You can not park a vehicle with less than 300 HP.");
  248. pInfo[playerid][aVar][88] = GetPlayerVehicleSeat(playerid), GetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], x, y, z), GetVehicleZAngle(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], z_rot), GetVehicleParamsEx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vParams[0], vParams[1], vParams[2], vParams[3], vParams[4], vParams[5], vParams[6]);
  249. Veh[playerid][pInfo[playerid][aVar][9]][PosX] = x, Veh[playerid][pInfo[playerid][aVar][9]][PosY] = y, Veh[playerid][pInfo[playerid][aVar][9]][PosZ] = z, Veh[playerid][pInfo[playerid][aVar][9]][VAngle] = z_rot;
  250. GetVehicleParamsEx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vParams[0], vParams[1], vParams[2], vParams[3], vParams[4], vParams[5], vParams[6]), oins = vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]];
  251. GetVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vVar[7][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[8][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[9][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[10][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]);
  252. km = KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 0, gass = vVar[3][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], DestroyVehicle(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]), vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = INVALID_PLAYER_ID,
  253. Veh[playerid][pInfo[playerid][aVar][9]][ServerID] = CreateVehicle(Veh[playerid][pInfo[playerid][aVar][9]][Model], Veh[playerid][pInfo[playerid][aVar][9]][PosX], Veh[playerid][pInfo[playerid][aVar][9]][PosY], Veh[playerid][pInfo[playerid][aVar][9]][PosZ], Veh[playerid][pInfo[playerid][aVar][9]][VAngle], Veh[playerid][pInfo[playerid][aVar][9]][Color1], Veh[playerid][pInfo[playerid][aVar][9]][Color2], -1);
  254. vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = playerid, vVar[3][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = gass, KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = km;
  255. SetVehicleParamsExx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], IsABike(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]) ? (1) : (0), 0, 0, vParams[3], 0, 0, 0), SetVehicleNumberPlate(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Plate]);
  256. vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = oins, GameTextForPlayer(playerid, "~n~~w~Your vehicle was parked here", 4000, 3);
  257. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][0] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][0]);
  258. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][1] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][1]);
  259. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][2] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][2]);
  260. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][3] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][3]);
  261. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][4] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][4]);
  262. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][5] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][5]);
  263. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][6] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][6]);
  264. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][7] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][7]);
  265. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][8] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][8]);
  266. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][9] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][9]);
  267. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][10] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][10]);
  268. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][11] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][11]);
  269. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][12] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][12]);
  270. if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][13] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][13]);
  271. ChangeVehiclePaintjob(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Paintjob]), UpdateVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vVar[7][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[8][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[9][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[10][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]),
  272. PutPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID], pInfo[playerid][aVar][88]);
  273. vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 1, format(OwnName[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], MAX_PLAYER_NAME, "%s", pInfo[playerid][pUser]);
  274. if(Veh[playerid][pInfo[playerid][aVar][9]][vTOn] != 0)
  275. {
  276. switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
  277. {
  278. case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.11, 0.06, -0.1, 0.0, 0.0, 0.0),
  279. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.11, 0.06, -0.1, 360.0, 360.0, 0.0);
  280. case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.00, -0.03, -0.1, 0.0, 0.0, 0.0),
  281. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.00, -0.03, -0.1, 360.0, 360.0, 0.0);
  282. case 559: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.083, 0.01, 0.05, 0.0, 0.0, 0.0),
  283. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.083, 0.01, 0.05, 360.0, 360.0, 0.0);
  284. case 451: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.99, 0.40, -0.2, 0.0, 0.0, 0.0),
  285. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.99, 0.40, -0.2, 360.0, 360.0, 0.0);
  286. case 565: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.94, 0.12, -0.0, 0.0, 0.0, 0.0),
  287. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.94, 0.12, -0.0, 360.0, 360.0, 0.0);
  288. case 560: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.06, 0.38, -0.0, 0.0, 0.0, 0.0),
  289. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.06, 0.38, -0.0, 360.0, 360.0, 0.0);
  290. case 562: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.018, 0.20, 0.04, 0.0, 0.0, 0.0),
  291. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.018, 0.20, 0.04, 360.0, 360.0, 0.0);
  292. case 487: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.57, -1.78, 0.43, 0.0, 0.0, -20.0),
  293. AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.57, -1.78, 0.43, 360.0, 360.0, 20.0);
  294. default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt1]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt2]);
  295. }
  296. }
  297. if(Veh[playerid][pInfo[playerid][aVar][9]][vSl] != 0)
  298. {
  299. switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
  300. {
  301. case 602: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.35490, 0.23560, 0.00000, 0.00000, 0.00000);
  302. case 429: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.23490, 0.26560, 0.00000, 0.00000, 0.00000);
  303. case 426: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.56490, 0.21560, 0.00000, 0.00000, 0.00000);
  304. case 402: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.53090, 0.23260, 0.00000, 0.00000, 0.00000);
  305. case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.00390, 0.28360, 0.00000, 0.00000, 0.00000);
  306. case 415: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.19090, 0.21560, 0.00000, 0.00000, 0.00000);
  307. case 587: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.36090, 0.26660, 0.00000, 0.00000, 0.00000);
  308. case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.44190, 0.31500, 0.00000, 0.00000, 0.00000);
  309. case 475: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.47990, 0.18160, 0.00000, 0.00000, 0.00000);
  310. case 480: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.20790, 0.10660, 0.00000, 0.00000, 0.00000);
  311. case 533: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.30990, 0.24260, 0.00000, 0.00000, 0.00000);
  312. case 555: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.22490, 0.05560, 0.00000, 0.00000, 0.00000);
  313. case 536: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.81190, 0.11560, 0.00000, 0.00000, 0.00000);
  314. case 575: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.45490, 0.30460, 0.00000, 0.00000, 0.00000);
  315. case 534: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.49690, 0.11560, 0.00000, 0.00000, 0.00000);
  316. case 567: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.64390, 0.05260, 0.00000, 0.00000, 0.00000);
  317. case 535: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.39190, 0.38860, 0.00000, 0.00000, 0.00000);
  318. case 566: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.72790, 0.22060, 0.00000, 0.00000, 0.00000);
  319. case 412: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -3.27390, 0.07360, 0.00000, 0.00000, 0.00000);
  320. case 579: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.34990, 1.10260, 0.00000, 0.00000, 0.00000);
  321. case 400: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -1.92990, 0.70360, 0.00000, 0.00000, 0.00000);
  322. case 500: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -1.44690, 0.82960, 0.00000, 0.00000, 0.00000);
  323. case 445: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.58090, 0.19960, 0.00000, 0.00000, 0.00000);
  324. case 518: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.53890, 0.07360, 0.00000, 0.00000, 0.00000);
  325. case 527: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.05590, 0.30460, 0.00000, 0.00000, 0.00000);
  326. case 542: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.66490, 0.26260, 0.00000, 0.00000, 0.00000);
  327. case 585: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.76990, 0.40960, 0.00000, 0.00000, 0.00000);
  328. case 492: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.60190, 0.26260, 0.00000, 0.00000, 0.00000);
  329. case 474: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.49690, 0.22060, 0.00000, 0.00000, 0.00000);
  330. case 517: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.39190, 0.19960, 0.00000, 0.00000, 0.00000);
  331. case 405: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.43390, 0.19960, 0.00000, 0.00000, 0.00000);
  332. case 494: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.70690, 0.22060, 0.00000, 0.00000, 0.00000);
  333. case 502: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.51790, 0.21060, 0.00000, 0.00000, 0.00000);
  334. case 503: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.66490, 0.21060, 0.00000, 0.00000, 0.00000);
  335. default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOsl]);
  336. }
  337. }
  338. if(Veh[playerid][pInfo[playerid][aVar][9]][vHd] != 0)
  339. {
  340. switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
  341. {
  342. case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.97660, 0.08170, 0.00000, 0.00000, 0.00000);
  343. case 429: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 0.87160, 0.24970, 0.00000, 0.00000, 0.00000);
  344. case 415: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.56460, 0.10270, 0.00000, 0.00000, 0.00000);
  345. case 475: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
  346. case 477: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
  347. case 558: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.27070, 0.00000, 0.00000, 0.00000);
  348. case 402: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.62760, 0.27070, 0.00000, 0.00000, 0.00000);
  349. case 480: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.31260, 0.20770, 0.00000, 0.00000, 0.00000);
  350. case 533: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.24970, 0.00000, 0.00000, 0.00000);
  351. case 482: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 2.06860, 0.16570, 0.00000, 0.00000, 0.00000);
  352. case 536: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.14470, 0.00000, 0.00000, 0.00000);
  353. case 535: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.83760, 0.33370, 0.00000, 0.00000, 0.00000);
  354. case 567: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 2.13160, 0.08170, 0.00000, 0.00000, 0.00000);
  355. case 579: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.43870, 0.00000, 0.00000, 0.00000);
  356. case 506: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01170, 1.41760, 0.12370, 0.00000, 0.00000, 0.00000);
  357. case 494: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.45960, 0.18670, 0.00000, 0.00000, 0.00000);
  358. case 502: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
  359. case 503: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.77460, 0.16570, 0.00000, 0.00000, 0.00000);
  360. case 556: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.81660, 1.02670, 0.00000, 0.00000, 0.00000);
  361. case 557: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.81660, 1.00570, 0.00000, 0.00000, 0.00000);
  362. case 444: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.98460, 1.02670, 0.00000, 0.00000, 0.00000);
  363. case 562: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.24970, 0.00000, 0.00000, 0.00000);
  364. case 400: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
  365. case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.37560, 0.24970, 0.00000, 0.00000, 0.00000);
  366. case 542: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
  367. case 602: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.60660, 0.16570, 0.00000, 0.00000, 0.00000);
  368. case 445: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.76660, 0.20770, 0.00000, 0.00000, 0.00000);
  369. case 405: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.68260, 0.16570, 0.00000, 0.00000, 0.00000);
  370. case 492: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.72460, 0.31270, 0.00000, 0.00000, 0.00000);
  371. case 500: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.49360, 0.14470, 0.00000, 0.00000, 0.00000);
  372. case 412: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.17670, -1.00000, 0.00000, 0.00000);
  373. case 566: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
  374. case 559: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.72460, 0.18670, 0.00000, 0.00000, 0.00000);
  375. case 587: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.57760, 0.16570, 0.00000, 0.00000, 0.00000);
  376. default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOhd]);
  377. }
  378. }
  379. }
  380. case 7:
  381. {
  382. if(!strcmp(Veh[playerid][pInfo[playerid][aVar][9]][Class], "Free", false)) return SendClientMessage(playerid, COLOR_DARKGRAY, "Nu poti vinde vehiculul gratis pe care l-ai primit.");
  383. if(!IsPlayerInRangeOfPoint(playerid, 30.0, 333.0342,-1517.8024,35.8672)) return SendClientMessage(playerid, COLOR_DARKGRAY, "You are not at the Dealership.");
  384. format(stdlg[playerid], 100, "Pretul vanzarii vehiculului tau este de %s$, esti sigur ca vrei sa-ti vinzi vehiculul?", FormatNumber(0.4*Veh[playerid][pInfo[playerid][aVar][9]][Value]));
  385. ShowPlayerDialog(playerid, DIALOG_SELLVEHICLE, DIALOG_STYLE_MSGBOX, "Sell Vehicle To State", stdlg[playerid], "Sell", "Back");
  386. }
  387. case 8: {
  388. if(!strcmp(Veh[playerid][pInfo[playerid][aVar][9]][Class], "Free", false)) return SendClientMessage(playerid, COLOR_DARKGRAY, "Nu poti vinde vehiculul gratis pe care l-ai primit.");
  389. if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
  390. ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.", "Next", "Back");
  391. }
  392. case 9:
  393. {
  394. foreach(new q : Player) if(IsPlayerInVehicle(q,Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "Someone is in your vehicle."), 1;
  395. new Float: rbb[13][3] = {
  396. { 2350.9976,1501.6643,10.5465 }, { 2351.3188,1472.9426,10.5461 },
  397. { 2350.8665,1494.3911,10.5471 }, { 2351.2163,1465.7239,10.5471 },
  398. { 2351.4163,1487.2764,10.5459 }, { 2351.1187,1458.7067,10.5457 },
  399. { 2351.2881,1451.4304,10.5468 }, { 2350.9534,1444.4312,10.5491 },
  400. { 2350.9631,1437.1858,10.5510 }, { 2350.6741,1429.9874,10.5473 },
  401. { 2350.8513,1419.2781,10.5478 }, { 2350.7991,1412.1979,10.5491 },
  402. { 2350.7002,1480.1304,10.5463 } }, Float:vehx, Float:vehy, Float:vehz;
  403. new rand = random(sizeof(rbb));
  404. if(Veh[playerid][pInfo[playerid][aVar][9]][Model] == 487 || Veh[playerid][pInfo[playerid][aVar][9]][Model] == 469
  405. ? SetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], rbb[rand][0], rbb[rand][1], rbb[rand][2]+32.8000) : SetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], rbb[rand][0], rbb[rand][1], rbb[rand][2]))
  406. GetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vehx, vehy, vehz), SetPlayerCheckpoint(playerid, vehx, vehy, vehz, 4.0), CP[playerid] = 1;
  407. format(stmsg[playerid], 80, "~n~~n~~n~~n~~n~~n~~n~~n~~w~distance to your vehicle: ~y~%0.2fm", GetPlayerDistanceFromPoint(playerid, vehx, vehy, vehz));
  408. GameTextForPlayer(playerid, stmsg[playerid], 8000, 3), pInfo[playerid][aVar][25] = SetTimerEx("GeneralTimer", 1000, false, "ii", playerid, 13);
  409. }
  410. case 10:
  411. {
  412. if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
  413. if(vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] == 5) return SendClientMessage(playerid, COLOR_DARKGRAY, "Maximum insurance for vehicles is 5.");
  414. if(pInfo[playerid][pMoney] < floatround(((KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]/1000) + 1) * 1000)) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
  415. vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]++, GiveMoney(playerid, -floatround(((KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]/1000) + 1) * 1000));
  416. SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a car insurance.");
  417. }
  418. case 11:
  419. {
  420. foreach(new q : Player) if(IsPlayerInVehicle(q,Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "Someone is in your vehicle."), 1;
  421. vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 0, GameTextForPlayer(playerid, "~n~~w~vehicle was despawned", 4000, 3),
  422. Veh[playerid][pInfo[playerid][aVar][9]][Insurance] = vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], Veh[playerid][pInfo[playerid][aVar][9]][vFuel] = vVar[3][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOsl]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOhd]),
  423. GetVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Damage][0], Veh[playerid][pInfo[playerid][aVar][9]][Damage][1], Veh[playerid][pInfo[playerid][aVar][9]][Damage][2], Veh[playerid][pInfo[playerid][aVar][9]][Damage][3]),
  424. DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt1]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt2]), DestroyVehicle(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]), vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = INVALID_PLAYER_ID,
  425. Veh[playerid][pInfo[playerid][aVar][9]][KM] = KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], orm_update(Veh[playerid][pInfo[playerid][aVar][9]][ORM_ID]), Veh[playerid][pInfo[playerid][aVar][9]][vSp] = 1;
  426. }
  427. }
  428. }
  429. else cmd_v(playerid, "");
  430. }
  431. case DIALOG_IDSELLV:
  432. {
  433. if(!response) return cmd_v(playerid, "");
  434. pInfo[playerid][aVar][88] = ReturnUser(inputtext);
  435. if(pInfo[playerid][aVar][88] == INVALID_PLAYER_ID || pInfo[pInfo[playerid][aVar][88]][pStatus] != 1)
  436. return ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.\n{C22124}Player not connected.", "Next", "Back");
  437. if(pInfo[playerid][aVar][88] == playerid)
  438. return ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.\n{C22124}You can't sell vehicle yourself.", "Next", "Back");
  439. if(!ProxDetectorS(8.0, playerid, pInfo[playerid][aVar][88]))
  440. return ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.\n{C22124}Player not near you.", "Next", "Back");
  441. pProdOffer[pInfo[playerid][aVar][88]] = playerid, pProdType[pInfo[playerid][aVar][88]] = 7, pProdInfo[pInfo[playerid][aVar][88]] = Veh[playerid][pInfo[playerid][aVar][9]][Model], pInfo[playerid][pVID] = pInfo[playerid][aVar][88], pProdMoney[pInfo[playerid][pVID]] = 0;
  442. ShowPlayerDialog(playerid, DIALOG_CASHSELLV, DIALOG_STYLE_INPUT, "Price Vehicle", "Write the amount of money you want to sell vehicle.", "Sell", "Back");
  443. }
  444. case DIALOG_CASHSELLV:
  445. {
  446. if(!response) return ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.", "Next", "Back");
  447. if(strval(inputtext) < 1) return ShowPlayerDialog(playerid, DIALOG_CASHSELLV, DIALOG_STYLE_INPUT, "Price Vehicle", "Write the amount of money you want to sell vehicle.\n{C22124}The price can't be below 1$.", "Sell", "Back");
  448. pProdMoney[pInfo[playerid][pVID]] = strval(inputtext);
  449. format(stmsg[playerid], 88, "* You offered %s to buy your vehicle %s for %s$.", GetName(pInfo[playerid][pVID]), g_VehicleNames[Veh[playerid][pInfo[playerid][aVar][9]][Model]-400], FormatNumber(pProdMoney[pInfo[playerid][pVID]]));
  450. SendClientMessage(playerid, COLOR_PRODS, stmsg[playerid]);
  451. format(stmsg[pInfo[playerid][pVID]], 88, "* %s wants to sell you vehicle %s for %s$, (/accept veh).", GetName(playerid), g_VehicleNames[Veh[playerid][pInfo[playerid][aVar][9]][Model]-400], FormatNumber(pProdMoney[pInfo[playerid][pVID]]));
  452. SendClientMessage(pInfo[playerid][pVID], COLOR_PRODS, stmsg[pInfo[playerid][pVID]]);
  453. pInfo[pInfo[playerid][pVID]][pVID] = pInfo[playerid][aVar][9];
  454. }
  455. case DIALOG_SELLVEHICLE:
  456. {
  457. if(!response) return cmd_v(playerid, "");
  458. format(stmsg[playerid], 140, "Selling vehicle %s for %s$ to DealerShip.", g_VehicleNames[Veh[playerid][pInfo[playerid][aVar][9]][Model]-400], FormatNumber(0.4*Veh[playerid][pInfo[playerid][aVar][9]][Value])), addlog(stmsg[playerid], playerid, 7);
  459. format(stmsg[playerid], 90, "* Felicitari, vehiculul tau a fost vandut cu succes, ai primit pe el %s$.", FormatNumber(0.4*Veh[playerid][pInfo[playerid][aVar][9]][Value]));
  460. SendClientMessage(playerid, COLOR_LIGHTBLUE, stmsg[playerid]), vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 0,
  461. GiveMoney(playerid, floatround(0.4*Veh[playerid][pInfo[playerid][aVar][9]][Value], floatround_tozero)), DestroyDynamicObject(pInfo[playerid][aVar][12]), pInfo[playerid][aVar][12] = 0, DestroyVehicle(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]), vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = INVALID_PLAYER_ID;
  462. pInfo[playerid][pTotVeh]--, DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOsl]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOhd]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt1]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt2]);
  463. mysql_format(MySQLCon, quMYSQL, 200, "UPDATE `players` SET `TotVeh`=%d WHERE `ID`=%d", pInfo[playerid][pTotVeh], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
  464. orm_delete(Veh[playerid][pInfo[playerid][aVar][9]][ORM_ID]), memcpy(Veh[playerid][pInfo[playerid][aVar][9]], Veh[MAX_PLAYERS][14], 0, sizeof(Veh[][])*4, sizeof(Veh[][]));
  465. }
  466. case DIALOG_PLATEVEH:
  467. {
  468. if(!response) return cmd_v(playerid, "");
  469. if(strlen(inputtext) < 2 || strlen(inputtext) > 11)
  470. return SendClientMessage(playerid, -1, "The plate of the your vehicle can't pass 11 letters and can't be shorter than 2 letters."),
  471. ShowPlayerDialog(playerid, DIALOG_PLATEVEH, DIALOG_STYLE_INPUT, "Change Vehicle Plate Number", "Introdu mai jos numarul de inamtriculare pe care il doresti la vehiculu tau!\nNumarul de inmatriculare va fi afisat dupa urmatorul respawn al vehiculului tau!", "Change", "Back");
  472.  
  473. strmid(Veh[playerid][pInfo[playerid][aVar][9]][Plate], inputtext, 0, strlen(inputtext), 12);
  474. format(pInfo[playerid][pGText], 78, "~n~~w~plate number has changed in ~n~'~y~%s~w~'", inputtext), GameTextForPlayer(playerid, pInfo[playerid][pGText], 5000, 3);
  475. }
  476. case DIALOG_SELLHOUSE:
  477. {
  478. if(!response) return cmd_house(playerid, "");
  479. new h = pInfo[playerid][pHouse];
  480. format(stmsg[playerid], 120, "Selling house ID %d for %s$ to Anyone (TheState).", pInfo[playerid][pHouse]+1, FormatNumber(Houses[h][Value]/2)), addlog(stmsg[playerid], playerid, 5);
  481. if(pInfo[playerid][pPos_x] == Houses[h][IntX] && pInfo[playerid][pPos_y] == Houses[h][IntY] && pInfo[playerid][pPos_z] == Houses[h][IntZ]) SetPosIV(playerid);
  482. SetPlayerPos(playerid, Houses[h][EnterX], Houses[h][EnterY], Houses[h][EnterZ]);
  483. format(Houses[h][Owner], MAX_PLAYER_NAME, "TheState"), GiveMoney(playerid, Houses[h][Value]/2), Houses[h][HPrice] = 0, HBRefresh(1, h), Houses[h][Lock] = 0;
  484. orm_update(Houses[h][ORM_ID]);
  485. pInfo[playerid][pHouse] = -1, SetPlayerInteriorEx(playerid, 0), SetPlayerVirtualWorldEx(playerid, 0), DestroyDynamicMapIcon(pInfo[playerid][aVar][24]);
  486. GameTextForPlayer(playerid, "~w~Your house was sell successfully!", 4000, 3);
  487. mysql_format(MySQLCon, quMYSQL, 290, "UPDATE `players` SET `House`=%d WHERE `ID`=%d", pInfo[playerid][pHouse],pInfo[playerid][pID]);
  488. mysql_tquery(MySQLCon, quMYSQL);
  489. return 1;
  490. }
  491. case DIALOG_INREP: { if(!response) return 1; if(response) return 1; }
  492. case DIALOG_PREMINF: { if(!response) return 1; if(response) return 1; }
  493. case DIALOG_DSPORT:
  494. {
  495. if(!response) return cmd_buyveh(playerid, "");
  496. if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
  497. if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
  498. switch(listitem)
  499. {
  500. case 0: pInfo[playerid][aVar][34] = 602, pInfo[playerid][aVar][35] = 6600000; // Alpha 160
  501. case 1: pInfo[playerid][aVar][34] = 429, pInfo[playerid][aVar][35] = 12800000; // Banshee 191
  502. case 2: pInfo[playerid][aVar][34] = 496, pInfo[playerid][aVar][35] = 6390000; // Blista Compact 154
  503. case 3: pInfo[playerid][aVar][34] = 402, pInfo[playerid][aVar][35] = 11500000; // Buffalo 176
  504. case 4: pInfo[playerid][aVar][34] = 541, pInfo[playerid][aVar][35] = 16500000; // Bullet 192
  505. case 5: pInfo[playerid][aVar][34] = 415, pInfo[playerid][aVar][35] = 12500000; // Cheetah 182
  506. case 6: pInfo[playerid][aVar][34] = 587, pInfo[playerid][aVar][35] = 7370000; // Euros 156
  507. case 7: pInfo[playerid][aVar][34] = 565, pInfo[playerid][aVar][35] = 8450000; // Flash 156
  508. case 8: pInfo[playerid][aVar][34] = 411, pInfo[playerid][aVar][35] = 18500000; // Infernus 210
  509. case 9: pInfo[playerid][aVar][34] = 559, pInfo[playerid][aVar][35] = 9900000; // Jester 168
  510. case 10: pInfo[playerid][aVar][34] = 603, pInfo[playerid][aVar][35] = 8400000; // Phoenix 162
  511. case 11: pInfo[playerid][aVar][34] = 475, pInfo[playerid][aVar][35] = 6800000; // Sabre 163
  512. case 12: pInfo[playerid][aVar][34] = 451, pInfo[playerid][aVar][35] = 15500000; // Turismo 183
  513. case 13: pInfo[playerid][aVar][34] = 477, pInfo[playerid][aVar][35] = 9800000; // ZR-350 176
  514. case 14: pInfo[playerid][aVar][34] = 558, pInfo[playerid][aVar][35] = 7400000; // Uranus 147
  515. case 15: pInfo[playerid][aVar][34] = 589, pInfo[playerid][aVar][35] = 6900000; // Club 154
  516. }
  517. if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
  518. GiveMoney(playerid, -pInfo[playerid][aVar][35]);
  519. for(new r = 0; r < 14; ++r)
  520. if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
  521. format(Veh[playerid][r][Class], 16, "Sport");
  522. VehExORM(r, playerid);
  523. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
  524. return 1;
  525. }
  526. }
  527. case DIALOG_DCONVERT:
  528. {
  529. if(!response) return cmd_buyveh(playerid, "");
  530. if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
  531. if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
  532. switch(listitem)
  533. {
  534. case 0: pInfo[playerid][aVar][34] = 480, pInfo[playerid][aVar][35] = 9400000; // Comet 174
  535. case 1: pInfo[playerid][aVar][34] = 533, pInfo[playerid][aVar][35] = 4100000; // Feltzer 158
  536. case 2: pInfo[playerid][aVar][34] = 439, pInfo[playerid][aVar][35] = 3420000; // Stallion 159
  537. case 3: pInfo[playerid][aVar][34] = 555, pInfo[playerid][aVar][35] = 3550000; // Windsor 149
  538. }
  539. if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
  540. GiveMoney(playerid, -pInfo[playerid][aVar][35]);
  541. for(new r = 0; r < 14; ++r)
  542. if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
  543. format(Veh[playerid][r][Class], 16, "Convertibles");
  544. VehExORM(r, playerid);
  545. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
  546. return 1;
  547. }
  548. }
  549. case DIALOG_DINDUST:
  550. {
  551. if(!response) return cmd_buyveh(playerid, "");
  552. if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
  553. if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
  554. switch(listitem)
  555. {
  556. case 0: pInfo[playerid][aVar][34] = 499, pInfo[playerid][aVar][35] = 83000; // Benson 116
  557. case 1: pInfo[playerid][aVar][34] = 422, pInfo[playerid][aVar][35] = 2290000; // Bobcat 132
  558. case 2: pInfo[playerid][aVar][34] = 482, pInfo[playerid][aVar][35] = 3420000; // Burrito 148
  559. case 3: pInfo[playerid][aVar][34] = 498, pInfo[playerid][aVar][35] = 2270000; // Boxville 102
  560. case 4: pInfo[playerid][aVar][34] = 609, pInfo[playerid][aVar][35] = 92000; // Boxburg 103
  561. case 5: pInfo[playerid][aVar][34] = 578, pInfo[playerid][aVar][35] = 91350; // DFT-30 123
  562. case 6: pInfo[playerid][aVar][34] = 414, pInfo[playerid][aVar][35] = 91350; // Mule 100
  563. case 7: pInfo[playerid][aVar][34] = 600, pInfo[playerid][aVar][35] = 2300000; // Picador 142
  564. case 8: pInfo[playerid][aVar][34] = 413, pInfo[playerid][aVar][35] = 2360000; // Pony 104
  565. case 9: pInfo[playerid][aVar][34] = 440, pInfo[playerid][aVar][35] = 2300000; // Rumpo 129
  566. case 10: pInfo[playerid][aVar][34] = 459, pInfo[playerid][aVar][35] = 91500; // Topfun 129
  567. case 11: pInfo[playerid][aVar][34] = 554, pInfo[playerid][aVar][35] = 92000; // Yosemite 136
  568. }
  569. if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
  570. GiveMoney(playerid, -pInfo[playerid][aVar][35]);
  571. for(new r = 0; r < 14; ++r)
  572. if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
  573. format(Veh[playerid][r][Class], 16, "Industrial");
  574. VehExORM(r, playerid);
  575. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
  576. }
  577. }
  578. case DIALOG_DLOWRID:
  579. {
  580. if(!response) return cmd_buyveh(playerid, "");
  581. if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
  582. if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
  583. switch(listitem)
  584. {
  585. case 0: pInfo[playerid][aVar][34] = 536, pInfo[playerid][aVar][35] = 4900000; // Blade 164
  586. case 1: pInfo[playerid][aVar][34] = 575, pInfo[playerid][aVar][35] = 3360000; // Broadway 149
  587. case 2: pInfo[playerid][aVar][34] = 534, pInfo[playerid][aVar][35] = 2450000; // Remington 159
  588. case 3: pInfo[playerid][aVar][34] = 567, pInfo[playerid][aVar][35] = 5400000; // Savanna 163
  589. case 4: pInfo[playerid][aVar][34] = 535, pInfo[playerid][aVar][35] = 4600000; // Slamvan 150
  590. case 5: pInfo[playerid][aVar][34] = 566, pInfo[playerid][aVar][35] = 2600000; // Tahoma 151
  591. case 6: pInfo[playerid][aVar][34] = 412, pInfo[playerid][aVar][35] = 2900000; // Voodoo 159
  592. }
  593. if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
  594. GiveMoney(playerid, -pInfo[playerid][aVar][35]);
  595. for(new r = 0; r < 14; ++r)
  596. if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
  597. format(Veh[playerid][r][Class], 16, "Lowriders");
  598. VehExORM(r, playerid);
  599. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
  600. }
  601. }
  602. case DIALOG_DOFFROAD:
  603. {
  604. if(!response) return cmd_buyveh(playerid, "");
  605. if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
  606. if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
  607. switch(listitem)
  608. {
  609. case 0: pInfo[playerid][aVar][34] = 573, pInfo[playerid][aVar][35] = 9600000; // Dune 104
  610. case 1: pInfo[playerid][aVar][34] = 579, pInfo[playerid][aVar][35] = 3400000; // Huntley 149
  611. case 2: pInfo[playerid][aVar][34] = 400, pInfo[playerid][aVar][35] = 2500000; // Landstalker 149
  612. case 3: pInfo[playerid][aVar][34] = 500, pInfo[playerid][aVar][35] = 3000000; // Mesa 133
  613. }
  614. if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
  615. GiveMoney(playerid, -pInfo[playerid][aVar][35]);
  616. for(new r = 0; r < 14; ++r)
  617. if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
  618. format(Veh[playerid][r][Class], 16, "Off Road");
  619. VehExORM(r, playerid);
  620. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
  621. }
  622. }
  623. case DIALOG_DSALOONS:
  624. {
  625. if(!response) return cmd_buyveh(playerid, "");
  626. if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
  627. if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
  628. switch(listitem)
  629. {
  630. case 0: pInfo[playerid][aVar][34] = 445, pInfo[playerid][aVar][35] = 5300000; // Admiral 155
  631. case 1: pInfo[playerid][aVar][34] = 401, pInfo[playerid][aVar][35] = 580000; // Bravura 139
  632. case 2: pInfo[playerid][aVar][34] = 518, pInfo[playerid][aVar][35] = 2380000; // Buccaneer 155
  633. case 3: pInfo[playerid][aVar][34] = 527, pInfo[playerid][aVar][35] = 2310000; // Cadrona 141
  634. case 4: pInfo[playerid][aVar][34] = 542, pInfo[playerid][aVar][35] = 2310000; // Clover 155
  635. case 5: pInfo[playerid][aVar][34] = 507, pInfo[playerid][aVar][35] = 2385000; // Elegant 157
  636. case 6: pInfo[playerid][aVar][34] = 562, pInfo[playerid][aVar][35] = 4750000; // Elegy 168
  637. case 7: pInfo[playerid][aVar][34] = 585, pInfo[playerid][aVar][35] = 2280000; // Emperor 145
  638. case 8: pInfo[playerid][aVar][34] = 419, pInfo[playerid][aVar][35] = 2280000; // Esperanto 141
  639. case 9: pInfo[playerid][aVar][34] = 526, pInfo[playerid][aVar][35] = 2320000; // Fortune 149
  640. case 10: pInfo[playerid][aVar][34] = 492, pInfo[playerid][aVar][35] = 2280000; // Greenwood 133
  641. case 11: pInfo[playerid][aVar][34] = 474, pInfo[playerid][aVar][35] = 3800000; // Hermes 141
  642. case 12: pInfo[playerid][aVar][34] = 546, pInfo[playerid][aVar][35] = 2280000; // Intruder 141
  643. case 13: pInfo[playerid][aVar][34] = 517, pInfo[playerid][aVar][35] = 2360000; // Majestic 149
  644. case 14: pInfo[playerid][aVar][34] = 410, pInfo[playerid][aVar][35] = 2000000; // Manana 122
  645. case 15: pInfo[playerid][aVar][34] = 551, pInfo[playerid][aVar][35] = 2310000; // Merit 148
  646. case 16: pInfo[playerid][aVar][34] = 516, pInfo[playerid][aVar][35] = 2285000; // Nebula 149
  647. case 17: pInfo[playerid][aVar][34] = 426, pInfo[playerid][aVar][35] = 4400000; // Premier 164
  648. case 18: pInfo[playerid][aVar][34] = 405, pInfo[playerid][aVar][35] = 2375000; // Sentinel 155
  649. case 19: pInfo[playerid][aVar][34] = 540, pInfo[playerid][aVar][35] = 2290000; // Vincent 141
  650. case 20: pInfo[playerid][aVar][34] = 421, pInfo[playerid][aVar][35] = 2325000; // Washington 145
  651. case 21: pInfo[playerid][aVar][34] = 560, pInfo[playerid][aVar][35] = 5100000; // Sultan 160
  652. }
  653. if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
  654. GiveMoney(playerid, -pInfo[playerid][aVar][35]);
  655. for(new r = 0; r < 14; ++r)
  656. if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
  657. format(Veh[playerid][r][Class], 16, "Saloons");
  658. VehExORM(r, playerid);
  659. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
  660. }
  661. }
  662. case DIALOG_DBIKES:
  663. {
  664. if(!response) return cmd_buyveh(playerid, "");
  665. if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
  666. if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
  667. switch(listitem)
  668. {
  669. case 0: {
  670. pInfo[playerid][aVar][34] = 461;
  671. pInfo[playerid][aVar][35] = 7700000; // PCJ-600 188
  672. }
  673. case 1: {
  674. pInfo[playerid][aVar][34] = 462;
  675. pInfo[playerid][aVar][35] = 800000; // Faggio 157
  676. }
  677. case 2: {
  678. pInfo[playerid][aVar][34] = 463;
  679. pInfo[playerid][aVar][35] = 5600000; // Freeway 184
  680. }
  681. case 3: {
  682. pInfo[playerid][aVar][34] = 471;
  683. pInfo[playerid][aVar][35] = 600000; // Quad (ATV) 104
  684. }
  685. case 4: {
  686. pInfo[playerid][aVar][34] = 481;
  687. pInfo[playerid][aVar][35] = 900000; // BMX 91
  688. }
  689. case 5: {
  690. pInfo[playerid][aVar][34] = 509;
  691. pInfo[playerid][aVar][35] = 80000; // Bike 98
  692. }
  693. case 6: {
  694. pInfo[playerid][aVar][34] = 510;
  695. pInfo[playerid][aVar][35] = 90000; // Mountain Bike 122
  696. }
  697. case 7: {
  698. pInfo[playerid][aVar][34] = 521;
  699. pInfo[playerid][aVar][35] = 9000000; // FCR-900 187
  700. }
  701. case 8: {
  702. pInfo[playerid][aVar][34] = 522;
  703. pInfo[playerid][aVar][35] = 15000000; // NRG-500 192
  704. }
  705. case 9: {
  706. pInfo[playerid][aVar][34] = 581;
  707. pInfo[playerid][aVar][35] = 6000000; // BF-400 178
  708. }
  709. case 10: {
  710. pInfo[playerid][aVar][34] = 586;
  711. pInfo[playerid][aVar][35] = 3800000; // Wayfarer 181
  712. }
  713. }
  714. if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
  715. GiveMoney(playerid, -pInfo[playerid][aVar][35]);
  716.  
  717. for(new r = 0; r < 14; ++r){
  718. if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
  719. format(Veh[playerid][r][Class], 16, "Bikes");
  720. VehExORM(r, playerid);
  721. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
  722. }
  723. }
  724. }
  725. case DIALOG_SPECIALV:
  726. {
  727. if(!response) return cmd_buyveh(playerid, "");
  728. if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
  729. if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
  730. switch(listitem)
  731. {
  732. case 0: {
  733. pInfo[playerid][aVar][34] = 556;
  734. pInfo[playerid][aVar][35] = 80; // Monster A 104
  735. }
  736. case 1: {
  737. pInfo[playerid][aVar][34] = 557;
  738. pInfo[playerid][aVar][35] = 80; // Monster B 104
  739. }
  740. case 2: {
  741. pInfo[playerid][aVar][34] = 444;
  742. pInfo[playerid][aVar][35] = 80; // Monster C 104
  743. }
  744. case 3: {
  745. pInfo[playerid][aVar][34] = 494;
  746. pInfo[playerid][aVar][35] = 90; // Hotring Racer 203
  747. }
  748. case 4: {
  749. pInfo[playerid][aVar][34] = 502;
  750. pInfo[playerid][aVar][35] = 90; // Hotring Racer A 203
  751. }
  752. case 5: {
  753. pInfo[playerid][aVar][34] = 503;
  754. pInfo[playerid][aVar][35] = 90; // Hotring Racer B 203
  755. }
  756. case 6: {
  757. pInfo[playerid][aVar][34] = 568;
  758. pInfo[playerid][aVar][35] = 70; // Bandito 138
  759. }
  760. case 7: {
  761. pInfo[playerid][aVar][34] = 424;
  762. pInfo[playerid][aVar][35] = 60; // BF Injection 127
  763. }
  764. case 8: {
  765. pInfo[playerid][aVar][34] = 487;
  766. pInfo[playerid][aVar][35] = 90; // Maverick 169
  767. }
  768. case 9: {
  769. pInfo[playerid][aVar][34] = 469;
  770. pInfo[playerid][aVar][35] = 80; // Sparrow 124
  771. }
  772. case 10: {
  773. pInfo[playerid][aVar][34] = 519;
  774. pInfo[playerid][aVar][35] = 100; // Shamal +184
  775. }
  776. case 11: {
  777. pInfo[playerid][aVar][34] = 468;
  778. pInfo[playerid][aVar][35] = 40; // Sanchez 166
  779. }
  780. case 12: {
  781. pInfo[playerid][aVar][34] = 495;
  782. pInfo[playerid][aVar][35] = 80; // Sandking 167
  783. }
  784. case 13: {
  785. pInfo[playerid][aVar][34] = 506;
  786. pInfo[playerid][aVar][35] = 60; // Super GT 169
  787. }
  788. case 14: {
  789. pInfo[playerid][aVar][34] = 539;
  790. pInfo[playerid][aVar][35] = 70; // Vortex 94
  791. }
  792. case 15: {
  793. pInfo[playerid][aVar][34] = 571;
  794. pInfo[playerid][aVar][35] = 30; // Kart 88
  795. }
  796. case 16: {
  797. pInfo[playerid][aVar][34] = 409;
  798. pInfo[playerid][aVar][35] = 80; // Stretch 149
  799. }
  800. }
  801. if(pInfo[playerid][pDiamonds] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamonds.");
  802. pInfo[playerid][pDiamonds] -= pInfo[playerid][aVar][35];
  803. for(new r = 0; r < 14; ++r)
  804. if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
  805. format(Veh[playerid][r][Class], 16, "Specials");
  806. VehExORM(r, playerid);
  807. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
  808. }
  809. }
  810. case DIALOG_DEALERSHIP:
  811. {
  812. if(!response) return 1;
  813. new tmp[86];
  814. switch(listitem)
  815. {
  816. case 0:
  817. {
  818. format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nAlpha\t6.600.000$\t160 KM/H\n"), strcat(stdlg[playerid], tmp),
  819. format(tmp, sizeof(tmp), "Banshee\t12.800.000$\t191 KM/H\nBlista Compact\t6.390.000$\t154 KM/H\n"), strcat(stdlg[playerid], tmp),
  820. format(tmp, sizeof(tmp), "Buffalo\t11.500.000$\t176 KM/H\nBullet\t16.500.000$\t192 KM/H\n"), strcat(stdlg[playerid], tmp),
  821. format(tmp, sizeof(tmp), "Cheetah\t12.500.000$\t182 KM/H\nEuros\t7.370.000$\t156 KM/H\n"), strcat(stdlg[playerid], tmp),
  822. format(tmp, sizeof(tmp), "Flash\t8.450.000$\t156 KM/H\nInfernus\t18.500.000$\t210 KM/H\n"), strcat(stdlg[playerid], tmp),
  823. format(tmp, sizeof(tmp), "Jester\t9.900.000$\t168 KM/H\nPhoenix\t8.400.000$\t162 KM/H\n"), strcat(stdlg[playerid], tmp),
  824. format(tmp, sizeof(tmp), "Sabre\t6.800.000$\t163 KM/H\n"), strcat(stdlg[playerid], tmp),
  825. format(tmp, sizeof(tmp), "Turismo\t15.500.000$\t183 KM/H\nZR-350\t9.800.000$\t176 KM/H\n"), strcat(stdlg[playerid], tmp),
  826. format(tmp, sizeof(tmp), "Uranus\t7.400.000$\t147 KM/H\nClub\t6.900.000$\t154 KM/H\n"), strcat(stdlg[playerid], tmp);
  827. ShowPlayerDialog(playerid, DIALOG_DSPORT, DIALOG_STYLE_TABLIST_HEADERS, "Sport Vehicles", stdlg[playerid], "Buy", "Back");
  828. }
  829. case 1:
  830. {
  831. format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nComet\t9.400.000$\t174 KM/H\n"), strcat(stdlg[playerid], tmp),
  832. format(tmp, sizeof(tmp), "Feltzer\t4.100.000$\t158 KM/H\nStallion\t3.420.000$\t159 KM/H\n"), strcat(stdlg[playerid], tmp),
  833. format(tmp, sizeof(tmp), "Windsor\t3.550.000$\t149 KM/H\n"), strcat(stdlg[playerid], tmp);
  834. ShowPlayerDialog(playerid, DIALOG_DCONVERT, DIALOG_STYLE_TABLIST_HEADERS, "Convertibles", stdlg[playerid], "Buy", "Back");
  835. }
  836. case 2:
  837. {
  838. format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nBenson\t83.000$\t116 KM/H\n"), strcat(stdlg[playerid], tmp),
  839. format(tmp, sizeof(tmp), "Bobcat\t2.290.000$\t132 KM/H\nBurrito\t3.420.000$\t148 KM/H\n"), strcat(stdlg[playerid], tmp),
  840. format(tmp, sizeof(tmp), "Boxville\t2.270.000$\t102 KM/H\nBoxburg\t92.000$\t103 KM/H\n"), strcat(stdlg[playerid], tmp),
  841. format(tmp, sizeof(tmp), "DFT-30\t91.350$\t123 KM/H\nMule\t91.350$\t100 KM/H\n"), strcat(stdlg[playerid], tmp),
  842. format(tmp, sizeof(tmp), "Picador\t2.300.000$\t142 KM/H\nPony\t2.360.000$\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
  843. format(tmp, sizeof(tmp), "Rumpo\t2.300.000$\t129 KM/H\nTopfun\t91.500$\t129 KM/H\n"), strcat(stdlg[playerid], tmp),
  844. format(tmp, sizeof(tmp), "Yosemite\t92.000$\t136 KM/H"), strcat(stdlg[playerid], tmp);
  845. ShowPlayerDialog(playerid, DIALOG_DINDUST, DIALOG_STYLE_TABLIST_HEADERS, "Industrial", stdlg[playerid], "Buy", "Back");
  846. }
  847. case 3:
  848. {
  849. format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nBlade\t4.900.000$\t164 KM/H\n"), strcat(stdlg[playerid], tmp),
  850. format(tmp, sizeof(tmp), "Broadway\t3.360.000$\t149 KM/H\nRemington\t2.450.000$\t159 KM/H\n"), strcat(stdlg[playerid], tmp),
  851. format(tmp, sizeof(tmp), "Savanna\t5.400.000$\t163 KM/H\nSlamvan\t4.600.000$\t150 KM/H\n"), strcat(stdlg[playerid], tmp),
  852. format(tmp, sizeof(tmp), "Tahoma\t2.600.000$\t151 KM/H\nVoodoo\t2.900.000$\t159 KM/H\n"), strcat(stdlg[playerid], tmp);
  853. ShowPlayerDialog(playerid, DIALOG_DLOWRID, DIALOG_STYLE_TABLIST_HEADERS, "Lowriders", stdlg[playerid], "Buy", "Back");
  854. }
  855. case 4:
  856. {
  857. format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nDune\t9.600.000$\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
  858. format(tmp, sizeof(tmp), "Huntley\t3.400.000$\t149 KM/H\nLandstalker\t2.500.000$\t149 KM/H\n"), strcat(stdlg[playerid], tmp),
  859. format(tmp, sizeof(tmp), "Mesa\t3.000.000$\t133 KM/H\n"), strcat(stdlg[playerid], tmp);
  860. ShowPlayerDialog(playerid, DIALOG_DOFFROAD, DIALOG_STYLE_TABLIST_HEADERS, "Off Road", stdlg[playerid], "Buy", "Back");
  861. }
  862. case 5:
  863. {
  864. format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nAdmiral\t5.300.000$\t155 KM/H\n"), strcat(stdlg[playerid], tmp),
  865. format(tmp, sizeof(tmp), "Bravura\t580.000$\t139 KM/H\nBuccaneer\t2.380.000$\t155 KM/H\n"), strcat(stdlg[playerid], tmp),
  866. format(tmp, sizeof(tmp), "Cadrona\t2.310.000$\t141 KM/H\nClover\t2.310.000$\t155 KM/H\n"), strcat(stdlg[playerid], tmp),
  867. format(tmp, sizeof(tmp), "Elegant\t2.385.000$\t157 KM/H\nElegy\t4.750.000$\t168 KM/H\n"), strcat(stdlg[playerid], tmp),
  868. format(tmp, sizeof(tmp), "Emperor\t2.280.000$\t145 KM/H\nEsperanto\t2.280.000$\t141 KM/H\n"), strcat(stdlg[playerid], tmp),
  869. format(tmp, sizeof(tmp), "Fortune\t2.320.000$\t149 KM/H\nGreenwood\t2.280.000$\t133 KM/H\n"), strcat(stdlg[playerid], tmp),
  870. format(tmp, sizeof(tmp), "Hermes\t3.800.000$\t141 KM/H\nIntruder\t2.280.000$\t141 KM/H\n"), strcat(stdlg[playerid], tmp),
  871. format(tmp, sizeof(tmp), "Majestic\t2.360.000$\t149 KM/H\nManana\t2.000.000$\t122 KM/H\n"), strcat(stdlg[playerid], tmp),
  872. format(tmp, sizeof(tmp), "Merit\t2.310.000$\t148 KM/H\nNebula\t2.285.000$\t149 KM/H\n"), strcat(stdlg[playerid], tmp),
  873. format(tmp, sizeof(tmp), "Premier\t4.400.000$\t164 KM/H\n"), strcat(stdlg[playerid], tmp),
  874. format(tmp, sizeof(tmp), "Sentinel\t2.375.000$\t155 KM/H\nVincent\t2.290.000$\t141 KM/H\n"), strcat(stdlg[playerid], tmp),
  875. format(tmp, sizeof(tmp), "Washington\t2.325.000$\t145 KM/H\nSultan\t5.100.000$\t160 KM/H"), strcat(stdlg[playerid], tmp);
  876. ShowPlayerDialog(playerid, DIALOG_DSALOONS, DIALOG_STYLE_TABLIST_HEADERS, "Saloons", stdlg[playerid], "Buy", "Back");
  877. }
  878. case 6:
  879. {
  880. format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nPCJ-600\t7.700.000$\t188 KM/H\n"), strcat(stdlg[playerid], tmp),
  881. format(tmp, sizeof(tmp), "Faggio\t800.000$\t157 KM/H\nFreeway\t5.600.000$\t184 KM/H\n"), strcat(stdlg[playerid], tmp),
  882. format(tmp, sizeof(tmp), "Quad\t600.000$\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
  883. format(tmp, sizeof(tmp), "BMX\t900.000$\t91 KM/H\nBike\t80.000$\t98 KM/H\n"), strcat(stdlg[playerid], tmp),
  884. format(tmp, sizeof(tmp), "Mountain Bike\t90.000$\t122 KM/H\nFCR-900\t9.000.000$\t187 KM/H\n"), strcat(stdlg[playerid], tmp),
  885. format(tmp, sizeof(tmp), "NRG-500\t15.000.000$\t192 KM/H\nBF-400\t6.000.000$\t178 KM/H\n"), strcat(stdlg[playerid], tmp),
  886. format(tmp, sizeof(tmp), "Wayfarer\t3.800.000$\t181 KM/H"), strcat(stdlg[playerid], tmp);
  887. ShowPlayerDialog(playerid, DIALOG_DBIKES, DIALOG_STYLE_TABLIST_HEADERS, "Bikes", stdlg[playerid], "Buy", "Back");
  888. }
  889. case 7:
  890. {
  891. format(pInfo[playerid][pT], 44, "Special Vehicles - {4EE2EC}%d Diamonds", pInfo[playerid][pDiamonds]);
  892. format(tmp, sizeof(tmp), "Vehicle\tDiamonds\tMax Speed\nMonster A\t{4EE2EC}80\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
  893. format(tmp, sizeof(tmp), "Monster B\t{4EE2EC}80\t104 KM/H\nMonster C\t{4EE2EC}80\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
  894. format(tmp, sizeof(tmp), "Hotring Racer\t{4EE2EC}90\t203 KM/H\nHotring Racer A\t{4EE2EC}90\t203 KM/H"), strcat(stdlg[playerid], tmp),
  895. format(tmp, sizeof(tmp), "\nHotring Racer B\t{4EE2EC}90\t203 KM/H\nBandito\t{4EE2EC}70\t138 KM/H\n"), strcat(stdlg[playerid], tmp),
  896. format(tmp, sizeof(tmp), "BF Injection\t{4EE2EC}60\t127 KM/H\nMaverick\t{4EE2EC}90\t169 KM/H"), strcat(stdlg[playerid], tmp);
  897. format(tmp, sizeof(tmp), "\nSparrow\t{4EE2EC}80\t124 KM/H\nShamal\t{4EE2EC}100\t+184 KM/H"), strcat(stdlg[playerid], tmp);
  898. format(tmp, sizeof(tmp), "\nSanchez\t{4EE2EC}40\t166 KM/H\nSandKing\t{4EE2EC}80\t167 KM/H"), strcat(stdlg[playerid], tmp);
  899. format(tmp, sizeof(tmp), "\nSuper GT\t{4EE2EC}60\t169 KM/H"), strcat(stdlg[playerid], tmp);
  900. format(tmp, sizeof(tmp), "\nVortex\t{4EE2EC}70\t94 KM/H\nKart\t{4EE2EC}30\t88 KM/H\nStretch\t{4EE2EC}80\t149 KM/H"), strcat(stdlg[playerid], tmp);
  901. ShowPlayerDialog(playerid, DIALOG_SPECIALV, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Buy", "Back");
  902. }
  903. }
  904. }
Advertisement
Add Comment
Please, Sign In to add comment