Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_P2:
- {
- switch(pInfo[playerid][aVar][15])
- {
- case 1:
- {
- if(!response) cmd_shop(playerid, "");
- return 1;
- }
- case 2:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- if(pInfo[playerid][pPremium] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Premium Account.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat Cont Premium valabil 14 zile din shopul BF.");
- pInfo[playerid][pPremium] = gtm+(14*86400), pInfo[playerid][pDiamonds] -= 100;
- }
- case 3:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 50) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- //if(pInfo[playerid][pFPunish] < 20) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have minimum 1 Faction Punish.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai scapat de Faction Punish.");
- pInfo[playerid][pFPunish] = 0, pInfo[playerid][pDiamonds] -= 50;
- }
- case 4:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 50) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_INPUT, "Change NickName", "Scrie mai jos noul tau NickName pe server.", "Change", "Back");
- pInfo[playerid][aVar][15] = 1;
- }
- case 5:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- if(pInfo[playerid][pWarns] < 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have minimum 1 Warn.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai scapat de 1 Warn.");
- pInfo[playerid][pWarns] -= 1, pInfo[playerid][pDiamonds] -= 40;
- }
- case 6:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 5) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_MSGBOX, "{00C0FF}Schimbare Sex", "Femeie ori Barbat?", "Barbat", "Femeie");
- pInfo[playerid][aVar][15] = 2;
- }
- case 7:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- if(pInfo[playerid][pTotVeh] == -1) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't own any vehicles.");
- stdlg[playerid] = "Name\tStatus\tKilometers", pInfo[playerid][aVar][15] = 3;
- for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
- 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]]);
- ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_TABLIST_HEADERS, "Reset Vehicle KM", stdlg[playerid], "Reset KM", "Back");
- }
- case 8:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 30) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- if(pInfo[playerid][pTotVeh] == -1) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't own any vehicles.");
- ShowPlayerDialog(playerid, DIALOG_HIDEE, DIALOG_STYLE_LIST, "Hidden Vehicle Color", "Hidden #1\nHidden #2", "Select", "Back");
- }
- case 9:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 150) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- if(pInfo[playerid][pCRank] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a clan. / You are part of a clan.");
- 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);
- ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_INPUT, "Clan Name", "Write your clan name.", "Next", "Back"), pInfo[playerid][aVar][15] = 7, pInfo[playerid][pDiamonds] -= 150;
- }
- case 10:
- {
- if(!response) return cmd_shop(playerid, "");
- SendClientMessage(playerid, COLOR_DARKGRAY, "Clanurile sunt dezactivate momentan.");
- if(pInfo[playerid][pDiamonds] < 200) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- if(pInfo[playerid][pCRank] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a clan. / You are part of a clan.");
- 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);
- ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_INPUT, "Clan Name", "Write your clan name.", "Next", "Back"), pInfo[playerid][aVar][15] = 9, pInfo[playerid][pDiamonds] -= 200;
- }
- case 11:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 100) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- if(pInfo[playerid][pCRank] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a clan. / You are part of a clan.");
- SendClientMessage(playerid, COLOR_DARKGRAY, "Clanurile sunt dezactivate momentan.");
- 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);
- ShowPlayerDialog(playerid, DIALOG_P3, DIALOG_STYLE_INPUT, "Clan Name", "Write your clan name.", "Next", "Back"), pInfo[playerid][aVar][15] = 11, pInfo[playerid][pDiamonds] -= 100;
- }
- case 14:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 150) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- GiveMoney(playerid, 15000000), pInfo[playerid][pDiamonds] -= 150, SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai cumparat 15.000.000$ din shop.");
- format(SpStr, sizeof(SpStr), "~g~+15.000.000$"), PlayerTextDrawSetString(playerid, ShowMoneyPlus[playerid], SpStr), PlayerTextDrawShow(playerid, ShowMoneyPlus[playerid]), SetTimerEx("HideMoneyTD", 4500, false, "i", playerid);
- }
- case 15:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- pInfo[playerid][pDiamonds] -= 10, pInfo[playerid][pSlotVeh]++, SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat un slot pentru vehicule personale.");
- mysql_format(MySQLCon, quMYSQL, 200, "UPDATE `players` SET `SlotVeh`=%d WHERE `ID`=%d", pInfo[playerid][pSlotVeh], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
- }
- case 16:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 30) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- ShowPlayerDialog(playerid, DIALOG_PNUMBER, DIALOG_STYLE_INPUT, "Ai cumparat Iphone", "Scire numarul tau personalizat (4cifre)", "Set", "Back");
- }
- case 17:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- pInfo[playerid][pDiamonds] -= 10, SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat 5 Respect Points.");
- pInfo[playerid][pRPoints] += 5;
- mysql_format(MySQLCon, quMYSQL, 200, "UPDATE `players` SET `RPoints`=%d WHERE `ID`=%d", pInfo[playerid][pRPoints], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
- }
- case 18:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 60) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat level up din shop.");
- 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]);
- if(pInfo[playerid][pScore] == 5)
- {
- 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]--;
- mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `TotVeh`=%d WHERE `ID`=%d", pInfo[playerid][pTotVeh], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
- orm_delete(Veh[playerid][0][ORM_ID]), memcpy(Veh[playerid][0], Veh[MAX_PLAYERS][14], 0, sizeof(Veh[][])*4, sizeof(Veh[][]));
- if(pInfo[playerid][pRef] != 0)
- {
- new Cache:r = mysql_query(MySQLCon, sprintf("SELECT user, Status FROM `players` WHERE `ID`=%d", pInfo[playerid][pRef]), true);
- if(cache_num_rows())
- {
- new name[MAX_PLAYER_NAME];
- 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)),
- 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]),
- 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;
- 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;
- }
- cache_delete(r);
- }
- }
- }
- case 19:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- 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";
- for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
- 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"));
- ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
- }
- case 20:
- {
- if(!response) return cmd_shop(playerid, "");
- pInfo[playerid][aVar][88] = 0;
- for(new i = 0; i < 15; ++i)
- {
- if(Veh[playerid][i][Owner] == pInfo[playerid][pID] && pInfo[playerid][aVar][88] == listitem)
- {
- 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");
- 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");
- pInfo[playerid][aVar][88] = i, ShowModelSelectionMenu(playerid, mSelect[6], "Select Spoiler"), pInfo[playerid][aSpam][5] = gtm+1;
- return 1;
- }
- pInfo[playerid][aVar][88]++;
- }
- }
- case 21:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- 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";
- for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
- 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"));
- ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
- }
- case 22:
- {
- if(!response) return cmd_shop(playerid, "");
- pInfo[playerid][aVar][88] = 0;
- for(new i = 0; i < 15; ++i)
- {
- if(Veh[playerid][i][Owner] == pInfo[playerid][pID] && pInfo[playerid][aVar][88] == listitem)
- {
- 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");
- 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");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, hood-ul a fost atasat pe vehiculul tau cu succes.");
- 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]]));
- switch(Veh[playerid][pInfo[playerid][aVar][88]][Model])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][88]][vOhd]);
- }
- return 1;
- }
- pInfo[playerid][aVar][88]++;
- }
- }
- case 23:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 200) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- if(pInfo[playerid][pPremium] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Premium Account.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ti-ai cumparat Cont Premium valabil 1 an din shopul BF.");
- pInfo[playerid][pPremium] = gtm+(360*86400), pInfo[playerid][pDiamonds] -= 200;
- }
- case 24:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- 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";
- for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
- 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]);
- ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
- }
- case 25:
- {
- if(!response) return cmd_shop(playerid, "");
- pInfo[playerid][aVar][88] = 0;
- for(new i = 0; i < 15; ++i)
- {
- if(Veh[playerid][i][Owner] == pInfo[playerid][pID] && pInfo[playerid][aVar][88] == listitem)
- {
- 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");
- 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
- || Veh[playerid][i][Model] == 581 || Veh[playerid][i][Model] == 586) return
- 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");
- switch(pInfo[playerid][aVar][51])
- {
- 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;
- 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;
- 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;
- default: return SendClientMessage(playerid, -1, "ERROR."), 1;
- }
- }
- pInfo[playerid][aVar][88]++;
- }
- }
- case 26:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- 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";
- for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
- 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]);
- ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
- }
- case 27:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- 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";
- for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
- 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]);
- ShowPlayerDialog(playerid, DIALOG_P2, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
- }
- case 28: { if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 8) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- ShowPlayerDialog(playerid, DIALOG_CHANGEAGE, DIALOG_STYLE_INPUT, "{FFFB80}Schimba Varsta", "{DEDEDE}Cati ani ai? (7-70)", "Change", "Back"); }
- case 29:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pDiamonds] < 40) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- format(pInfo[playerid][pT], 45, "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]), stdlg[playerid] = "Name\tStatus\tSpawn\tCompatible";
- for(new i = 0; i < 15; ++i) if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
- 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"));
- ShowPlayerDialog(playerid, DIALOG_ATTV, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
- }
- case 30:
- {
- if(!response) return cmd_shop(playerid, "");
- if(pInfo[playerid][pVIP] == 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a V.I.P Account.");
- if(pInfo[playerid][pDiamonds] < 250) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- 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);
- 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);
- mysql_format(MySQLCon, quMYSQL, 200, "UPDATE `players` SET `VIP`=1 WHERE `ID`=%d", pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
- }
- case 31:
- {
- if(!response) return cmd_shop(playerid, "");
- 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.");
- if(pInfo[playerid][pDiamonds] < 100) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamante.");
- 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");
- }
- case 32:
- {
- if(!response) return cmd_shop(playerid, "");
- switch(listitem)
- {
- case 0:
- {
- foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
- {
- pInfo[x][pInterior] = 10, pInfo[x][pPos_x] = 2269.1169, pInfo[x][pPos_y] = -1210.4291, pInfo[x][pPos_z] = 1047.5625;
- switch(pInfo[x][pMember])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: return 1;
- }
- }
- Houses[pInfo[playerid][pHouse]][Interior] = 10, Houses[pInfo[playerid][pHouse]][IntX] = 2269.1169,
- Houses[pInfo[playerid][pHouse]][IntY] = -1210.4291, Houses[pInfo[playerid][pHouse]][IntZ] = 1047.5625, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
- }
- case 1:
- {
- foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
- {
- pInfo[x][pInterior] = 6, pInfo[x][pPos_x] = 234.1240, pInfo[x][pPos_y] = 1065.1899, pInfo[x][pPos_z] = 1084.2101;
- switch(pInfo[x][pMember])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: return 1;
- }
- }
- Houses[pInfo[playerid][pHouse]][Interior] = 6, Houses[pInfo[playerid][pHouse]][IntX] = 234.1240,
- Houses[pInfo[playerid][pHouse]][IntY] = 1065.1899, Houses[pInfo[playerid][pHouse]][IntZ] = 1084.2101, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
- }
- case 2:
- {
- foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
- {
- pInfo[x][pInterior] = 15, pInfo[x][pPos_x] = 295.0963, pInfo[x][pPos_y] = 1473.6650, pInfo[x][pPos_z] = 1080.2578;
- switch(pInfo[x][pMember])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: return 1;
- }
- }
- Houses[pInfo[playerid][pHouse]][Interior] = 15, Houses[pInfo[playerid][pHouse]][IntX] = 295.0963,
- Houses[pInfo[playerid][pHouse]][IntY] = 1473.6650, Houses[pInfo[playerid][pHouse]][IntZ] = 1080.2578, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
- }
- case 3:
- {
- foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
- {
- pInfo[x][pInterior] = 7, pInfo[x][pPos_x] = 225.7140, pInfo[x][pPos_y] = 1022.8300, pInfo[x][pPos_z] = 1084.0137;
- switch(pInfo[x][pMember])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: return 1;
- }
- }
- Houses[pInfo[playerid][pHouse]][Interior] = 7, Houses[pInfo[playerid][pHouse]][IntX] = 225.7140,
- Houses[pInfo[playerid][pHouse]][IntY] = 1022.8300, Houses[pInfo[playerid][pHouse]][IntZ] = 1084.0137, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
- }
- case 4:
- {
- foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
- {
- pInfo[x][pInterior] = 9, pInfo[x][pPos_x] = 2317.7698, pInfo[x][pPos_y] = -1025.8553, pInfo[x][pPos_z] = 1050.2178;
- switch(pInfo[x][pMember])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: return 1;
- }
- }
- Houses[pInfo[playerid][pHouse]][Interior] = 9, Houses[pInfo[playerid][pHouse]][IntX] = 2317.7698,
- Houses[pInfo[playerid][pHouse]][IntY] = -1025.8553, Houses[pInfo[playerid][pHouse]][IntZ] = 1050.2178, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
- }
- case 5:
- {
- foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
- {
- pInfo[x][pInterior] = 10, pInfo[x][pPos_x] = 2269.0959, pInfo[x][pPos_y] = -1210.4634, pInfo[x][pPos_z] = 1047.5625;
- switch(pInfo[x][pMember])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: return 1;
- }
- }
- Houses[pInfo[playerid][pHouse]][Interior] = 10, Houses[pInfo[playerid][pHouse]][IntX] = 2269.0959,
- Houses[pInfo[playerid][pHouse]][IntY] = -1210.4634, Houses[pInfo[playerid][pHouse]][IntZ] = 1047.5625, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
- }
- case 6:
- {
- foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
- {
- pInfo[x][pInterior] = 3, pInfo[x][pPos_x] = 235.2564, pInfo[x][pPos_y] = 1187.8613, pInfo[x][pPos_z] = 1080.2578;
- switch(pInfo[x][pMember])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: return 1;
- }
- }
- Houses[pInfo[playerid][pHouse]][Interior] = 3, Houses[pInfo[playerid][pHouse]][IntX] = 235.2564,
- Houses[pInfo[playerid][pHouse]][IntY] = 1187.8613, Houses[pInfo[playerid][pHouse]][IntZ] = 1080.2578, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
- }
- case 7:
- {
- foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
- {
- pInfo[x][pInterior] = 5, pInfo[x][pPos_x] = 227.6111, pInfo[x][pPos_y] = 1114.3429, pInfo[x][pPos_z] = 1080.9996;
- switch(pInfo[x][pMember])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: return 1;
- }
- }
- Houses[pInfo[playerid][pHouse]][Interior] = 5, Houses[pInfo[playerid][pHouse]][IntX] = 227.6111,
- Houses[pInfo[playerid][pHouse]][IntY] = 1114.3429, Houses[pInfo[playerid][pHouse]][IntZ] = 1080.9996, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
- }
- case 8:
- {
- foreach(new x : Player) if(pInfo[x][pHouse] == pInfo[playerid][pHouse] && pInfo[playerid][pPos_x] == Houses[pInfo[playerid][pHouse]][IntX])
- {
- pInfo[x][pInterior] = 5, pInfo[x][pPos_x] = 140.2309, pInfo[x][pPos_y] = 1367.1320, pInfo[x][pPos_z] = 1083.8594;
- switch(pInfo[x][pMember])
- {
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- default: return 1;
- }
- }
- Houses[pInfo[playerid][pHouse]][Interior] = 5, Houses[pInfo[playerid][pHouse]][IntX] = 140.2309,
- Houses[pInfo[playerid][pHouse]][IntY] = 1367.1320, Houses[pInfo[playerid][pHouse]][IntZ] = 1083.8594, orm_update(Houses[pInfo[playerid][pHouse]][ORM_ID]);
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, interiorul casei tale a fost schimbat cu succes. Casa ta arata mult mai bine acum."), pInfo[playerid][pDiamonds] -= 100;
- }
- }
- return 1;
- }
- case 33:
- {
- if(!response) return 1;
- if(listitem == 0)
- {
- mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `Staff`=0 WHERE `Admin` > 0"), mysql_tquery(MySQLCon, quMYSQL),
- SendClientMessage(playerid, COLOR_LIGHTRED, "* All admins statistics are reset.");
- foreach(new i : Stafff) if(pInfo[i][pAdmin] > 0) pInfo[i][pStaff] = 0;
- return 1;
- }
- mysql_format(MySQLCon, quMYSQL, 100, "UPDATE `players` SET `Staff`=0 WHERE `Helper` > 0"), mysql_tquery(MySQLCon, quMYSQL),
- SendClientMessage(playerid, COLOR_LIGHTRED, "* All helpers statistics are reset.");
- foreach(new i : Stafff) if(pInfo[i][pHelper] > 0) pInfo[i][pStaff] = 0;
- return 1;
- }
- }
- }
Add Comment
Please, Sign In to add comment