Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_V:
- {
- if(response)
- {
- pInfo[playerid][aVar][88] = 0;
- for(new i = 0; i < 14; ++i)
- if(Veh[playerid][i][Owner] == pInfo[playerid][pID])
- {
- //if(pInfo[playerid][aVar][88] == listitem && Veh[playerid][i][vTax] != 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "Vehicle is seized, pay vehicle tax to it access. (/deposit)");
- if(pInfo[playerid][aVar][88] == listitem) return pInfo[playerid][aVar][9] = i, format(stdlg[playerid], 19, "Your %s", g_VehicleNames[Veh[playerid][i][Model]-400]),
- ShowPlayerDialog(playerid, DIALOG_V2, DIALOG_STYLE_LIST, stdlg[playerid], Veh[playerid][i][vSp] == 1 ? ("Spawn Vehicle") : ("Information\nLocate Vehicle\nRespawn Vehicle\nSave Tuning\nRemove Tuning\nChange Plate Number\nPark Vehicle\nSell Vehicle To State\nSell Vehicle To Player\nUnstuck Vehicle\nBuy Insurance\nDespawn"), "Select", "Back"), 1;
- pInfo[playerid][aVar][88]++;
- }
- }
- }
- case DIALOG_V2:
- {
- if(response)
- {
- GetVehicleParamsEx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vParams[0], vParams[1], vParams[2], vParams[3], vParams[4], vParams[5], vParams[6]);
- switch(listitem)
- {
- case 0:
- {
- if(Veh[playerid][pInfo[playerid][aVar][9]][vSp] == 1)
- {
- GameTextForPlayer(playerid, "~n~~w~vehicle was spawned", 3000, 3);
- Veh[playerid][pInfo[playerid][aVar][9]][ServerID] = CreateVehicle(Veh[playerid][pInfo[playerid][aVar][9]][Model], Veh[playerid][pInfo[playerid][aVar][9]][PosX], Veh[playerid][pInfo[playerid][aVar][9]][PosY], Veh[playerid][pInfo[playerid][aVar][9]][PosZ], Veh[playerid][pInfo[playerid][aVar][9]][VAngle], Veh[playerid][pInfo[playerid][aVar][9]][Color1], Veh[playerid][pInfo[playerid][aVar][9]][Color2], -1), vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = playerid,
- KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = Veh[playerid][pInfo[playerid][aVar][9]][KM], SetVehicleParamsExx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], IsABike(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]) ? (1) : (0), 0, 0, Veh[playerid][pInfo[playerid][aVar][9]][Lock] == 1 ? (1) : (0), 0, 0, 0), SetVehicleNumberPlate(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Plate]);
- vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = Veh[playerid][pInfo[playerid][aVar][9]][Insurance], vVar[3][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = Veh[playerid][pInfo[playerid][aVar][9]][vFuel], format(OwnName[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], MAX_PLAYER_NAME, "%s", pInfo[playerid][pUser]), Veh[playerid][pInfo[playerid][aVar][9]][vSp] = 0;
- ChangeVehiclePaintjob(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Paintjob]), UpdateVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Damage][0], Veh[playerid][pInfo[playerid][aVar][9]][Damage][1], Veh[playerid][pInfo[playerid][aVar][9]][Damage][2], Veh[playerid][pInfo[playerid][aVar][9]][Damage][3]), vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 1;
- for(new x = 0; x < 14; x++)
- AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][x]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][vTOn] != 0)
- {
- Veh[playerid][pInfo[playerid][aVar][9]][vTt1] = CreateDynamicObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), Veh[playerid][pInfo[playerid][aVar][9]][vTt2] = CreateDynamicObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- SetDynamicObjectMaterialText(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], 0, Veh[playerid][pInfo[playerid][aVar][9]][Tt], OBJECT_MATERIAL_SIZE_512x256, "GTAWEAPON3", 100, 0, 0xFF000000, 0, 1),
- SetDynamicObjectMaterialText(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], 0, Veh[playerid][pInfo[playerid][aVar][9]][Tt], OBJECT_MATERIAL_SIZE_512x256, "GTAWEAPON3", 100, 0, 0xFF000000, 0, 1);
- switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
- {
- case 411: {
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.11, 0.06, -0.1, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.11, 0.06, -0.1, 360.0, 360.0, 0.0);
- }
- case 541: {
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.00, -0.03, -0.1, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.00, -0.03, -0.1, 360.0, 360.0, 0.0);
- }
- case 559: {
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.083, 0.01, 0.05, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.083, 0.01, 0.05, 360.0, 360.0, 0.0);
- }
- case 451: {
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.99, 0.40, -0.2, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.99, 0.40, -0.2, 360.0, 360.0, 0.0);
- }
- case 565: {
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.94, 0.12, -0.0, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.94, 0.12, -0.0, 360.0, 360.0, 0.0);
- }
- case 560: {
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.06, 0.38, -0.0, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.06, 0.38, -0.0, 360.0, 360.0, 0.0);
- }
- case 562: {
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.018, 0.20, 0.04, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.018, 0.20, 0.04, 360.0, 360.0, 0.0);
- }
- case 487: {
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.57, -1.78, 0.43, 0.0, 0.0, -20.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.57, -1.78, 0.43, 360.0, 360.0, 20.0);
- }
- default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt1]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt2]);
- }
- }
- if(Veh[playerid][pInfo[playerid][aVar][9]][vSl] != 0)
- {
- Veh[playerid][pInfo[playerid][aVar][9]][vOsl] = CreateDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vSl], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
- {
- case 602: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.35490, 0.23560, 0.00000, 0.00000, 0.00000);
- case 429: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.23490, 0.26560, 0.00000, 0.00000, 0.00000);
- case 426: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.56490, 0.21560, 0.00000, 0.00000, 0.00000);
- case 402: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.53090, 0.23260, 0.00000, 0.00000, 0.00000);
- case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.00390, 0.28360, 0.00000, 0.00000, 0.00000);
- case 415: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.19090, 0.21560, 0.00000, 0.00000, 0.00000);
- case 587: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.36090, 0.26660, 0.00000, 0.00000, 0.00000);
- case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.44190, 0.31500, 0.00000, 0.00000, 0.00000);
- case 475: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.47990, 0.18160, 0.00000, 0.00000, 0.00000);
- case 480: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.20790, 0.10660, 0.00000, 0.00000, 0.00000);
- case 533: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.30990, 0.24260, 0.00000, 0.00000, 0.00000);
- case 555: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.22490, 0.05560, 0.00000, 0.00000, 0.00000);
- case 536: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.81190, 0.11560, 0.00000, 0.00000, 0.00000);
- case 575: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.45490, 0.30460, 0.00000, 0.00000, 0.00000);
- case 534: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.49690, 0.11560, 0.00000, 0.00000, 0.00000);
- case 567: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.64390, 0.05260, 0.00000, 0.00000, 0.00000);
- case 535: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.39190, 0.38860, 0.00000, 0.00000, 0.00000);
- case 566: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.72790, 0.22060, 0.00000, 0.00000, 0.00000);
- case 412: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -3.27390, 0.07360, 0.00000, 0.00000, 0.00000);
- case 579: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.34990, 1.10260, 0.00000, 0.00000, 0.00000);
- case 400: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -1.92990, 0.70360, 0.00000, 0.00000, 0.00000);
- case 500: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -1.44690, 0.82960, 0.00000, 0.00000, 0.00000);
- case 445: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.58090, 0.19960, 0.00000, 0.00000, 0.00000);
- case 518: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.53890, 0.07360, 0.00000, 0.00000, 0.00000);
- case 527: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.05590, 0.30460, 0.00000, 0.00000, 0.00000);
- case 542: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.66490, 0.26260, 0.00000, 0.00000, 0.00000);
- case 585: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.76990, 0.40960, 0.00000, 0.00000, 0.00000);
- case 492: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.60190, 0.26260, 0.00000, 0.00000, 0.00000);
- case 474: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.49690, 0.22060, 0.00000, 0.00000, 0.00000);
- case 517: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.39190, 0.19960, 0.00000, 0.00000, 0.00000);
- case 405: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.43390, 0.19960, 0.00000, 0.00000, 0.00000);
- case 494: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.70690, 0.22060, 0.00000, 0.00000, 0.00000);
- case 502: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.51790, 0.21060, 0.00000, 0.00000, 0.00000);
- case 503: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.66490, 0.21060, 0.00000, 0.00000, 0.00000);
- default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOsl]);
- }
- }
- if(Veh[playerid][pInfo[playerid][aVar][9]][vHd] != 0)
- {
- Veh[playerid][pInfo[playerid][aVar][9]][vOhd] = CreateDynamicObject(1005, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), SetDynamicObjectMaterial(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], 0, -1, "none", "none", RGBAToARGB(VehCRGBA[Veh[playerid][pInfo[playerid][aVar][9]][Color1]]));
- switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
- {
- case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.97660, 0.08170, 0.00000, 0.00000, 0.00000);
- case 429: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 0.87160, 0.24970, 0.00000, 0.00000, 0.00000);
- case 415: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.56460, 0.10270, 0.00000, 0.00000, 0.00000);
- case 475: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
- case 477: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
- case 558: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.27070, 0.00000, 0.00000, 0.00000);
- case 402: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.62760, 0.27070, 0.00000, 0.00000, 0.00000);
- case 480: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.31260, 0.20770, 0.00000, 0.00000, 0.00000);
- case 533: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.24970, 0.00000, 0.00000, 0.00000);
- case 482: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 2.06860, 0.16570, 0.00000, 0.00000, 0.00000);
- case 536: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.14470, 0.00000, 0.00000, 0.00000);
- case 535: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.83760, 0.33370, 0.00000, 0.00000, 0.00000);
- case 567: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 2.13160, 0.08170, 0.00000, 0.00000, 0.00000);
- case 579: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.43870, 0.00000, 0.00000, 0.00000);
- case 506: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01170, 1.41760, 0.12370, 0.00000, 0.00000, 0.00000);
- case 494: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.45960, 0.18670, 0.00000, 0.00000, 0.00000);
- case 502: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
- case 503: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.77460, 0.16570, 0.00000, 0.00000, 0.00000);
- case 556: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.81660, 1.02670, 0.00000, 0.00000, 0.00000);
- case 557: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.81660, 1.00570, 0.00000, 0.00000, 0.00000);
- case 444: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.98460, 1.02670, 0.00000, 0.00000, 0.00000);
- case 562: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.24970, 0.00000, 0.00000, 0.00000);
- case 400: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
- case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.37560, 0.24970, 0.00000, 0.00000, 0.00000);
- case 542: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
- case 602: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.60660, 0.16570, 0.00000, 0.00000, 0.00000);
- case 445: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.76660, 0.20770, 0.00000, 0.00000, 0.00000);
- case 405: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.68260, 0.16570, 0.00000, 0.00000, 0.00000);
- case 492: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.72460, 0.31270, 0.00000, 0.00000, 0.00000);
- case 500: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.49360, 0.14470, 0.00000, 0.00000, 0.00000);
- case 412: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.17670, -1.00000, 0.00000, 0.00000);
- case 566: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
- case 559: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.72460, 0.18670, 0.00000, 0.00000, 0.00000);
- case 587: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.57760, 0.16570, 0.00000, 0.00000, 0.00000);
- default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOhd]);
- }
- }
- return 1;
- }
- new tmp[90], gunname[32], gunname2[32];
- format(tmp, sizeof(tmp), "Model: %s\nColor1: {%06x}%d {A9C4E4}| Color2: {%06x}%d{A9C4E4}\n", g_VehicleNames[Veh[playerid][pInfo[playerid][aVar][9]][Model]-400], (VehCRGBA[Veh[playerid][pInfo[playerid][aVar][9]][Color1]] >>> 8), Veh[playerid][pInfo[playerid][aVar][9]][Color1], (VehCRGBA[Veh[playerid][pInfo[playerid][aVar][9]][Color2]] >>> 8), Veh[playerid][pInfo[playerid][aVar][9]][Color2]);
- strcat(stdlg[playerid], tmp);
- format(tmp, sizeof(tmp), "Value: %s$\nPlate Number: %s\n", FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][Value]), Veh[playerid][pInfo[playerid][aVar][9]][Plate]);
- strcat(stdlg[playerid], tmp);
- format(tmp, sizeof(tmp), "Kilometers: %.0f\nInsurance: %d\nInsurance Price: %s$\nClass: %s", KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], FormatNumber(((KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]/1000) + 1) * 1000), Veh[playerid][pInfo[playerid][aVar][9]][Class]);
- strcat(stdlg[playerid], tmp);
- GetWeaponName(Veh[playerid][pInfo[playerid][aVar][9]][vWE][0], gunname, sizeof(gunname)), GetWeaponName(Veh[playerid][pInfo[playerid][aVar][9]][vWE][1], gunname2, sizeof(gunname2));
- format(tmp, sizeof(tmp), "\n\nMoney: %s$\nMaterials: %s\nDrugs: %s\nWeapon 1: %s, %s bullets\nWeapon 2: %s, %s bullets", FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vMoney]), FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vMats]), FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vDrugs]),
- Veh[playerid][pInfo[playerid][aVar][9]][vAM][0] == 0 ? ("No") : (gunname), FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vAM][0]), Veh[playerid][pInfo[playerid][aVar][9]][vAM][1] == 0 ? ("No") : (gunname2), FormatNumber(Veh[playerid][pInfo[playerid][aVar][9]][vAM][1]));
- strcat(stdlg[playerid], tmp);
- format(pInfo[playerid][pT], 36, "%s's Vehicle %d", GetName(playerid), Veh[playerid][pInfo[playerid][aVar][9]][ServerID]);
- ShowPlayerDialog(playerid, DIALOG_INFOVEH, DIALOG_STYLE_MSGBOX, pInfo[playerid][pT], stdlg[playerid], "OK", "Back");
- }
- case 1:
- {
- new Float:vP[3];
- GetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vP[0], vP[1], vP[2]);
- SetPlayerCheckpoint(playerid, vP[0], vP[1], vP[2], 4.0), CP[playerid] = 1;
- GameTextForPlayer(playerid, "~n~~w~set checkpoint to your vehicle", 4000, 3);
- }
- case 2:
- {
- if(IsVehicleOccupied(Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "Someone is in your vehicle.");
- GetVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vVar[7][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[8][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[9][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[10][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]),
- SetVehicleToRespawn(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]), GameTextForPlayer(playerid, "~n~~w~your vehicle was respawned", 4000, 3);
- }
- case 3:
- {
- if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
- new color[2];
- GetVehicleColor(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], color[0], color[1]);
- Veh[playerid][pInfo[playerid][aVar][9]][Color1] = color[0], Veh[playerid][pInfo[playerid][aVar][9]][Color2] = color[1];
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][0] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][1] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][2] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 2),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][3] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 3),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][4] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 4),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][5] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 5),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][6] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 6),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][7] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 7),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][8] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 8),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][9] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 9),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][10] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 10),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][11] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 11),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][12] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 12),
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][13] = GetVehicleComponentInSlot(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 13), Veh[playerid][pInfo[playerid][aVar][9]][Paintjob] = vVar[6][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]];
- if(Veh[playerid][pInfo[playerid][aVar][9]][vHd] != 0) SetDynamicObjectMaterial(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], 0, -1, "none", "none", RGBAToARGB(VehCRGBA[Veh[playerid][pInfo[playerid][aVar][9]][Color1]]));
- GameTextForPlayer(playerid, "~n~~w~tuning vehicle was saved", 4000, 3);
- }
- case 4:
- {
- if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][0]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][1]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][2]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][3]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][4]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][5]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][6]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][7]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][8]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][9]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][10]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][11]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][12]),
- RemoveVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][13]);
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][0] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][1] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][2] = 0,
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][3] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][4] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][5] = 0,
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][6] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][7] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][8] = 0,
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][9] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][10] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][11] = 0,
- Veh[playerid][pInfo[playerid][aVar][9]][Mod][12] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Mod][13] = 0, Veh[playerid][pInfo[playerid][aVar][9]][Paintjob] = 3, ChangeVehiclePaintjob(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 3), vVar[6][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 3;
- GameTextForPlayer(playerid, "~n~~w~tuning vehicle was removed", 4000, 3);
- }
- case 5:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 45.0, 369.2338,173.8134,1008.3893)) return SendClientMessage(playerid, COLOR_DARKGRAY, "You are not at the City Hall.");
- ShowPlayerDialog(playerid, DIALOG_PLATEVEH, DIALOG_STYLE_INPUT, "Change Vehicle Plate Number", "Introdu mai jos numarul de inamtriculare pe care il doresti la vehiculu tau.\nNumarul de inmatriculare va fi afisat dupa urmatorul respawn al vehiculului tau!", "Change", "Back");
- }
- case 6:
- {
- if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
- if(IsPlayerInRangeOfPoint(playerid, 80.0, 1793.5046,-1895.8068,13.3992)) return SendClientMessage(playerid, COLOR_DARKGRAY, "You can not park a vehicle in spawn civil.");
- new Float:x, Float:y, Float:z, Float:z_rot, oins, Float:km, gass;
- GetVehicleHealth(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], x);
- if(x < 300) return SendClientMessage(playerid, COLOR_DARKGRAY, "You can not park a vehicle with less than 300 HP.");
- pInfo[playerid][aVar][88] = GetPlayerVehicleSeat(playerid), GetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], x, y, z), GetVehicleZAngle(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], z_rot), GetVehicleParamsEx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vParams[0], vParams[1], vParams[2], vParams[3], vParams[4], vParams[5], vParams[6]);
- Veh[playerid][pInfo[playerid][aVar][9]][PosX] = x, Veh[playerid][pInfo[playerid][aVar][9]][PosY] = y, Veh[playerid][pInfo[playerid][aVar][9]][PosZ] = z, Veh[playerid][pInfo[playerid][aVar][9]][VAngle] = z_rot;
- GetVehicleParamsEx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vParams[0], vParams[1], vParams[2], vParams[3], vParams[4], vParams[5], vParams[6]), oins = vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]];
- GetVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vVar[7][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[8][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[9][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[10][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]);
- km = KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 0, gass = vVar[3][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], DestroyVehicle(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]), vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = INVALID_PLAYER_ID,
- Veh[playerid][pInfo[playerid][aVar][9]][ServerID] = CreateVehicle(Veh[playerid][pInfo[playerid][aVar][9]][Model], Veh[playerid][pInfo[playerid][aVar][9]][PosX], Veh[playerid][pInfo[playerid][aVar][9]][PosY], Veh[playerid][pInfo[playerid][aVar][9]][PosZ], Veh[playerid][pInfo[playerid][aVar][9]][VAngle], Veh[playerid][pInfo[playerid][aVar][9]][Color1], Veh[playerid][pInfo[playerid][aVar][9]][Color2], -1);
- vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = playerid, vVar[3][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = gass, KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = km;
- SetVehicleParamsExx(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], IsABike(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]) ? (1) : (0), 0, 0, vParams[3], 0, 0, 0), SetVehicleNumberPlate(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Plate]);
- vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = oins, GameTextForPlayer(playerid, "~n~~w~Your vehicle was parked here", 4000, 3);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][0] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][0]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][1] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][1]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][2] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][2]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][3] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][3]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][4] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][4]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][5] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][5]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][6] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][6]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][7] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][7]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][8] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][8]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][9] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][9]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][10] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][10]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][11] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][11]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][12] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][12]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][Mod][13] != 0) AddVehicleComponent(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Mod][13]);
- ChangeVehiclePaintjob(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Paintjob]), UpdateVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vVar[7][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[8][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[9][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], vVar[10][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]),
- PutPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID], pInfo[playerid][aVar][88]);
- vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 1, format(OwnName[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], MAX_PLAYER_NAME, "%s", pInfo[playerid][pUser]);
- if(Veh[playerid][pInfo[playerid][aVar][9]][vTOn] != 0)
- {
- switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
- {
- case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.11, 0.06, -0.1, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.11, 0.06, -0.1, 360.0, 360.0, 0.0);
- case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.00, -0.03, -0.1, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.00, -0.03, -0.1, 360.0, 360.0, 0.0);
- case 559: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.083, 0.01, 0.05, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.083, 0.01, 0.05, 360.0, 360.0, 0.0);
- case 451: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.99, 0.40, -0.2, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.99, 0.40, -0.2, 360.0, 360.0, 0.0);
- case 565: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.94, 0.12, -0.0, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.94, 0.12, -0.0, 360.0, 360.0, 0.0);
- case 560: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.06, 0.38, -0.0, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.06, 0.38, -0.0, 360.0, 360.0, 0.0);
- case 562: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 1.018, 0.20, 0.04, 0.0, 0.0, 0.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -1.018, 0.20, 0.04, 360.0, 360.0, 0.0);
- case 487: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt1], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], 0.57, -1.78, 0.43, 0.0, 0.0, -20.0),
- AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vTt2], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.57, -1.78, 0.43, 360.0, 360.0, 20.0);
- default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt1]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt2]);
- }
- }
- if(Veh[playerid][pInfo[playerid][aVar][9]][vSl] != 0)
- {
- switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
- {
- case 602: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.35490, 0.23560, 0.00000, 0.00000, 0.00000);
- case 429: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.23490, 0.26560, 0.00000, 0.00000, 0.00000);
- case 426: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.56490, 0.21560, 0.00000, 0.00000, 0.00000);
- case 402: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.53090, 0.23260, 0.00000, 0.00000, 0.00000);
- case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.00390, 0.28360, 0.00000, 0.00000, 0.00000);
- case 415: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.19090, 0.21560, 0.00000, 0.00000, 0.00000);
- case 587: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.36090, 0.26660, 0.00000, 0.00000, 0.00000);
- case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.44190, 0.31500, 0.00000, 0.00000, 0.00000);
- case 475: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.47990, 0.18160, 0.00000, 0.00000, 0.00000);
- case 480: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.20790, 0.10660, 0.00000, 0.00000, 0.00000);
- case 533: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.30990, 0.24260, 0.00000, 0.00000, 0.00000);
- case 555: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.22490, 0.05560, 0.00000, 0.00000, 0.00000);
- case 536: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.81190, 0.11560, 0.00000, 0.00000, 0.00000);
- case 575: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.45490, 0.30460, 0.00000, 0.00000, 0.00000);
- case 534: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.49690, 0.11560, 0.00000, 0.00000, 0.00000);
- case 567: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.64390, 0.05260, 0.00000, 0.00000, 0.00000);
- case 535: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.39190, 0.38860, 0.00000, 0.00000, 0.00000);
- case 566: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.72790, 0.22060, 0.00000, 0.00000, 0.00000);
- case 412: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -3.27390, 0.07360, 0.00000, 0.00000, 0.00000);
- case 579: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.34990, 1.10260, 0.00000, 0.00000, 0.00000);
- case 400: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -1.92990, 0.70360, 0.00000, 0.00000, 0.00000);
- case 500: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -1.44690, 0.82960, 0.00000, 0.00000, 0.00000);
- case 445: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.58090, 0.19960, 0.00000, 0.00000, 0.00000);
- case 518: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.53890, 0.07360, 0.00000, 0.00000, 0.00000);
- case 527: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.05590, 0.30460, 0.00000, 0.00000, 0.00000);
- case 542: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.66490, 0.26260, 0.00000, 0.00000, 0.00000);
- case 585: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.76990, 0.40960, 0.00000, 0.00000, 0.00000);
- case 492: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.60190, 0.26260, 0.00000, 0.00000, 0.00000);
- case 474: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.49690, 0.22060, 0.00000, 0.00000, 0.00000);
- case 517: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.39190, 0.19960, 0.00000, 0.00000, 0.00000);
- case 405: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.43390, 0.19960, 0.00000, 0.00000, 0.00000);
- case 494: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.70690, 0.22060, 0.00000, 0.00000, 0.00000);
- case 502: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.51790, 0.21060, 0.00000, 0.00000, 0.00000);
- case 503: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOsl], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01370, -2.66490, 0.21060, 0.00000, 0.00000, 0.00000);
- default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOsl]);
- }
- }
- if(Veh[playerid][pInfo[playerid][aVar][9]][vHd] != 0)
- {
- switch(Veh[playerid][pInfo[playerid][aVar][9]][Model])
- {
- case 411: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.97660, 0.08170, 0.00000, 0.00000, 0.00000);
- case 429: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 0.87160, 0.24970, 0.00000, 0.00000, 0.00000);
- case 415: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.56460, 0.10270, 0.00000, 0.00000, 0.00000);
- case 475: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
- case 477: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.20770, 0.00000, 0.00000, 0.00000);
- case 558: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.58560, 0.27070, 0.00000, 0.00000, 0.00000);
- case 402: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.62760, 0.27070, 0.00000, 0.00000, 0.00000);
- case 480: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.31260, 0.20770, 0.00000, 0.00000, 0.00000);
- case 533: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.24970, 0.00000, 0.00000, 0.00000);
- case 482: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 2.06860, 0.16570, 0.00000, 0.00000, 0.00000);
- case 536: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.14470, 0.00000, 0.00000, 0.00000);
- case 535: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.83760, 0.33370, 0.00000, 0.00000, 0.00000);
- case 567: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 2.13160, 0.08170, 0.00000, 0.00000, 0.00000);
- case 579: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.69060, 0.43870, 0.00000, 0.00000, 0.00000);
- case 506: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01170, 1.41760, 0.12370, 0.00000, 0.00000, 0.00000);
- case 494: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.45960, 0.18670, 0.00000, 0.00000, 0.00000);
- case 502: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
- case 503: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.77460, 0.16570, 0.00000, 0.00000, 0.00000);
- case 556: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.81660, 1.02670, 0.00000, 0.00000, 0.00000);
- case 557: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.81660, 1.00570, 0.00000, 0.00000, 0.00000);
- case 444: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.98460, 1.02670, 0.00000, 0.00000, 0.00000);
- case 562: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.24970, 0.00000, 0.00000, 0.00000);
- case 400: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.56460, 0.18670, 0.00000, 0.00000, 0.00000);
- case 541: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.37560, 0.24970, 0.00000, 0.00000, 0.00000);
- case 542: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
- case 602: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.01000, 1.60660, 0.16570, 0.00000, 0.00000, 0.00000);
- case 445: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.76660, 0.20770, 0.00000, 0.00000, 0.00000);
- case 405: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.68260, 0.16570, 0.00000, 0.00000, 0.00000);
- case 492: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.72460, 0.31270, 0.00000, 0.00000, 0.00000);
- case 500: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.49360, 0.14470, 0.00000, 0.00000, 0.00000);
- case 412: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.17670, -1.00000, 0.00000, 0.00000);
- case 566: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.89260, 0.26070, -1.00000, 0.00000, 0.00000);
- case 559: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.72460, 0.18670, 0.00000, 0.00000, 0.00000);
- case 587: AttachDynamicObjectToVehicle(Veh[playerid][pInfo[playerid][aVar][9]][vOhd], Veh[playerid][pInfo[playerid][aVar][9]][ServerID], -0.00070, 1.57760, 0.16570, 0.00000, 0.00000, 0.00000);
- default: DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOhd]);
- }
- }
- }
- case 7:
- {
- if(!strcmp(Veh[playerid][pInfo[playerid][aVar][9]][Class], "Free", false)) return SendClientMessage(playerid, COLOR_DARKGRAY, "Nu poti vinde vehiculul gratis pe care l-ai primit.");
- if(!IsPlayerInRangeOfPoint(playerid, 30.0, 333.0342,-1517.8024,35.8672)) return SendClientMessage(playerid, COLOR_DARKGRAY, "You are not at the Dealership.");
- format(stdlg[playerid], 100, "Pretul vanzarii vehiculului tau este de %s$, esti sigur ca vrei sa-ti vinzi vehiculul?", FormatNumber(0.4*Veh[playerid][pInfo[playerid][aVar][9]][Value]));
- ShowPlayerDialog(playerid, DIALOG_SELLVEHICLE, DIALOG_STYLE_MSGBOX, "Sell Vehicle To State", stdlg[playerid], "Sell", "Back");
- }
- case 8: {
- if(!strcmp(Veh[playerid][pInfo[playerid][aVar][9]][Class], "Free", false)) return SendClientMessage(playerid, COLOR_DARKGRAY, "Nu poti vinde vehiculul gratis pe care l-ai primit.");
- if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
- ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.", "Next", "Back");
- }
- case 9:
- {
- foreach(new q : Player) if(IsPlayerInVehicle(q,Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "Someone is in your vehicle."), 1;
- new Float: rbb[13][3] = {
- { 2350.9976,1501.6643,10.5465 }, { 2351.3188,1472.9426,10.5461 },
- { 2350.8665,1494.3911,10.5471 }, { 2351.2163,1465.7239,10.5471 },
- { 2351.4163,1487.2764,10.5459 }, { 2351.1187,1458.7067,10.5457 },
- { 2351.2881,1451.4304,10.5468 }, { 2350.9534,1444.4312,10.5491 },
- { 2350.9631,1437.1858,10.5510 }, { 2350.6741,1429.9874,10.5473 },
- { 2350.8513,1419.2781,10.5478 }, { 2350.7991,1412.1979,10.5491 },
- { 2350.7002,1480.1304,10.5463 } }, Float:vehx, Float:vehy, Float:vehz;
- new rand = random(sizeof(rbb));
- if(Veh[playerid][pInfo[playerid][aVar][9]][Model] == 487 || Veh[playerid][pInfo[playerid][aVar][9]][Model] == 469
- ? SetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], rbb[rand][0], rbb[rand][1], rbb[rand][2]+32.8000) : SetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], rbb[rand][0], rbb[rand][1], rbb[rand][2]))
- GetVehiclePos(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], vehx, vehy, vehz), SetPlayerCheckpoint(playerid, vehx, vehy, vehz, 4.0), CP[playerid] = 1;
- format(stmsg[playerid], 80, "~n~~n~~n~~n~~n~~n~~n~~n~~w~distance to your vehicle: ~y~%0.2fm", GetPlayerDistanceFromPoint(playerid, vehx, vehy, vehz));
- GameTextForPlayer(playerid, stmsg[playerid], 8000, 3), pInfo[playerid][aVar][25] = SetTimerEx("GeneralTimer", 1000, false, "ii", playerid, 13);
- }
- case 10:
- {
- if(!IsPlayerInVehicle(playerid, Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not in your vehicle.");
- if(vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] == 5) return SendClientMessage(playerid, COLOR_DARKGRAY, "Maximum insurance for vehicles is 5.");
- if(pInfo[playerid][pMoney] < floatround(((KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]/1000) + 1) * 1000)) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
- vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]++, GiveMoney(playerid, -floatround(((KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]]/1000) + 1) * 1000));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a car insurance.");
- }
- case 11:
- {
- foreach(new q : Player) if(IsPlayerInVehicle(q,Veh[playerid][pInfo[playerid][aVar][9]][ServerID])) return SendClientMessage(playerid, COLOR_DARKGRAY, "Someone is in your vehicle."), 1;
- vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 0, GameTextForPlayer(playerid, "~n~~w~vehicle was despawned", 4000, 3),
- Veh[playerid][pInfo[playerid][aVar][9]][Insurance] = vVar[5][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], Veh[playerid][pInfo[playerid][aVar][9]][vFuel] = vVar[3][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOsl]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOhd]),
- GetVehicleDamageStatus(Veh[playerid][pInfo[playerid][aVar][9]][ServerID], Veh[playerid][pInfo[playerid][aVar][9]][Damage][0], Veh[playerid][pInfo[playerid][aVar][9]][Damage][1], Veh[playerid][pInfo[playerid][aVar][9]][Damage][2], Veh[playerid][pInfo[playerid][aVar][9]][Damage][3]),
- DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt1]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt2]), DestroyVehicle(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]), vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = INVALID_PLAYER_ID,
- Veh[playerid][pInfo[playerid][aVar][9]][KM] = KMVeh[Veh[playerid][pInfo[playerid][aVar][9]][ServerID]], orm_update(Veh[playerid][pInfo[playerid][aVar][9]][ORM_ID]), Veh[playerid][pInfo[playerid][aVar][9]][vSp] = 1;
- }
- }
- }
- else cmd_v(playerid, "");
- }
- case DIALOG_IDSELLV:
- {
- if(!response) return cmd_v(playerid, "");
- pInfo[playerid][aVar][88] = ReturnUser(inputtext);
- if(pInfo[playerid][aVar][88] == INVALID_PLAYER_ID || pInfo[pInfo[playerid][aVar][88]][pStatus] != 1)
- return ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.\n{C22124}Player not connected.", "Next", "Back");
- if(pInfo[playerid][aVar][88] == playerid)
- return ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.\n{C22124}You can't sell vehicle yourself.", "Next", "Back");
- if(!ProxDetectorS(8.0, playerid, pInfo[playerid][aVar][88]))
- return ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.\n{C22124}Player not near you.", "Next", "Back");
- pProdOffer[pInfo[playerid][aVar][88]] = playerid, pProdType[pInfo[playerid][aVar][88]] = 7, pProdInfo[pInfo[playerid][aVar][88]] = Veh[playerid][pInfo[playerid][aVar][9]][Model], pInfo[playerid][pVID] = pInfo[playerid][aVar][88], pProdMoney[pInfo[playerid][pVID]] = 0;
- ShowPlayerDialog(playerid, DIALOG_CASHSELLV, DIALOG_STYLE_INPUT, "Price Vehicle", "Write the amount of money you want to sell vehicle.", "Sell", "Back");
- }
- case DIALOG_CASHSELLV:
- {
- if(!response) return ShowPlayerDialog(playerid, DIALOG_IDSELLV, DIALOG_STYLE_INPUT, "Player ID", "Write the player ID which you want to sell your vehicle.", "Next", "Back");
- if(strval(inputtext) < 1) return ShowPlayerDialog(playerid, DIALOG_CASHSELLV, DIALOG_STYLE_INPUT, "Price Vehicle", "Write the amount of money you want to sell vehicle.\n{C22124}The price can't be below 1$.", "Sell", "Back");
- pProdMoney[pInfo[playerid][pVID]] = strval(inputtext);
- format(stmsg[playerid], 88, "* You offered %s to buy your vehicle %s for %s$.", GetName(pInfo[playerid][pVID]), g_VehicleNames[Veh[playerid][pInfo[playerid][aVar][9]][Model]-400], FormatNumber(pProdMoney[pInfo[playerid][pVID]]));
- SendClientMessage(playerid, COLOR_PRODS, stmsg[playerid]);
- format(stmsg[pInfo[playerid][pVID]], 88, "* %s wants to sell you vehicle %s for %s$, (/accept veh).", GetName(playerid), g_VehicleNames[Veh[playerid][pInfo[playerid][aVar][9]][Model]-400], FormatNumber(pProdMoney[pInfo[playerid][pVID]]));
- SendClientMessage(pInfo[playerid][pVID], COLOR_PRODS, stmsg[pInfo[playerid][pVID]]);
- pInfo[pInfo[playerid][pVID]][pVID] = pInfo[playerid][aVar][9];
- }
- case DIALOG_SELLVEHICLE:
- {
- if(!response) return cmd_v(playerid, "");
- format(stmsg[playerid], 140, "Selling vehicle %s for %s$ to DealerShip.", g_VehicleNames[Veh[playerid][pInfo[playerid][aVar][9]][Model]-400], FormatNumber(0.4*Veh[playerid][pInfo[playerid][aVar][9]][Value])), addlog(stmsg[playerid], playerid, 7);
- format(stmsg[playerid], 90, "* Felicitari, vehiculul tau a fost vandut cu succes, ai primit pe el %s$.", FormatNumber(0.4*Veh[playerid][pInfo[playerid][aVar][9]][Value]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, stmsg[playerid]), vVar[1][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = 0,
- GiveMoney(playerid, floatround(0.4*Veh[playerid][pInfo[playerid][aVar][9]][Value], floatround_tozero)), DestroyDynamicObject(pInfo[playerid][aVar][12]), pInfo[playerid][aVar][12] = 0, DestroyVehicle(Veh[playerid][pInfo[playerid][aVar][9]][ServerID]), vVar[11][Veh[playerid][pInfo[playerid][aVar][9]][ServerID]] = INVALID_PLAYER_ID;
- pInfo[playerid][pTotVeh]--, DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOsl]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vOhd]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt1]), DestroyDynamicObject(Veh[playerid][pInfo[playerid][aVar][9]][vTt2]);
- mysql_format(MySQLCon, quMYSQL, 200, "UPDATE `players` SET `TotVeh`=%d WHERE `ID`=%d", pInfo[playerid][pTotVeh], pInfo[playerid][pID]), mysql_tquery(MySQLCon, quMYSQL);
- orm_delete(Veh[playerid][pInfo[playerid][aVar][9]][ORM_ID]), memcpy(Veh[playerid][pInfo[playerid][aVar][9]], Veh[MAX_PLAYERS][14], 0, sizeof(Veh[][])*4, sizeof(Veh[][]));
- }
- case DIALOG_PLATEVEH:
- {
- if(!response) return cmd_v(playerid, "");
- if(strlen(inputtext) < 2 || strlen(inputtext) > 11)
- return SendClientMessage(playerid, -1, "The plate of the your vehicle can't pass 11 letters and can't be shorter than 2 letters."),
- ShowPlayerDialog(playerid, DIALOG_PLATEVEH, DIALOG_STYLE_INPUT, "Change Vehicle Plate Number", "Introdu mai jos numarul de inamtriculare pe care il doresti la vehiculu tau!\nNumarul de inmatriculare va fi afisat dupa urmatorul respawn al vehiculului tau!", "Change", "Back");
- strmid(Veh[playerid][pInfo[playerid][aVar][9]][Plate], inputtext, 0, strlen(inputtext), 12);
- format(pInfo[playerid][pGText], 78, "~n~~w~plate number has changed in ~n~'~y~%s~w~'", inputtext), GameTextForPlayer(playerid, pInfo[playerid][pGText], 5000, 3);
- }
- case DIALOG_SELLHOUSE:
- {
- if(!response) return cmd_house(playerid, "");
- new h = pInfo[playerid][pHouse];
- format(stmsg[playerid], 120, "Selling house ID %d for %s$ to Anyone (TheState).", pInfo[playerid][pHouse]+1, FormatNumber(Houses[h][Value]/2)), addlog(stmsg[playerid], playerid, 5);
- if(pInfo[playerid][pPos_x] == Houses[h][IntX] && pInfo[playerid][pPos_y] == Houses[h][IntY] && pInfo[playerid][pPos_z] == Houses[h][IntZ]) SetPosIV(playerid);
- SetPlayerPos(playerid, Houses[h][EnterX], Houses[h][EnterY], Houses[h][EnterZ]);
- format(Houses[h][Owner], MAX_PLAYER_NAME, "TheState"), GiveMoney(playerid, Houses[h][Value]/2), Houses[h][HPrice] = 0, HBRefresh(1, h), Houses[h][Lock] = 0;
- orm_update(Houses[h][ORM_ID]);
- pInfo[playerid][pHouse] = -1, SetPlayerInteriorEx(playerid, 0), SetPlayerVirtualWorldEx(playerid, 0), DestroyDynamicMapIcon(pInfo[playerid][aVar][24]);
- GameTextForPlayer(playerid, "~w~Your house was sell successfully!", 4000, 3);
- mysql_format(MySQLCon, quMYSQL, 290, "UPDATE `players` SET `House`=%d WHERE `ID`=%d", pInfo[playerid][pHouse],pInfo[playerid][pID]);
- mysql_tquery(MySQLCon, quMYSQL);
- return 1;
- }
- case DIALOG_INREP: { if(!response) return 1; if(response) return 1; }
- case DIALOG_PREMINF: { if(!response) return 1; if(response) return 1; }
- case DIALOG_DSPORT:
- {
- if(!response) return cmd_buyveh(playerid, "");
- if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
- if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
- switch(listitem)
- {
- case 0: pInfo[playerid][aVar][34] = 602, pInfo[playerid][aVar][35] = 6600000; // Alpha 160
- case 1: pInfo[playerid][aVar][34] = 429, pInfo[playerid][aVar][35] = 12800000; // Banshee 191
- case 2: pInfo[playerid][aVar][34] = 496, pInfo[playerid][aVar][35] = 6390000; // Blista Compact 154
- case 3: pInfo[playerid][aVar][34] = 402, pInfo[playerid][aVar][35] = 11500000; // Buffalo 176
- case 4: pInfo[playerid][aVar][34] = 541, pInfo[playerid][aVar][35] = 16500000; // Bullet 192
- case 5: pInfo[playerid][aVar][34] = 415, pInfo[playerid][aVar][35] = 12500000; // Cheetah 182
- case 6: pInfo[playerid][aVar][34] = 587, pInfo[playerid][aVar][35] = 7370000; // Euros 156
- case 7: pInfo[playerid][aVar][34] = 565, pInfo[playerid][aVar][35] = 8450000; // Flash 156
- case 8: pInfo[playerid][aVar][34] = 411, pInfo[playerid][aVar][35] = 18500000; // Infernus 210
- case 9: pInfo[playerid][aVar][34] = 559, pInfo[playerid][aVar][35] = 9900000; // Jester 168
- case 10: pInfo[playerid][aVar][34] = 603, pInfo[playerid][aVar][35] = 8400000; // Phoenix 162
- case 11: pInfo[playerid][aVar][34] = 475, pInfo[playerid][aVar][35] = 6800000; // Sabre 163
- case 12: pInfo[playerid][aVar][34] = 451, pInfo[playerid][aVar][35] = 15500000; // Turismo 183
- case 13: pInfo[playerid][aVar][34] = 477, pInfo[playerid][aVar][35] = 9800000; // ZR-350 176
- case 14: pInfo[playerid][aVar][34] = 558, pInfo[playerid][aVar][35] = 7400000; // Uranus 147
- case 15: pInfo[playerid][aVar][34] = 589, pInfo[playerid][aVar][35] = 6900000; // Club 154
- }
- if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
- GiveMoney(playerid, -pInfo[playerid][aVar][35]);
- for(new r = 0; r < 14; ++r)
- if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
- format(Veh[playerid][r][Class], 16, "Sport");
- VehExORM(r, playerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
- return 1;
- }
- }
- case DIALOG_DCONVERT:
- {
- if(!response) return cmd_buyveh(playerid, "");
- if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
- if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
- switch(listitem)
- {
- case 0: pInfo[playerid][aVar][34] = 480, pInfo[playerid][aVar][35] = 9400000; // Comet 174
- case 1: pInfo[playerid][aVar][34] = 533, pInfo[playerid][aVar][35] = 4100000; // Feltzer 158
- case 2: pInfo[playerid][aVar][34] = 439, pInfo[playerid][aVar][35] = 3420000; // Stallion 159
- case 3: pInfo[playerid][aVar][34] = 555, pInfo[playerid][aVar][35] = 3550000; // Windsor 149
- }
- if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
- GiveMoney(playerid, -pInfo[playerid][aVar][35]);
- for(new r = 0; r < 14; ++r)
- if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
- format(Veh[playerid][r][Class], 16, "Convertibles");
- VehExORM(r, playerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
- return 1;
- }
- }
- case DIALOG_DINDUST:
- {
- if(!response) return cmd_buyveh(playerid, "");
- if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
- if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
- switch(listitem)
- {
- case 0: pInfo[playerid][aVar][34] = 499, pInfo[playerid][aVar][35] = 83000; // Benson 116
- case 1: pInfo[playerid][aVar][34] = 422, pInfo[playerid][aVar][35] = 2290000; // Bobcat 132
- case 2: pInfo[playerid][aVar][34] = 482, pInfo[playerid][aVar][35] = 3420000; // Burrito 148
- case 3: pInfo[playerid][aVar][34] = 498, pInfo[playerid][aVar][35] = 2270000; // Boxville 102
- case 4: pInfo[playerid][aVar][34] = 609, pInfo[playerid][aVar][35] = 92000; // Boxburg 103
- case 5: pInfo[playerid][aVar][34] = 578, pInfo[playerid][aVar][35] = 91350; // DFT-30 123
- case 6: pInfo[playerid][aVar][34] = 414, pInfo[playerid][aVar][35] = 91350; // Mule 100
- case 7: pInfo[playerid][aVar][34] = 600, pInfo[playerid][aVar][35] = 2300000; // Picador 142
- case 8: pInfo[playerid][aVar][34] = 413, pInfo[playerid][aVar][35] = 2360000; // Pony 104
- case 9: pInfo[playerid][aVar][34] = 440, pInfo[playerid][aVar][35] = 2300000; // Rumpo 129
- case 10: pInfo[playerid][aVar][34] = 459, pInfo[playerid][aVar][35] = 91500; // Topfun 129
- case 11: pInfo[playerid][aVar][34] = 554, pInfo[playerid][aVar][35] = 92000; // Yosemite 136
- }
- if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
- GiveMoney(playerid, -pInfo[playerid][aVar][35]);
- for(new r = 0; r < 14; ++r)
- if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
- format(Veh[playerid][r][Class], 16, "Industrial");
- VehExORM(r, playerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
- }
- }
- case DIALOG_DLOWRID:
- {
- if(!response) return cmd_buyveh(playerid, "");
- if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
- if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
- switch(listitem)
- {
- case 0: pInfo[playerid][aVar][34] = 536, pInfo[playerid][aVar][35] = 4900000; // Blade 164
- case 1: pInfo[playerid][aVar][34] = 575, pInfo[playerid][aVar][35] = 3360000; // Broadway 149
- case 2: pInfo[playerid][aVar][34] = 534, pInfo[playerid][aVar][35] = 2450000; // Remington 159
- case 3: pInfo[playerid][aVar][34] = 567, pInfo[playerid][aVar][35] = 5400000; // Savanna 163
- case 4: pInfo[playerid][aVar][34] = 535, pInfo[playerid][aVar][35] = 4600000; // Slamvan 150
- case 5: pInfo[playerid][aVar][34] = 566, pInfo[playerid][aVar][35] = 2600000; // Tahoma 151
- case 6: pInfo[playerid][aVar][34] = 412, pInfo[playerid][aVar][35] = 2900000; // Voodoo 159
- }
- if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
- GiveMoney(playerid, -pInfo[playerid][aVar][35]);
- for(new r = 0; r < 14; ++r)
- if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
- format(Veh[playerid][r][Class], 16, "Lowriders");
- VehExORM(r, playerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
- }
- }
- case DIALOG_DOFFROAD:
- {
- if(!response) return cmd_buyveh(playerid, "");
- if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
- if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
- switch(listitem)
- {
- case 0: pInfo[playerid][aVar][34] = 573, pInfo[playerid][aVar][35] = 9600000; // Dune 104
- case 1: pInfo[playerid][aVar][34] = 579, pInfo[playerid][aVar][35] = 3400000; // Huntley 149
- case 2: pInfo[playerid][aVar][34] = 400, pInfo[playerid][aVar][35] = 2500000; // Landstalker 149
- case 3: pInfo[playerid][aVar][34] = 500, pInfo[playerid][aVar][35] = 3000000; // Mesa 133
- }
- if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
- GiveMoney(playerid, -pInfo[playerid][aVar][35]);
- for(new r = 0; r < 14; ++r)
- if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
- format(Veh[playerid][r][Class], 16, "Off Road");
- VehExORM(r, playerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
- }
- }
- case DIALOG_DSALOONS:
- {
- if(!response) return cmd_buyveh(playerid, "");
- if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
- if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
- switch(listitem)
- {
- case 0: pInfo[playerid][aVar][34] = 445, pInfo[playerid][aVar][35] = 5300000; // Admiral 155
- case 1: pInfo[playerid][aVar][34] = 401, pInfo[playerid][aVar][35] = 580000; // Bravura 139
- case 2: pInfo[playerid][aVar][34] = 518, pInfo[playerid][aVar][35] = 2380000; // Buccaneer 155
- case 3: pInfo[playerid][aVar][34] = 527, pInfo[playerid][aVar][35] = 2310000; // Cadrona 141
- case 4: pInfo[playerid][aVar][34] = 542, pInfo[playerid][aVar][35] = 2310000; // Clover 155
- case 5: pInfo[playerid][aVar][34] = 507, pInfo[playerid][aVar][35] = 2385000; // Elegant 157
- case 6: pInfo[playerid][aVar][34] = 562, pInfo[playerid][aVar][35] = 4750000; // Elegy 168
- case 7: pInfo[playerid][aVar][34] = 585, pInfo[playerid][aVar][35] = 2280000; // Emperor 145
- case 8: pInfo[playerid][aVar][34] = 419, pInfo[playerid][aVar][35] = 2280000; // Esperanto 141
- case 9: pInfo[playerid][aVar][34] = 526, pInfo[playerid][aVar][35] = 2320000; // Fortune 149
- case 10: pInfo[playerid][aVar][34] = 492, pInfo[playerid][aVar][35] = 2280000; // Greenwood 133
- case 11: pInfo[playerid][aVar][34] = 474, pInfo[playerid][aVar][35] = 3800000; // Hermes 141
- case 12: pInfo[playerid][aVar][34] = 546, pInfo[playerid][aVar][35] = 2280000; // Intruder 141
- case 13: pInfo[playerid][aVar][34] = 517, pInfo[playerid][aVar][35] = 2360000; // Majestic 149
- case 14: pInfo[playerid][aVar][34] = 410, pInfo[playerid][aVar][35] = 2000000; // Manana 122
- case 15: pInfo[playerid][aVar][34] = 551, pInfo[playerid][aVar][35] = 2310000; // Merit 148
- case 16: pInfo[playerid][aVar][34] = 516, pInfo[playerid][aVar][35] = 2285000; // Nebula 149
- case 17: pInfo[playerid][aVar][34] = 426, pInfo[playerid][aVar][35] = 4400000; // Premier 164
- case 18: pInfo[playerid][aVar][34] = 405, pInfo[playerid][aVar][35] = 2375000; // Sentinel 155
- case 19: pInfo[playerid][aVar][34] = 540, pInfo[playerid][aVar][35] = 2290000; // Vincent 141
- case 20: pInfo[playerid][aVar][34] = 421, pInfo[playerid][aVar][35] = 2325000; // Washington 145
- case 21: pInfo[playerid][aVar][34] = 560, pInfo[playerid][aVar][35] = 5100000; // Sultan 160
- }
- if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
- GiveMoney(playerid, -pInfo[playerid][aVar][35]);
- for(new r = 0; r < 14; ++r)
- if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
- format(Veh[playerid][r][Class], 16, "Saloons");
- VehExORM(r, playerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
- }
- }
- case DIALOG_DBIKES:
- {
- if(!response) return cmd_buyveh(playerid, "");
- if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
- if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
- switch(listitem)
- {
- case 0: {
- pInfo[playerid][aVar][34] = 461;
- pInfo[playerid][aVar][35] = 7700000; // PCJ-600 188
- }
- case 1: {
- pInfo[playerid][aVar][34] = 462;
- pInfo[playerid][aVar][35] = 800000; // Faggio 157
- }
- case 2: {
- pInfo[playerid][aVar][34] = 463;
- pInfo[playerid][aVar][35] = 5600000; // Freeway 184
- }
- case 3: {
- pInfo[playerid][aVar][34] = 471;
- pInfo[playerid][aVar][35] = 600000; // Quad (ATV) 104
- }
- case 4: {
- pInfo[playerid][aVar][34] = 481;
- pInfo[playerid][aVar][35] = 900000; // BMX 91
- }
- case 5: {
- pInfo[playerid][aVar][34] = 509;
- pInfo[playerid][aVar][35] = 80000; // Bike 98
- }
- case 6: {
- pInfo[playerid][aVar][34] = 510;
- pInfo[playerid][aVar][35] = 90000; // Mountain Bike 122
- }
- case 7: {
- pInfo[playerid][aVar][34] = 521;
- pInfo[playerid][aVar][35] = 9000000; // FCR-900 187
- }
- case 8: {
- pInfo[playerid][aVar][34] = 522;
- pInfo[playerid][aVar][35] = 15000000; // NRG-500 192
- }
- case 9: {
- pInfo[playerid][aVar][34] = 581;
- pInfo[playerid][aVar][35] = 6000000; // BF-400 178
- }
- case 10: {
- pInfo[playerid][aVar][34] = 586;
- pInfo[playerid][aVar][35] = 3800000; // Wayfarer 181
- }
- }
- if(pInfo[playerid][pMoney] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough money.");
- GiveMoney(playerid, -pInfo[playerid][aVar][35]);
- for(new r = 0; r < 14; ++r){
- if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
- format(Veh[playerid][r][Class], 16, "Bikes");
- VehExORM(r, playerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
- }
- }
- }
- case DIALOG_SPECIALV:
- {
- if(!response) return cmd_buyveh(playerid, "");
- if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "You need at least level 3.");
- if(pInfo[playerid][pTotVeh]+1 >= pInfo[playerid][pSlotVeh]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough vehicles slot. (/shop -> Vehicle Slot)");
- switch(listitem)
- {
- case 0: {
- pInfo[playerid][aVar][34] = 556;
- pInfo[playerid][aVar][35] = 80; // Monster A 104
- }
- case 1: {
- pInfo[playerid][aVar][34] = 557;
- pInfo[playerid][aVar][35] = 80; // Monster B 104
- }
- case 2: {
- pInfo[playerid][aVar][34] = 444;
- pInfo[playerid][aVar][35] = 80; // Monster C 104
- }
- case 3: {
- pInfo[playerid][aVar][34] = 494;
- pInfo[playerid][aVar][35] = 90; // Hotring Racer 203
- }
- case 4: {
- pInfo[playerid][aVar][34] = 502;
- pInfo[playerid][aVar][35] = 90; // Hotring Racer A 203
- }
- case 5: {
- pInfo[playerid][aVar][34] = 503;
- pInfo[playerid][aVar][35] = 90; // Hotring Racer B 203
- }
- case 6: {
- pInfo[playerid][aVar][34] = 568;
- pInfo[playerid][aVar][35] = 70; // Bandito 138
- }
- case 7: {
- pInfo[playerid][aVar][34] = 424;
- pInfo[playerid][aVar][35] = 60; // BF Injection 127
- }
- case 8: {
- pInfo[playerid][aVar][34] = 487;
- pInfo[playerid][aVar][35] = 90; // Maverick 169
- }
- case 9: {
- pInfo[playerid][aVar][34] = 469;
- pInfo[playerid][aVar][35] = 80; // Sparrow 124
- }
- case 10: {
- pInfo[playerid][aVar][34] = 519;
- pInfo[playerid][aVar][35] = 100; // Shamal +184
- }
- case 11: {
- pInfo[playerid][aVar][34] = 468;
- pInfo[playerid][aVar][35] = 40; // Sanchez 166
- }
- case 12: {
- pInfo[playerid][aVar][34] = 495;
- pInfo[playerid][aVar][35] = 80; // Sandking 167
- }
- case 13: {
- pInfo[playerid][aVar][34] = 506;
- pInfo[playerid][aVar][35] = 60; // Super GT 169
- }
- case 14: {
- pInfo[playerid][aVar][34] = 539;
- pInfo[playerid][aVar][35] = 70; // Vortex 94
- }
- case 15: {
- pInfo[playerid][aVar][34] = 571;
- pInfo[playerid][aVar][35] = 30; // Kart 88
- }
- case 16: {
- pInfo[playerid][aVar][34] = 409;
- pInfo[playerid][aVar][35] = 80; // Stretch 149
- }
- }
- if(pInfo[playerid][pDiamonds] < pInfo[playerid][aVar][35]) return SendClientMessage(playerid, COLOR_DARKGRAY, "You don't have enough Diamonds.");
- pInfo[playerid][pDiamonds] -= pInfo[playerid][aVar][35];
- for(new r = 0; r < 14; ++r)
- if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) {
- format(Veh[playerid][r][Class], 16, "Specials");
- VehExORM(r, playerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Felicitari, ti-ai cumparat un nou vehicul, pentru optiuni foloseste comanda /v.");
- }
- }
- case DIALOG_DEALERSHIP:
- {
- if(!response) return 1;
- new tmp[86];
- switch(listitem)
- {
- case 0:
- {
- format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nAlpha\t6.600.000$\t160 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Banshee\t12.800.000$\t191 KM/H\nBlista Compact\t6.390.000$\t154 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Buffalo\t11.500.000$\t176 KM/H\nBullet\t16.500.000$\t192 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Cheetah\t12.500.000$\t182 KM/H\nEuros\t7.370.000$\t156 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Flash\t8.450.000$\t156 KM/H\nInfernus\t18.500.000$\t210 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Jester\t9.900.000$\t168 KM/H\nPhoenix\t8.400.000$\t162 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Sabre\t6.800.000$\t163 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Turismo\t15.500.000$\t183 KM/H\nZR-350\t9.800.000$\t176 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Uranus\t7.400.000$\t147 KM/H\nClub\t6.900.000$\t154 KM/H\n"), strcat(stdlg[playerid], tmp);
- ShowPlayerDialog(playerid, DIALOG_DSPORT, DIALOG_STYLE_TABLIST_HEADERS, "Sport Vehicles", stdlg[playerid], "Buy", "Back");
- }
- case 1:
- {
- format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nComet\t9.400.000$\t174 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Feltzer\t4.100.000$\t158 KM/H\nStallion\t3.420.000$\t159 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Windsor\t3.550.000$\t149 KM/H\n"), strcat(stdlg[playerid], tmp);
- ShowPlayerDialog(playerid, DIALOG_DCONVERT, DIALOG_STYLE_TABLIST_HEADERS, "Convertibles", stdlg[playerid], "Buy", "Back");
- }
- case 2:
- {
- format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nBenson\t83.000$\t116 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Bobcat\t2.290.000$\t132 KM/H\nBurrito\t3.420.000$\t148 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Boxville\t2.270.000$\t102 KM/H\nBoxburg\t92.000$\t103 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "DFT-30\t91.350$\t123 KM/H\nMule\t91.350$\t100 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Picador\t2.300.000$\t142 KM/H\nPony\t2.360.000$\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Rumpo\t2.300.000$\t129 KM/H\nTopfun\t91.500$\t129 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Yosemite\t92.000$\t136 KM/H"), strcat(stdlg[playerid], tmp);
- ShowPlayerDialog(playerid, DIALOG_DINDUST, DIALOG_STYLE_TABLIST_HEADERS, "Industrial", stdlg[playerid], "Buy", "Back");
- }
- case 3:
- {
- format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nBlade\t4.900.000$\t164 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Broadway\t3.360.000$\t149 KM/H\nRemington\t2.450.000$\t159 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Savanna\t5.400.000$\t163 KM/H\nSlamvan\t4.600.000$\t150 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Tahoma\t2.600.000$\t151 KM/H\nVoodoo\t2.900.000$\t159 KM/H\n"), strcat(stdlg[playerid], tmp);
- ShowPlayerDialog(playerid, DIALOG_DLOWRID, DIALOG_STYLE_TABLIST_HEADERS, "Lowriders", stdlg[playerid], "Buy", "Back");
- }
- case 4:
- {
- format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nDune\t9.600.000$\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Huntley\t3.400.000$\t149 KM/H\nLandstalker\t2.500.000$\t149 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Mesa\t3.000.000$\t133 KM/H\n"), strcat(stdlg[playerid], tmp);
- ShowPlayerDialog(playerid, DIALOG_DOFFROAD, DIALOG_STYLE_TABLIST_HEADERS, "Off Road", stdlg[playerid], "Buy", "Back");
- }
- case 5:
- {
- format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nAdmiral\t5.300.000$\t155 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Bravura\t580.000$\t139 KM/H\nBuccaneer\t2.380.000$\t155 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Cadrona\t2.310.000$\t141 KM/H\nClover\t2.310.000$\t155 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Elegant\t2.385.000$\t157 KM/H\nElegy\t4.750.000$\t168 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Emperor\t2.280.000$\t145 KM/H\nEsperanto\t2.280.000$\t141 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Fortune\t2.320.000$\t149 KM/H\nGreenwood\t2.280.000$\t133 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Hermes\t3.800.000$\t141 KM/H\nIntruder\t2.280.000$\t141 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Majestic\t2.360.000$\t149 KM/H\nManana\t2.000.000$\t122 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Merit\t2.310.000$\t148 KM/H\nNebula\t2.285.000$\t149 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Premier\t4.400.000$\t164 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Sentinel\t2.375.000$\t155 KM/H\nVincent\t2.290.000$\t141 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Washington\t2.325.000$\t145 KM/H\nSultan\t5.100.000$\t160 KM/H"), strcat(stdlg[playerid], tmp);
- ShowPlayerDialog(playerid, DIALOG_DSALOONS, DIALOG_STYLE_TABLIST_HEADERS, "Saloons", stdlg[playerid], "Buy", "Back");
- }
- case 6:
- {
- format(tmp, sizeof(tmp), "Vehicle\tPrice\tMax Speed\nPCJ-600\t7.700.000$\t188 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Faggio\t800.000$\t157 KM/H\nFreeway\t5.600.000$\t184 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Quad\t600.000$\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "BMX\t900.000$\t91 KM/H\nBike\t80.000$\t98 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Mountain Bike\t90.000$\t122 KM/H\nFCR-900\t9.000.000$\t187 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "NRG-500\t15.000.000$\t192 KM/H\nBF-400\t6.000.000$\t178 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Wayfarer\t3.800.000$\t181 KM/H"), strcat(stdlg[playerid], tmp);
- ShowPlayerDialog(playerid, DIALOG_DBIKES, DIALOG_STYLE_TABLIST_HEADERS, "Bikes", stdlg[playerid], "Buy", "Back");
- }
- case 7:
- {
- format(pInfo[playerid][pT], 44, "Special Vehicles - {4EE2EC}%d Diamonds", pInfo[playerid][pDiamonds]);
- format(tmp, sizeof(tmp), "Vehicle\tDiamonds\tMax Speed\nMonster A\t{4EE2EC}80\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Monster B\t{4EE2EC}80\t104 KM/H\nMonster C\t{4EE2EC}80\t104 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "Hotring Racer\t{4EE2EC}90\t203 KM/H\nHotring Racer A\t{4EE2EC}90\t203 KM/H"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "\nHotring Racer B\t{4EE2EC}90\t203 KM/H\nBandito\t{4EE2EC}70\t138 KM/H\n"), strcat(stdlg[playerid], tmp),
- format(tmp, sizeof(tmp), "BF Injection\t{4EE2EC}60\t127 KM/H\nMaverick\t{4EE2EC}90\t169 KM/H"), strcat(stdlg[playerid], tmp);
- format(tmp, sizeof(tmp), "\nSparrow\t{4EE2EC}80\t124 KM/H\nShamal\t{4EE2EC}100\t+184 KM/H"), strcat(stdlg[playerid], tmp);
- format(tmp, sizeof(tmp), "\nSanchez\t{4EE2EC}40\t166 KM/H\nSandKing\t{4EE2EC}80\t167 KM/H"), strcat(stdlg[playerid], tmp);
- format(tmp, sizeof(tmp), "\nSuper GT\t{4EE2EC}60\t169 KM/H"), strcat(stdlg[playerid], tmp);
- format(tmp, sizeof(tmp), "\nVortex\t{4EE2EC}70\t94 KM/H\nKart\t{4EE2EC}30\t88 KM/H\nStretch\t{4EE2EC}80\t149 KM/H"), strcat(stdlg[playerid], tmp);
- ShowPlayerDialog(playerid, DIALOG_SPECIALV, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Buy", "Back");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment