Guest User

Untitled

a guest
Jan 8th, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.21 KB | None | 0 0
  1. case DIALOG_P2:
  2. {
  3. switch(pInfo[playerid][aVar][15])
  4. {
  5. case 1:
  6. {
  7. if(!response) cmd_shop(playerid, "");
  8. return 1;
  9. }
  10. case 2:
  11. {
  12. if(!response) return cmd_shop(playerid, "");
  13. if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  14. if(pInfo[playerid][pPremium] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Premium Account.");
  15. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat Cont Premium valabil 14 zile din shopul BF.");
  16. pInfo[playerid][pPremium] = gtm+(14*86400), pInfo[playerid][pDiamonds] -= 100;
  17. }
  18. case 3:
  19. {
  20. if(!response) return cmd_shop(playerid, "");
  21. if(pInfo[playerid][pDiamonds] < 50) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  22. //if(pInfo[playerid][pFPunish] < 20) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have minimum 1 Faction Punish.");
  23. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai scapat de Faction Punish.");
  24. pInfo[playerid][pFPunish] = 0, pInfo[playerid][pDiamonds] -= 50;
  25. }
  26. case 4:
  27. {
  28. if(!response) return cmd_shop(playerid, "");
  29. if(pInfo[playerid][pDiamonds] < 50) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  30. ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_INPUT, "Change NickName", "Scrie mai jos noul tau NickName pe server.", "Change", "Back");
  31. pInfo[playerid][aVar][15] = 1;
  32. }
  33. case 5:
  34. {
  35. if(!response) return cmd_shop(playerid, "");
  36. if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  37. if(pInfo[playerid][pWarns] < 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have minimum 1 Warn.");
  38. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai scapat de 1 Warn.");
  39. pInfo[playerid][pWarns] -= 1, pInfo[playerid][pDiamonds] -= 40;
  40. }
  41. case 6:
  42. {
  43. if(!response) return cmd_shop(playerid, "");
  44. if(pInfo[playerid][pDiamonds] < 5) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  45. ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_MSGBOX, "{00C0FF}Schimbare Sex", "Femeie ori Barbat?", "Barbat", "Femeie");
  46. pInfo[playerid][aVar][15] = 2;
  47. }
  48. case 7:
  49. {
  50. if(!response) return cmd_shop(playerid, "");
  51. if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  52. if(pInfo[playerid][pTotVeh] == -1) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't own any vehicles.");
  53. stdlg[playerid] = "Name\tStatus\tKilometers", pInfo[playerid][aVar][15] = 3;
  54. for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
  55. format(stdlg[playerid], 580, "%s\n%s\t%s\t%.0f KM", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model]-400], Veh[playerid][i][Lock] == 0 ? ("{00BA19}Unlocked") : ("{BD0000}Locked"), KMVeh[Veh[playerid][i][ServerID]]);
  56.  
  57. ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_TABLIST_HEADERS, "Reset Vehicle KM", stdlg[playerid], "Reset KM", "Back");
  58. }
  59. case 8:
  60. {
  61. if(!response) return cmd_shop(playerid, "");
  62. if(pInfo[playerid][pDiamonds] < 30) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  63. if(pInfo[playerid][pTotVeh] == -1) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't own any vehicles.");
  64. ShowPlayerDialog(playerid, DIALOG_HIDEE, DIALOG_STYLE_LIST, "Hidden Vehicle Color", "Hidden #1\nHidden #2", "Select", "Back");
  65. }
  66. case 9:
  67. {
  68. if(!response) return cmd_shop(playerid, "");
  69. if(pInfo[playerid][pDiamonds] < 150) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  70. if(pInfo[playerid][pCRank] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a clan. / You are part of a clan.");
  71. mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `Clan`=%d, `CRank`=%d WHERE `ID`=%d", pInfo[playerid][pClan], pInfo[playerid][pCRank], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
  72. ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_INPUT, "Clan Name", "Write your clan name.", "Next", "Back"), pInfo[playerid][aVar][15] = 7, pInfo[playerid][pDiamonds] -= 150;
  73. }
  74. case 10:
  75. {
  76. if(!response) return cmd_shop(playerid, "");
  77. SendClientMessage(playerid, COLOR_DARKGRAY, "Clanurile sunt dezactivate momentan.");
  78. if(pInfo[playerid][pDiamonds] < 200) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  79. if(pInfo[playerid][pCRank] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a clan. / You are part of a clan.");
  80. mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `Clan`=%d, `CRank`=%d WHERE `ID`=%d", pInfo[playerid][pClan], pInfo[playerid][pCRank], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
  81. ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_INPUT, "Clan Name", "Write your clan name.", "Next", "Back"), pInfo[playerid][aVar][15] = 9, pInfo[playerid][pDiamonds] -= 200;
  82. }
  83. case 11:
  84. {
  85. if(!response) return cmd_shop(playerid, "");
  86. if(pInfo[playerid][pDiamonds] < 100) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  87. if(pInfo[playerid][pCRank] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a clan. / You are part of a clan.");
  88. SendClientMessage(playerid, COLOR_DARKGRAY, "Clanurile sunt dezactivate momentan.");
  89. mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `Clan`=%d, `CRank`=%d WHERE `ID`=%d", pInfo[playerid][pClan], pInfo[playerid][pCRank], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
  90. ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_INPUT, "Clan Name", "Write your clan name.", "Next", "Back"), pInfo[playerid][aVar][15] = 11, pInfo[playerid][pDiamonds] -= 100;
  91. }
  92. case 14:
  93. {
  94. if(!response) return cmd_shop(playerid, "");
  95. if(pInfo[playerid][pDiamonds] < 150) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  96. GiveMoney(playerid, 15000000), pInfo[playerid][pDiamonds] -= 150, SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai cumparat 15.000.000$ din shop.");
  97. format(SpStr, sizeof(SpStr), "~g~+15.000.000$"), PlayerTextDrawSetString(playerid, ShowMoneyPlus[playerid], SpStr), PlayerTextDrawShow(playerid, ShowMoneyPlus[playerid]), SetTimerEx("HideMoneyTD", 4500, false, "i", playerid);
  98. }
  99. case 15:
  100. {
  101. if(!response) return cmd_shop(playerid, "");
  102. if(pInfo[playerid][pDiamonds] < 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  103. pInfo[playerid][pDiamonds] -= 10, pInfo[playerid][pSlotVeh]++, SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat un slot pentru vehicule personale.");
  104. mysql_format(MySQLCon, quMYSQL, 200, "UPDATE `players` SET `SlotVeh`=%d WHERE `ID`=%d", pInfo[playerid][pSlotVeh], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
  105. }
  106. case 16:
  107. {
  108. if(!response) return cmd_shop(playerid, "");
  109. if(pInfo[playerid][pDiamonds] < 30) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  110. ShowPlayerDialog(playerid, DIALOG_PNUMBER, DIALOG_STYLE_INPUT, "Ai cumparat Iphone", "Scire numarul tau personalizat (4cifre)", "Set", "Back");
  111. }
  112. case 17:
  113. {
  114. if(!response) return cmd_shop(playerid, "");
  115. if(pInfo[playerid][pDiamonds] < 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  116. pInfo[playerid][pDiamonds] -= 10, SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat 5 Respect Points.");
  117. pInfo[playerid][pRPoints] += 5;
  118. mysql_format(MySQLCon, quMYSQL, 200, "UPDATE `players` SET `RPoints`=%d WHERE `ID`=%d", pInfo[playerid][pRPoints], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
  119. }
  120. case 18:
  121. {
  122. if(!response) return cmd_shop(playerid, "");
  123. if(pInfo[playerid][pDiamonds] < 60) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  124. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat level up din shop.");
  125. pInfo[playerid][pUPoints]++, pInfo[playerid][pDiamonds] -= 60, GameTextForPlayer(playerid, "~p~Level up!", 1000, 1), PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0), pInfo[playerid][pScore]++, SetPlayerScore(playerid, pInfo[playerid][pScore]);
  126. if(pInfo[playerid][pScore] == 5)
  127. {
  128. DestroyDynamicObject(pInfo[playerid][aVar][12]), DestroyDynamicObject(Veh[playerid][0][vOsl]), DestroyDynamicObject(Veh[playerid][0][vOhd]), DestroyDynamicObject(Veh[playerid][0][vTt1]), DestroyDynamicObject(Veh[playerid][0][vTt2]), pInfo[playerid][aVar][12] = 0, DestroyVehicle(Veh[playerid][0][ServerID]), vVar[11][Veh[playerid][0][ServerID]] = INVALID_PLAYER_ID, pInfo[playerid][pTotVeh]--;
  129. mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `TotVeh`=%d WHERE `ID`=%d", pInfo[playerid][pTotVeh], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
  130. orm_delete(Veh[playerid][0][ORM_ID]), memcpy(Veh[playerid][0], Veh[MAX_PLAYERS][14], 0, sizeof(Veh[][])*4, sizeof(Veh[][]));
  131.  
  132. if(pInfo[playerid][pRef] != 0)
  133. {
  134. new Cache:r = mysql_query(MySQLCon, sprintf("SELECT user, Status FROM `players` WHERE `ID`=%d", pInfo[playerid][pRef]), true);
  135. if(cache_num_rows())
  136. {
  137. new name[MAX_PLAYER_NAME];
  138. if(cache_get_field_content_int(0, "Status") == 1) return cache_get_field_content(0, "user", name), pInfo[playerid][aSpam][10] = ReturnUser(name), format(stmsg[pInfo[playerid][aSpam][10]], 100, "Referral: %s has reached level 5, you get 5 Diamante and 1.200.000$, congratulations.", GetName(playerid)),
  139. format(SpStr, sizeof(SpStr), "~g~+1.200.000$"), PlayerTextDrawSetString(pInfo[playerid][aSpam][10], ShowMoneyPlus[pInfo[playerid][aSpam][10]], SpStr), PlayerTextDrawShow(pInfo[playerid][aSpam][10], ShowMoneyPlus[pInfo[playerid][aSpam][10]]), SetTimerEx("HideMoneyTD", 4500, false, "i", pInfo[playerid][aSpam][10]),
  140. SendClientMessage(pInfo[playerid][aSpam][10], COLOR_YELLOW, stmsg[pInfo[playerid][aSpam][10]]), GiveMoney(pInfo[playerid][aSpam][10], 1200000), pInfo[pInfo[playerid][aSpam][10]][pDiamonds] += 5, cache_delete(r), 1;
  141. else return mysql_format(MySQLCon, quMYSQL, 200, "UPDATE `players` SET `Diamonds`=`Diamonds`+5, `Money`=`Money`+200000 WHERE `ID`=%d", pInfo[playerid][pRef]), mysql_tquery(MySQLCon, quMYSQL), cache_delete(r), 1;
  142. }
  143. cache_delete(r);
  144. }
  145. }
  146. }
  147. case 19:
  148. {
  149. if(!response) return cmd_shop(playerid, "");
  150. if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  151. pInfo[playerid][aVar][15] = 20, format(pInfo[playerid][pT], 45, "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]), stdlg[playerid] = "Name\tStatus\tSpawn\tCompatible";
  152. for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
  153. format(stdlg[playerid], 1100, "%s\n%s%s\t%s\t%s\t%s", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model]-400], Veh[playerid][i][vTax] == 0 ? ("") : (" ({BD0000}seized{FFFFFF})"), Veh[playerid][i][Lock] == 0 ? ("{00BA19}Unlocked") : ("{BD0000}Locked"), Veh[playerid][i][vSp] == 1 ? ("{BD0000}Despawned") : ("{00BA19}Spawned"), IsSpoiler(Veh[playerid][i][ServerID]) ? ("{C90000}No") : ("{00BA19}Yes"));
  154. ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
  155. }
  156. case 20:
  157. {
  158. if(!response) return cmd_shop(playerid, "");
  159. pInfo[playerid][aVar][88] = 0;
  160. for(new i = 0; i < 15; ++i)
  161. {
  162. if(Veh[playerid][i][Owner] == pInfo[playerid][pID] && pInfo[playerid][aVar][88] == listitem)
  163. {
  164. if(IsSpoiler(Veh[playerid][i][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "Acest vehicul nu suporta un model de spoiler."), ShowPlayerDialog(playerid, DIALOG_CUSTO, DIALOG_STYLE_LIST, "Vehicle Customization", "Spoiler - {4EE2EC}40 Diamante\nHood - {4EE2EC}40 Diamante\nSwitch Wheels - {4EE2EC}40 Diamante\nDollar Wheels - {4EE2EC}40 Diamante\nCutter Wheels - {4EE2EC}40 Diamante\nTattoos - {4EE2EC}40 Diamante", "Select", "Back");
  165. if(Veh[playerid][i][vSp] == 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "Acest vehicul este despawnat."), ShowPlayerDialog(playerid, DIALOG_CUSTO, DIALOG_STYLE_LIST, "Vehicle Customization", "Spoiler - {4EE2EC}40 Diamante\nHood - {4EE2EC}40 Diamante\nSwitch Wheels - {4EE2EC}40 Diamante\nDollar Wheels - {4EE2EC}40 Diamante\nCutter Wheels - {4EE2EC}40 Diamante\nTattoos - {4EE2EC}40 Diamante", "Select", "Back");
  166. pInfo[playerid][aVar][88] = i, ShowModelSelectionMenu(playerid, mSelect[6], "Select Spoiler"), pInfo[playerid][aSpam][5] = gtm+1;
  167. return 1;
  168. }
  169. pInfo[playerid][aVar][88]++;
  170. }
  171. }
  172. case 21:
  173. {
  174. if(!response) return cmd_shop(playerid, "");
  175. if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  176. pInfo[playerid][aVar][15] = 22, format(pInfo[playerid][pT], 45, "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]), stdlg[playerid] = "Name\tStatus\tSpawn\tCompatible";
  177. for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
  178. format(stdlg[playerid], 1100, "%s\n%s%s\t%s\t%s\t%s", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model]-400], Veh[playerid][i][vTax] == 0 ? ("") : (" ({BD0000}seized{FFFFFF})"), Veh[playerid][i][Lock] == 0 ? ("{00BA19}Unlocked") : ("{BD0000}Locked"), Veh[playerid][i][vSp] == 1 ? ("{BD0000}Despawned") : ("{00BA19}Spawned"), IsHood(Veh[playerid][i][ServerID]) ? ("{00BA19}Yes") : ("{C90000}No"));
  179. ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
  180. }
  181. case 22:
  182. {
  183. if(!response) return cmd_shop(playerid, "");
  184. pInfo[playerid][aVar][88] = 0;
  185. for(new i = 0; i < 15; ++i)
  186. {
  187. if(Veh[playerid][i][Owner] == pInfo[playerid][pID] && pInfo[playerid][aVar][88] == listitem)
  188. {
  189. if(!IsHood(Veh[playerid][i][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "Acest vehicul nu suporta un model de hood."), ShowPlayerDialog(playerid, DIALOG_CUSTO, DIALOG_STYLE_LIST, "Vehicle Customization", "Spoiler - {4EE2EC}40 Diamante\nHood - {4EE2EC}40 Diamante\nSwitch Wheels - {4EE2EC}40 Diamante\nDollar Wheels - {4EE2EC}40 Diamante\nCutter Wheels - {4EE2EC}40 Diamante\nTattoos - {4EE2EC}40 Diamante", "Select", "Back");
  190. if(Veh[playerid][i][vSp] == 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "Acest vehicul este despawnat."), ShowPlayerDialog(playerid, DIALOG_CUSTO, DIALOG_STYLE_LIST, "Vehicle Customization", "Spoiler - {4EE2EC}40 Diamante\nHood - {4EE2EC}40 Diamante\nSwitch Wheels - {4EE2EC}40 Diamante\nDollar Wheels - {4EE2EC}40 Diamante\nCutter Wheels - {4EE2EC}40 Diamante\nTattoos - {4EE2EC}40 Diamante", "Select", "Back");
  191. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, hood-ul a fost atasat pe vehiculul tau cu succes.");
  192. DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][88]][vOhd]), pInfo[playerid][pDiamonds] -= 40, Veh[playerid][pInfo[playerid][aVar][88]][vHd] = 1005, Veh[playerid][pInfo[playerid][aVar][88]][vOhd] = CreateDynamicObject(1005, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), SetDynamicObjectMaterial(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], 0, -1, "none", "none", RGBAToARGB(VehCRGBA[Veh[playerid][pInfo[playerid][aVar][88]][Color1]]));
  193. switch(Veh[playerid][pInfo[playerid][aVar][88]][Model])
  194. {
  195. case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.97660, 0.08170, 0.00000, 0.00000, 0.00000);
  196. case 429: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 0.87160, 0.24970, 0.00000, 0.00000, 0.00000);
  197. case 415: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.56460, 0.10270, 0.00000, 0.00000, 0.00000);
  198. case 475: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
  199. case 477: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
  200. case 558: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.58560, 0.27070, 0.00000, 0.00000, 0.00000);
  201. case 402: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.62760, 0.27070, 0.00000, 0.00000, 0.00000);
  202. case 480: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.31260, 0.20770, 0.00000, 0.00000, 0.00000);
  203. case 533: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.69060, 0.24970, 0.00000, 0.00000, 0.00000);
  204. case 482: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 2.06860, 0.16570, 0.00000, 0.00000, 0.00000);
  205. case 536: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.69060, 0.14470, 0.00000, 0.00000, 0.00000);
  206. case 535: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.83760, 0.33370, 0.00000, 0.00000, 0.00000);
  207. case 567: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 2.13160, 0.08170, 0.00000, 0.00000, 0.00000);
  208. case 579: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.69060, 0.43870, 0.00000, 0.00000, 0.00000);
  209. case 506: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01170, 1.41760, 0.12370, 0.00000, 0.00000, 0.00000);
  210. case 494: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.45960, 0.18670, 0.00000, 0.00000, 0.00000);
  211. case 502: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
  212. case 503: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.77460, 0.16570, 0.00000, 0.00000, 0.00000);
  213. case 556: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.81660, 1.02670, 0.00000, 0.00000, 0.00000);
  214. case 557: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.81660, 1.00570, 0.00000, 0.00000, 0.00000);
  215. case 444: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.98460, 1.02670, 0.00000, 0.00000, 0.00000);
  216. case 562: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.56460, 0.24970, 0.00000, 0.00000, 0.00000);
  217. case 400: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
  218. case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.37560, 0.24970, 0.00000, 0.00000, 0.00000);
  219. case 542: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
  220. case 602: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.01000, 1.60660, 0.16570, 0.00000, 0.00000, 0.00000);
  221. case 445: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.76660, 0.20770, 0.00000, 0.00000, 0.00000);
  222. case 405: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.68260, 0.16570, 0.00000, 0.00000, 0.00000);
  223. case 492: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.72460, 0.31270, 0.00000, 0.00000, 0.00000);
  224. case 500: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.49360, 0.14470, 0.00000, 0.00000, 0.00000);
  225. case 412: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.89260, 0.17670, -1.00000, 0.00000, 0.00000);
  226. case 566: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
  227. case 559: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.72460, 0.18670, 0.00000, 0.00000, 0.00000);
  228. case 587: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][88]][vOhd], Veh[playerid][pInfo[playerid][aVar][88]][ServerID], -0.00070, 1.57760, 0.16570, 0.00000, 0.00000, 0.00000);
  229. default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][88]][vOhd]);
  230. }
  231. return 1;
  232. }
  233. pInfo[playerid][aVar][88]++;
  234. }
  235. }
  236. case 23:
  237. {
  238. if(!response) return cmd_shop(playerid, "");
  239. if(pInfo[playerid][pDiamonds] < 200) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  240. if(pInfo[playerid][pPremium] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Premium Account.");
  241. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat Cont Premium valabil 1 an din shopul BF.");
  242. pInfo[playerid][pPremium] = gtm+(360*86400), pInfo[playerid][pDiamonds] -= 200;
  243. }
  244. case 24:
  245. {
  246. if(!response) return cmd_shop(playerid, "");
  247. if(pInfo[playerid][pDiamonds] < 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  248. pInfo[playerid][aVar][15] = 25, pInfo[playerid][aVar][51] = 1, format(pInfo[playerid][pT], 45, "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]), stdlg[playerid] = "Name\tStatus\tSpawn\tClass";
  249. for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
  250. format(stdlg[playerid], 800, "%s\n%s%s\t%s\t%s\t%s", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model]-400], Veh[playerid][i][vTax] == 0 ? ("") : (" ({BD0000}seized{FFFFFF})"), Veh[playerid][i][Lock] == 0 ? ("{00BA19}Unlocked") : ("{BD0000}Locked"), Veh[playerid][i][vSp] == 1 ? ("{BD0000}Despawned") : ("{00BA19}Spawned"), Veh[playerid][i][Class]);
  251. ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
  252. }
  253. case 25:
  254. {
  255. if(!response) return cmd_shop(playerid, "");
  256. pInfo[playerid][aVar][88] = 0;
  257. for(new i = 0; i < 15; ++i)
  258. {
  259. if(Veh[playerid][i][Owner] == pInfo[playerid][pID] && pInfo[playerid][aVar][88] == listitem)
  260. {
  261. if(Veh[playerid][i][vSp] == 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "Acest vehicul este despawnat."), ShowPlayerDialog(playerid, DIALOG_CUSTO, DIALOG_STYLE_LIST, "Vehicle Customization", "Spoiler - {4EE2EC}40 Diamante\nHood - {4EE2EC}40 Diamante\nSwitch Wheels - {4EE2EC}40 Diamante\nDollar Wheels - {4EE2EC}40 Diamante\nCutter Wheels - {4EE2EC}40 Diamante\nTattoos - {4EE2EC}40 Diamante", "Select", "Back");
  262. if(IsAPlane(Veh[playerid][i][ServerID]) || IsABoat(Veh[playerid][i][ServerID]) || IsACarLic0(Veh[playerid][i][ServerID]) || Veh[playerid][i][Model] == 461 || Veh[playerid][i][Model] == 522 || Veh[playerid][i][Model] == 463 || Veh[playerid][i][Model] == 468 || Veh[playerid][i][Model] == 521
  263. || Veh[playerid][i][Model] == 581 || Veh[playerid][i][Model] == 586) return
  264. SendClientMessage(playerid, COLOR_DARKGRAY, "Poti cumpara un model de jante numai pentru masini."), ShowPlayerDialog(playerid, DIALOG_CUSTO, DIALOG_STYLE_LIST, "Vehicle Customization", "Spoiler - {4EE2EC}40 Diamante\nHood - {4EE2EC}40 Diamante\nSwitch Wheels - {4EE2EC}40 Diamante\nDollar Wheels - {4EE2EC}40 Diamante\nCutter Wheels - {4EE2EC}40 Diamante\nTattoos - {4EE2EC}40 Diamante", "Select", "Back");
  265. switch(pInfo[playerid][aVar][51])
  266. {
  267. case 1: return pInfo[playerid][pDiamonds] -= 40, AddVehicleComponent(Veh[playerid][i][ServerID], 1080), Veh[playerid][i][Mod][7] = GetVehicleComponentInSlot(Veh[playerid][i][ServerID], 7), orm_update(Veh[playerid][i][ORM_ID]), SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai cumparat jantele switch pentru vehiculul tau."), 1;
  268. case 2: return pInfo[playerid][pDiamonds] -= 40, AddVehicleComponent(Veh[playerid][i][ServerID], 1083), Veh[playerid][i][Mod][7] = GetVehicleComponentInSlot(Veh[playerid][i][ServerID], 7), orm_update(Veh[playerid][i][ORM_ID]), SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai cumparat jantele dollar pentru vehiculul tau."), 1;
  269. case 3: return pInfo[playerid][pDiamonds] -= 40, AddVehicleComponent(Veh[playerid][i][ServerID], 1079), Veh[playerid][i][Mod][7] = GetVehicleComponentInSlot(Veh[playerid][i][ServerID], 7), orm_update(Veh[playerid][i][ORM_ID]), SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai cumparat jantele cutter pentru vehiculul tau."), 1;
  270. default: return SendClientMessage(playerid, -1, "ERROR."), 1;
  271. }
  272. }
  273. pInfo[playerid][aVar][88]++;
  274. }
  275. }
  276. case 26:
  277. {
  278. if(!response) return cmd_shop(playerid, "");
  279. if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  280. pInfo[playerid][aVar][15] = 25, pInfo[playerid][aVar][51] = 2, format(pInfo[playerid][pT], 45, "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]), stdlg[playerid] = "Name\tStatus\tSpawn\tClass";
  281. for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
  282. format(stdlg[playerid], 800, "%s\n%s%s\t%s\t%s\t%s", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model]-400], Veh[playerid][i][vTax] == 0 ? ("") : (" ({BD0000}seized{FFFFFF})"), Veh[playerid][i][Lock] == 0 ? ("{00BA19}Unlocked") : ("{BD0000}Locked"), Veh[playerid][i][vSp] == 1 ? ("{BD0000}Despawned") : ("{00BA19}Spawned"), Veh[playerid][i][Class]);
  283. ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
  284. }
  285. case 27:
  286. {
  287. if(!response) return cmd_shop(playerid, "");
  288. if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  289. pInfo[playerid][aVar][15] = 25, pInfo[playerid][aVar][51] = 3, format(pInfo[playerid][pT], 45, "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]), stdlg[playerid] = "Name\tStatus\tSpawn\tClass";
  290. for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
  291. format(stdlg[playerid], 800, "%s\n%s%s\t%s\t%s\t%s", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model]-400], Veh[playerid][i][vTax] == 0 ? ("") : (" ({BD0000}seized{FFFFFF})"), Veh[playerid][i][Lock] == 0 ? ("{00BA19}Unlocked") : ("{BD0000}Locked"), Veh[playerid][i][vSp] == 1 ? ("{BD0000}Despawned") : ("{00BA19}Spawned"), Veh[playerid][i][Class]);
  292. ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
  293. }
  294. case 28: { if(!response) return cmd_shop(playerid, "");
  295. if(pInfo[playerid][pDiamonds] < 8) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  296. ShowPlayerDialog(playerid, DIALOG_CHANGEAGE, DIALOG_STYLE_INPUT, "{FFFB80}Schimba Varsta", "{DEDEDE}Cati ani ai? (7-70)", "Change", "Back"); }
  297. case 29:
  298. {
  299. if(!response) return cmd_shop(playerid, "");
  300. if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  301. format(pInfo[playerid][pT], 45, "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]), stdlg[playerid] = "Name\tStatus\tSpawn\tCompatible";
  302. for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
  303. format(stdlg[playerid], 1100, "%s\n%s%s\t%s\t%s\t%s", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model]-400], Veh[playerid][i][vTax] == 0 ? ("") : (" ({BD0000}seized{FFFFFF})"), Veh[playerid][i][Lock] == 0 ? ("{00BA19}Unlocked") : ("{BD0000}Locked"), Veh[playerid][i][vSp] == 1 ? ("{BD0000}Despawned") : ("{00BA19}Spawned"), !IsTattoos(Veh[playerid][i][ServerID]) ? ("{C90000}No") : ("{00BA19}Yes"));
  304. ShowPlayerDialog(playerid, DIALOG_ATTV, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
  305. }
  306. case 30:
  307. {
  308. if(!response) return cmd_shop(playerid, "");
  309. if(pInfo[playerid][pVIP] == 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a V.I.P Account.");
  310. if(pInfo[playerid][pDiamonds] < 250) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  311. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat Cont V.I.P din shopul BF."), pInfo[playerid][pVIP] = 1, pInfo[playerid][pDiamonds] -= 250, Iter_Add(Vips, playerid);
  312. pInfo[playerid][pTVIP] = Create3DTextLabel("V.I.P Player", 0xF0375FFF, 30.0, 40.0, 50.0, 26.0, -1, 1), Attach3DTextLabelToPlayer(pInfo[playerid][pTVIP], playerid, 0.0, 0.0, 0.35);
  313. mysql_format(MySQLCon, quMYSQL, 200, "UPDATE `players` SET `VIP`=1 WHERE `ID`=%d", pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
  314. }
  315. case 31:
  316. {
  317. if(!response) return cmd_shop(playerid, "");
  318. if(pInfo[playerid][pHouse] == -1 || (strcmp(Houses[pInfo[playerid][pHouse]][Owner], pInfo[playerid][pUser], false))) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't own a house.");
  319. if(pInfo[playerid][pDiamonds] < 100) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
  320. pInfo[playerid][aVar][15] = 32, ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_LIST, "Change House Interior", "Luxury #1 (Medium)\nLuxury #2 (Very Large)\nLuxury #3 (Medium)\nLuxury #4 (Very Large)\nLuxury #5 (Large)\nLuxury #6 (Medium)\nLuxury #7 (Large)\nLuxury #8 (Large)\nLuxury #9 (Large)", "Select", "Cancel");
  321. }
  322. case 32:
  323. {
  324. if(!response) return cmd_shop(playerid, "");
  325. switch(listitem)
  326. {
  327. case 0:
  328. {
  329. foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
  330. {
  331. pInfo[x][pInterior] = 10, pInfo[x][pPos_x] = 2269.1169, pInfo[x][pPos_y] = -1210.4291, pInfo[x][pPos_z] = 1047.5625;
  332. switch(pInfo[x][pMember])
  333. {
  334. case 0: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 0.0, -1, -1, -1, -1, -1, -1);
  335. case 1: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, 3, 1, -1, -1);
  336. case 2: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, -1, -1, -1, -1);
  337. case 3: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 24, 1000, -1, -1, -1, -1);
  338. case 4: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 42, 99999, -1, -1, -1, -1);
  339. case 5: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, -1, -1, -1, -1, -1, -1);
  340. case 6: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 43, 99999, -1, -1, -1, -1);
  341. case 7: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, -1, -1, -1, -1);
  342. case 8: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 4, 1, 1, 1, -1, -1);
  343. case 9: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  344. case 10: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  345. case 11: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, -1, -1, 1, 1, -1, -1);
  346. case 12: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  347. case 13: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, -1, -1, -1, -1);
  348. case 14: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, 8, 1, 1, 1, -1, -1);
  349. case 15: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, 1, 1, -1, -1);
  350. default: return 1;
  351. }
  352. }
  353. Houses[pInfo[playerid][pHouse]][Interior] = 10, Houses[pInfo[playerid][pHouse]][IntX] = 2269.1169,
  354. Houses[pInfo[playerid][pHouse]][IntY] = -1210.4291, Houses[pInfo[playerid][pHouse]][IntZ] = 1047.5625, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
  355. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
  356. }
  357. case 1:
  358. {
  359. foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
  360. {
  361. pInfo[x][pInterior] = 6, pInfo[x][pPos_x] = 234.1240, pInfo[x][pPos_y] = 1065.1899, pInfo[x][pPos_z] = 1084.2101;
  362. switch(pInfo[x][pMember])
  363. {
  364. case 0: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 0.0, -1, -1, -1, -1, -1, -1);
  365. case 1: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, 3, 1, -1, -1);
  366. case 2: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, -1, -1, -1, -1);
  367. case 3: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 24, 1000, -1, -1, -1, -1);
  368. case 4: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 42, 99999, -1, -1, -1, -1);
  369. case 5: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, -1, -1, -1, -1, -1, -1);
  370. case 6: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 43, 99999, -1, -1, -1, -1);
  371. case 7: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, -1, -1, -1, -1);
  372. case 8: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 4, 1, 1, 1, -1, -1);
  373. case 9: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  374. case 10: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  375. case 11: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, -1, -1, 1, 1, -1, -1);
  376. case 12: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  377. case 13: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, -1, -1, -1, -1);
  378. case 14: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, 8, 1, 1, 1, -1, -1);
  379. case 15: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, 1, 1, -1, -1);
  380. default: return 1;
  381. }
  382. }
  383. Houses[pInfo[playerid][pHouse]][Interior] = 6, Houses[pInfo[playerid][pHouse]][IntX] = 234.1240,
  384. Houses[pInfo[playerid][pHouse]][IntY] = 1065.1899, Houses[pInfo[playerid][pHouse]][IntZ] = 1084.2101, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
  385. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
  386. }
  387. case 2:
  388. {
  389. foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
  390. {
  391. pInfo[x][pInterior] = 15, pInfo[x][pPos_x] = 295.0963, pInfo[x][pPos_y] = 1473.6650, pInfo[x][pPos_z] = 1080.2578;
  392. switch(pInfo[x][pMember])
  393. {
  394. case 0: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 0.0, -1, -1, -1, -1, -1, -1);
  395. case 1: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, 3, 1, -1, -1);
  396. case 2: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, -1, -1, -1, -1);
  397. case 3: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 24, 1000, -1, -1, -1, -1);
  398. case 4: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 42, 99999, -1, -1, -1, -1);
  399. case 5: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, -1, -1, -1, -1, -1, -1);
  400. case 6: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 43, 99999, -1, -1, -1, -1);
  401. case 7: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, -1, -1, -1, -1);
  402. case 8: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 4, 1, 1, 1, -1, -1);
  403. case 9: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  404. case 10: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  405. case 11: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, -1, -1, 1, 1, -1, -1);
  406. case 12: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  407. case 13: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, -1, -1, -1, -1);
  408. case 14: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, 8, 1, 1, 1, -1, -1);
  409. case 15: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, 1, 1, -1, -1);
  410. default: return 1;
  411. }
  412. }
  413. Houses[pInfo[playerid][pHouse]][Interior] = 15, Houses[pInfo[playerid][pHouse]][IntX] = 295.0963,
  414. Houses[pInfo[playerid][pHouse]][IntY] = 1473.6650, Houses[pInfo[playerid][pHouse]][IntZ] = 1080.2578, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
  415. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
  416. }
  417. case 3:
  418. {
  419. foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
  420. {
  421. pInfo[x][pInterior] = 7, pInfo[x][pPos_x] = 225.7140, pInfo[x][pPos_y] = 1022.8300, pInfo[x][pPos_z] = 1084.0137;
  422. switch(pInfo[x][pMember])
  423. {
  424. case 0: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 0.0, -1, -1, -1, -1, -1, -1);
  425. case 1: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, 3, 1, -1, -1);
  426. case 2: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, -1, -1, -1, -1);
  427. case 3: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 24, 1000, -1, -1, -1, -1);
  428. case 4: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 42, 99999, -1, -1, -1, -1);
  429. case 5: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, -1, -1, -1, -1, -1, -1);
  430. case 6: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 43, 99999, -1, -1, -1, -1);
  431. case 7: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, -1, -1, -1, -1);
  432. case 8: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 4, 1, 1, 1, -1, -1);
  433. case 9: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  434. case 10: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  435. case 11: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, -1, -1, 1, 1, -1, -1);
  436. case 12: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  437. case 13: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, -1, -1, -1, -1);
  438. case 14: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, 8, 1, 1, 1, -1, -1);
  439. case 15: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, 1, 1, -1, -1);
  440. default: return 1;
  441. }
  442. }
  443. Houses[pInfo[playerid][pHouse]][Interior] = 7, Houses[pInfo[playerid][pHouse]][IntX] = 225.7140,
  444. Houses[pInfo[playerid][pHouse]][IntY] = 1022.8300, Houses[pInfo[playerid][pHouse]][IntZ] = 1084.0137, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
  445. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
  446. }
  447. case 4:
  448. {
  449. foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
  450. {
  451. pInfo[x][pInterior] = 9, pInfo[x][pPos_x] = 2317.7698, pInfo[x][pPos_y] = -1025.8553, pInfo[x][pPos_z] = 1050.2178;
  452. switch(pInfo[x][pMember])
  453. {
  454. case 0: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 0.0, -1, -1, -1, -1, -1, -1);
  455. case 1: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, 3, 1, -1, -1);
  456. case 2: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, -1, -1, -1, -1);
  457. case 3: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 24, 1000, -1, -1, -1, -1);
  458. case 4: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 42, 99999, -1, -1, -1, -1);
  459. case 5: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, -1, -1, -1, -1, -1, -1);
  460. case 6: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 43, 99999, -1, -1, -1, -1);
  461. case 7: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, -1, -1, -1, -1);
  462. case 8: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 4, 1, 1, 1, -1, -1);
  463. case 9: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  464. case 10: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  465. case 11: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, -1, -1, 1, 1, -1, -1);
  466. case 12: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  467. case 13: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, -1, -1, -1, -1);
  468. case 14: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, 8, 1, 1, 1, -1, -1);
  469. case 15: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, 1, 1, -1, -1);
  470. default: return 1;
  471. }
  472. }
  473. Houses[pInfo[playerid][pHouse]][Interior] = 9, Houses[pInfo[playerid][pHouse]][IntX] = 2317.7698,
  474. Houses[pInfo[playerid][pHouse]][IntY] = -1025.8553, Houses[pInfo[playerid][pHouse]][IntZ] = 1050.2178, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
  475. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
  476. }
  477. case 5:
  478. {
  479. foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
  480. {
  481. pInfo[x][pInterior] = 10, pInfo[x][pPos_x] = 2269.0959, pInfo[x][pPos_y] = -1210.4634, pInfo[x][pPos_z] = 1047.5625;
  482. switch(pInfo[x][pMember])
  483. {
  484. case 0: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 0.0, -1, -1, -1, -1, -1, -1);
  485. case 1: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, 3, 1, -1, -1);
  486. case 2: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, -1, -1, -1, -1);
  487. case 3: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 24, 1000, -1, -1, -1, -1);
  488. case 4: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 42, 99999, -1, -1, -1, -1);
  489. case 5: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, -1, -1, -1, -1, -1, -1);
  490. case 6: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 43, 99999, -1, -1, -1, -1);
  491. case 7: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, -1, -1, -1, -1);
  492. case 8: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 4, 1, 1, 1, -1, -1);
  493. case 9: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  494. case 10: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  495. case 11: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, -1, -1, 1, 1, -1, -1);
  496. case 12: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  497. case 13: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, -1, -1, -1, -1);
  498. case 14: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, 8, 1, 1, 1, -1, -1);
  499. case 15: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, 1, 1, -1, -1);
  500. default: return 1;
  501. }
  502. }
  503. Houses[pInfo[playerid][pHouse]][Interior] = 10, Houses[pInfo[playerid][pHouse]][IntX] = 2269.0959,
  504. Houses[pInfo[playerid][pHouse]][IntY] = -1210.4634, Houses[pInfo[playerid][pHouse]][IntZ] = 1047.5625, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
  505. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
  506. }
  507. case 6:
  508. {
  509. foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
  510. {
  511. pInfo[x][pInterior] = 3, pInfo[x][pPos_x] = 235.2564, pInfo[x][pPos_y] = 1187.8613, pInfo[x][pPos_z] = 1080.2578;
  512. switch(pInfo[x][pMember])
  513. {
  514. case 0: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 0.0, -1, -1, -1, -1, -1, -1);
  515. case 1: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, 3, 1, -1, -1);
  516. case 2: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, -1, -1, -1, -1);
  517. case 3: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 24, 1000, -1, -1, -1, -1);
  518. case 4: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 42, 99999, -1, -1, -1, -1);
  519. case 5: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, -1, -1, -1, -1, -1, -1);
  520. case 6: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 43, 99999, -1, -1, -1, -1);
  521. case 7: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, -1, -1, -1, -1);
  522. case 8: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 4, 1, 1, 1, -1, -1);
  523. case 9: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  524. case 10: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  525. case 11: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, -1, -1, 1, 1, -1, -1);
  526. case 12: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  527. case 13: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, -1, -1, -1, -1);
  528. case 14: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, 8, 1, 1, 1, -1, -1);
  529. case 15: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, 1, 1, -1, -1);
  530. default: return 1;
  531. }
  532. }
  533. Houses[pInfo[playerid][pHouse]][Interior] = 3, Houses[pInfo[playerid][pHouse]][IntX] = 235.2564,
  534. Houses[pInfo[playerid][pHouse]][IntY] = 1187.8613, Houses[pInfo[playerid][pHouse]][IntZ] = 1080.2578, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
  535. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
  536. }
  537. case 7:
  538. {
  539. foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
  540. {
  541. pInfo[x][pInterior] = 5, pInfo[x][pPos_x] = 227.6111, pInfo[x][pPos_y] = 1114.3429, pInfo[x][pPos_z] = 1080.9996;
  542. switch(pInfo[x][pMember])
  543. {
  544. case 0: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 0.0, -1, -1, -1, -1, -1, -1);
  545. case 1: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, 3, 1, -1, -1);
  546. case 2: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, -1, -1, -1, -1);
  547. case 3: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 24, 1000, -1, -1, -1, -1);
  548. case 4: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 42, 99999, -1, -1, -1, -1);
  549. case 5: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, -1, -1, -1, -1, -1, -1);
  550. case 6: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 43, 99999, -1, -1, -1, -1);
  551. case 7: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, -1, -1, -1, -1);
  552. case 8: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 4, 1, 1, 1, -1, -1);
  553. case 9: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  554. case 10: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  555. case 11: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, -1, -1, 1, 1, -1, -1);
  556. case 12: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  557. case 13: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, -1, -1, -1, -1);
  558. case 14: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, 8, 1, 1, 1, -1, -1);
  559. case 15: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, 1, 1, -1, -1);
  560. default: return 1;
  561. }
  562. }
  563. Houses[pInfo[playerid][pHouse]][Interior] = 5, Houses[pInfo[playerid][pHouse]][IntX] = 227.6111,
  564. Houses[pInfo[playerid][pHouse]][IntY] = 1114.3429, Houses[pInfo[playerid][pHouse]][IntZ] = 1080.9996, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
  565. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
  566. }
  567. case 8:
  568. {
  569. foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
  570. {
  571. pInfo[x][pInterior] = 5, pInfo[x][pPos_x] = 140.2309, pInfo[x][pPos_y] = 1367.1320, pInfo[x][pPos_z] = 1083.8594;
  572. switch(pInfo[x][pMember])
  573. {
  574. case 0: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 0.0, -1, -1, -1, -1, -1, -1);
  575. case 1: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, 3, 1, -1, -1);
  576. case 2: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 24, 1000, -1, -1, -1, -1);
  577. case 3: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 24, 1000, -1, -1, -1, -1);
  578. case 4: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, 42, 99999, -1, -1, -1, -1);
  579. case 5: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, -1, -1, -1, -1, -1, -1);
  580. case 6: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 43, 99999, -1, -1, -1, -1);
  581. case 7: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, -1, -1, -1, -1);
  582. case 8: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 90.0, 4, 1, 1, 1, -1, -1);
  583. case 9: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  584. case 10: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  585. case 11: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 180.0, -1, -1, 1, 1, -1, -1);
  586. case 12: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, 1, 1, -1, -1);
  587. case 13: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, -1, -1, -1, -1, -1, -1);
  588. case 14: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 270.0, 8, 1, 1, 1, -1, -1);
  589. case 15: SetSpawnInfo(x, 0, pInfo[x][pStore][0], pInfo[x][pPos_x], pInfo[x][pPos_y], pInfo[x][pPos_z], 360.0, -1, -1, 1, 1, -1, -1);
  590. default: return 1;
  591. }
  592. }
  593. Houses[pInfo[playerid][pHouse]][Interior] = 5, Houses[pInfo[playerid][pHouse]][IntX] = 140.2309,
  594. Houses[pInfo[playerid][pHouse]][IntY] = 1367.1320, Houses[pInfo[playerid][pHouse]][IntZ] = 1083.8594, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
  595. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
  596. }
  597. }
  598. return 1;
  599. }
  600. case 33:
  601. {
  602. if(!response) return 1;
  603. if(listitem == 0)
  604. {
  605. mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `Staff`=0 WHERE `Admin` > 0"), mysql_tquery(MySQLCon, quMYSQL),
  606. SendClientMessage(playerid, COLOR_LIGHTRED, "* All admins statistics are reset.");
  607. foreach(new i : Stafff) if(pInfo[i][pAdmin] > 0) pInfo[i][pStaff] = 0;
  608. return 1;
  609. }
  610. mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `Staff`=0 WHERE `Helper` > 0"), mysql_tquery(MySQLCon, quMYSQL),
  611. SendClientMessage(playerid, COLOR_LIGHTRED, "* All helpers statistics are reset.");
  612. foreach(new i : Stafff) if(pInfo[i][pHelper] > 0) pInfo[i][pStaff] = 0;
  613. return 1;
  614. }
  615. }
  616. }
Add Comment
Please, Sign In to add comment