SHARE
TWEET

[Filterscript] Concessionária + [Map] em LS

Felipe_Alves Apr 12th, 2020 657 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <sscanf>
  4. #include <DOF2>
  5. #include <streamer>
  6.  
  7. new idcc = 0; ///start de id de carros
  8. new outdoorconce, indoorconce;// portão
  9. new mostr[12];
  10.  
  11. #define MAX_CARROS 199 ///máximo de carros disponiveis na concessionaria
  12. #define COR_1 1 ///Cor 1 padrão dos carros comprados na concessionaria
  13. #define COR_2 0 ///Cor 2 padrão dos carros comprados na concessionaria
  14.  
  15. public OnFilterScriptInit()
  16. {
  17.     print("\n--------------------------------------");
  18.     print("--------------CONCESSIONARIA------------");
  19.     print("-------------By: Adriano_MQD----------\n");
  20.     print("\n--------------------------------------");
  21.     for(new maxcars; maxcars < MAX_CARROS; maxcars++)
  22.     {
  23.         new str[128], Float:cxyz[4], modelid, vehid, cor1, cor2;
  24.         format(str, sizeof(str), "veiculos/%d.ini", maxcars);
  25.         modelid = DOF2_GetInt(str, "MODEL ID");
  26.         cxyz[0] = DOF2_GetFloat(str, "X");
  27.         cxyz[1] = DOF2_GetFloat(str, "Y");
  28.         cxyz[2] = DOF2_GetFloat(str, "Z");
  29.         cxyz[3] = DOF2_GetFloat(str, "Angle");
  30.         cor1 = DOF2_GetInt(str, "COR 1");
  31.         cor2 = DOF2_GetInt(str, "COR 2");
  32.         vehid = CreateVehicle(modelid, cxyz[0], cxyz[1], cxyz[2], cxyz[3], cor1, cor2, -1);
  33.         DOF2_SetInt(str, "temp id", vehid);
  34.     }
  35.     ///////////CONESSIONARIA////////
  36.     new tmpobjid;
  37.     tmpobjid = CreateDynamicObject(8661, 547.226745, -1295.770385, 26.232700, 180.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  38.     SetDynamicObjectMaterial(tmpobjid, 0, 14815, "whore_main", "WH_carpet3", 0x00000000);
  39.     tmpobjid = CreateDynamicObject(19447, 567.195007, -1290.578125, 25.003000, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  40.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  41.     tmpobjid = CreateDynamicObject(19447, 527.354614, -1290.036010, 18.001398, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  42.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  43.     tmpobjid = CreateDynamicObject(19447, 567.157226, -1299.760009, 25.003000, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  44.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  45.     tmpobjid = CreateDynamicObject(19447, 567.174011, -1299.500000, 21.502000, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  46.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  47.     tmpobjid = CreateDynamicObject(19447, 567.174987, -1290.577880, 21.502000, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  48.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  49.     tmpobjid = CreateDynamicObject(19447, 567.174987, -1290.577880, 18.001398, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  50.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  51.     tmpobjid = CreateDynamicObject(19447, 560.861999, -1285.712402, 24.470800, 0.000000, 0.000000, 89.868797, -1, -1, -1, 300.00, 300.00);
  52.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  53.     tmpobjid = CreateDynamicObject(19447, 522.065917, -1288.664306, 24.882999, 0.000000, 0.000000, 127.284202, -1, -1, -1, 300.00, 300.00);
  54.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  55.     tmpobjid = CreateDynamicObject(19447, 562.437316, -1285.844116, 15.137570, 0.000000, 0.000000, 89.868797, -1, -1, -1, 300.00, 300.00);
  56.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  57.     tmpobjid = CreateDynamicObject(19447, 551.232543, -1285.702026, 24.470800, 0.000000, 0.000000, 89.868797, -1, -1, -1, 300.00, 300.00);
  58.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  59.     tmpobjid = CreateDynamicObject(19447, 555.796264, -1285.843505, 15.137598, 0.000000, 0.000000, 89.868797, -1, -1, -1, 300.00, 300.00);
  60.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  61.     tmpobjid = CreateDynamicObject(8661, 547.244262, -1295.782226, 16.239999, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  62.     SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "ws_stationfloor", 0x00000000);
  63.     tmpobjid = CreateDynamicObject(8661, 547.243286, -1295.787719, 26.192699, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  64.     SetDynamicObjectMaterial(tmpobjid, 0, 14815, "whore_main", "WH_carpet3", 0x00000000);
  65.     tmpobjid = CreateDynamicObject(8661, 537.272705, -1295.721435, 26.172700, 180.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  66.     SetDynamicObjectMaterial(tmpobjid, 0, 14815, "whore_main", "WH_carpet3", 0x00000000);
  67.     tmpobjid = CreateDynamicObject(2774, 566.529907, -1285.682617, 15.672498, 0.000000, 0.000000, 359.240814, -1, -1, -1, 300.00, 300.00);
  68.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "grey-95-percent", 0x00000000);
  69.     SetDynamicObjectMaterial(tmpobjid, 1, 18901, "matclothes", "beretblk", 0x00000000);
  70.     SetDynamicObjectMaterial(tmpobjid, 2, 18901, "matclothes", "beretblk", 0x00000000);
  71.     tmpobjid = CreateDynamicObject(19447, 536.812622, -1285.653442, 15.137598, 0.000000, 0.000000, 89.868797, -1, -1, -1, 300.00, 300.00);
  72.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  73.     tmpobjid = CreateDynamicObject(19447, 530.618225, -1285.639892, 15.137598, 0.000000, 0.000000, 89.868797, -1, -1, -1, 300.00, 300.00);
  74.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  75.     tmpobjid = CreateDynamicObject(2774, 526.403320, -1285.985473, 15.672498, 0.000000, 0.000000, 359.240814, -1, -1, -1, 300.00, 300.00);
  76.     SetDynamicObjectMaterial(tmpobjid, 0, 18901, "matclothes", "beretblk", 0x00000000);
  77.     SetDynamicObjectMaterial(tmpobjid, 1, 18901, "matclothes", "beretblk", 0x00000000);
  78.     SetDynamicObjectMaterial(tmpobjid, 2, 18901, "matclothes", "beretblk", 0x00000000);
  79.     tmpobjid = CreateDynamicObject(2774, 551.773925, -1286.034301, 15.672498, 0.000000, 0.000000, 359.240814, -1, -1, -1, 300.00, 300.00);
  80.     SetDynamicObjectMaterial(tmpobjid, 0, 18901, "matclothes", "beretblk", 0x00000000);
  81.     SetDynamicObjectMaterial(tmpobjid, 1, 18901, "matclothes", "beretblk", 0x00000000);
  82.     SetDynamicObjectMaterial(tmpobjid, 2, 18901, "matclothes", "beretblk", 0x00000000);
  83.     tmpobjid = CreateDynamicObject(2774, 542.424011, -1285.993774, 15.672498, 0.000000, 0.000000, 359.240814, -1, -1, -1, 300.00, 300.00);
  84.     SetDynamicObjectMaterial(tmpobjid, 0, 18901, "matclothes", "beretblk", 0x00000000);
  85.     SetDynamicObjectMaterial(tmpobjid, 1, 18901, "matclothes", "beretblk", 0x00000000);
  86.     SetDynamicObjectMaterial(tmpobjid, 2, 18901, "matclothes", "beretblk", 0x00000000);
  87.     tmpobjid = CreateDynamicObject(19447, 541.679016, -1285.674560, 24.470800, 0.000000, 0.000000, 89.868797, -1, -1, -1, 300.00, 300.00);
  88.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  89.     tmpobjid = CreateDynamicObject(19447, 567.174133, -1298.988281, 18.001398, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  90.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  91.     tmpobjid = CreateDynamicObject(19447, 527.338989, -1290.043334, 25.003000, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  92.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  93.     tmpobjid = CreateDynamicObject(19447, 527.358703, -1299.613281, 25.690000, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  94.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  95.     tmpobjid = CreateDynamicObject(19447, 527.339111, -1290.043334, 21.502000, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  96.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  97.     tmpobjid = CreateDynamicObject(19447, 527.358703, -1299.676269, 22.190000, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  98.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  99.     tmpobjid = CreateDynamicObject(19447, 532.050476, -1285.674560, 24.470800, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  100.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  101.     tmpobjid = CreateDynamicObject(19447, 522.137878, -1285.781982, 24.470800, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  102.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  103.     tmpobjid = CreateDynamicObject(8661, 537.272705, -1295.781372, 26.172700, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  104.     SetDynamicObjectMaterial(tmpobjid, 0, 14815, "whore_main", "WH_carpet3", 0x00000000);
  105.     tmpobjid = CreateDynamicObject(19447, 562.279541, -1303.791625, 22.612022, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  106.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  107.     tmpobjid = CreateDynamicObject(8169, 524.901489, -1288.291870, 16.239999, 0.000000, 0.000000, 14.003800, -1, -1, -1, 300.00, 300.00);
  108.     SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "ws_carpark2", 0x00000000);
  109.     tmpobjid = CreateDynamicObject(5259, 541.539245, -1296.626464, 28.015249, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  110.     SetDynamicObjectMaterial(tmpobjid, 0, 18901, "matclothes", "beretblk", 0x00000000);
  111.     SetDynamicObjectMaterial(tmpobjid, 1, 18901, "matclothes", "beretblk", 0x00000000);
  112.     SetDynamicObjectMaterial(tmpobjid, 2, 18901, "matclothes", "beretblk", 0x00000000);
  113.     outdoorconce = CreateObject(11327, 517.47168, -1300.07544, 18.80000, 0.00000, 0.00000, 0.00000);
  114.     tmpobjid = CreateDynamicObject(8169, 517.872070, -1292.567749, 16.239999, 0.000000, 0.000000, 14.003800, -1, -1, -1, 300.00, 300.00);
  115.     SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "ws_carpark2", 0x00000000);
  116.     tmpobjid = CreateDynamicObject(8169, 524.495971, -1297.443237, 16.239999, 0.000000, 0.000000, 14.003800, -1, -1, -1, 300.00, 300.00);
  117.     SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "ws_carpark2", 0x00000000);
  118.     tmpobjid = CreateDynamicObject(8169, 524.713684, -1292.871704, 16.239999, 0.000000, 0.000000, 14.003800, -1, -1, -1, 300.00, 300.00);
  119.     SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "ws_carpark2", 0x00000000);
  120.     tmpobjid = CreateDynamicObject(8169, 524.310913, -1302.017700, 16.239999, 0.000000, 0.000000, 14.003800, -1, -1, -1, 300.00, 300.00);
  121.     SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "ws_carpark2", 0x00000000);
  122.     tmpobjid = CreateDynamicObject(8169, 517.454956, -1301.694946, 16.239999, 0.000000, 0.000000, 14.003800, -1, -1, -1, 300.00, 300.00);
  123.     SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "ws_carpark2", 0x00000000);
  124.     tmpobjid = CreateDynamicObject(8169, 517.643005, -1297.119873, 16.239999, 0.000000, 0.000000, 14.003800, -1, -1, -1, 300.00, 300.00);
  125.     SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "ws_carpark2", 0x00000000);
  126.     tmpobjid = CreateDynamicObject(19817, 525.168151, -1292.089233, 15.976888, 0.000000, 0.000000, 354.351867, -1, -1, -1, 300.00, 300.00);
  127.     SetDynamicObjectMaterial(tmpobjid, 0, 18835, "mickytextures", "smileyface1", 0x00000000);
  128.     tmpobjid = CreateDynamicObject(19447, 517.859069, -1293.233032, 20.986200, 90.000000, 0.000000, 166.788299, -1, -1, -1, 300.00, 300.00);
  129.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  130.     tmpobjid = CreateDynamicObject(19447, 522.065917, -1288.664306, 17.898000, 0.000000, 0.000000, 127.284202, -1, -1, -1, 300.00, 300.00);
  131.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  132.     indoorconce = CreateObject(11327, 527.38916, -1299.87158, 18.80000,   0.00000, 0.00000, 0.00000);
  133.     tmpobjid = CreateDynamicObject(19447, 517.330200, -1299.739257, 21.981700, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  134.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  135.     tmpobjid = CreateDynamicObject(19447, 522.065917, -1288.664306, 21.392200, 0.000000, 0.000000, 127.284202, -1, -1, -1, 300.00, 300.00);
  136.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  137.     tmpobjid = CreateDynamicObject(19447, 517.328674, -1299.737670, 24.470800, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  138.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  139.     tmpobjid = CreateDynamicObject(19447, 517.327270, -1290.405151, 24.470800, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  140.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  141.     tmpobjid = CreateDynamicObject(19447, 562.309570, -1303.791748, 19.122020, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  142.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  143.     tmpobjid = CreateDynamicObject(19447, 552.679504, -1303.740478, 22.612022, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  144.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  145.     tmpobjid = CreateDynamicObject(19447, 543.080261, -1303.689453, 22.612022, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  146.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  147.     tmpobjid = CreateDynamicObject(19447, 533.460693, -1303.638549, 22.612022, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  148.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  149.     tmpobjid = CreateDynamicObject(19447, 523.820983, -1303.588134, 22.612022, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  150.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  151.     tmpobjid = CreateDynamicObject(19447, 522.300537, -1303.581054, 22.612022, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  152.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  153.     tmpobjid = CreateDynamicObject(19447, 522.290527, -1303.581420, 19.141988, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  154.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  155.     tmpobjid = CreateDynamicObject(19447, 522.290527, -1303.581420, 15.591968, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  156.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  157.     tmpobjid = CreateDynamicObject(19447, 531.900207, -1303.633300, 19.141988, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  158.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  159.     tmpobjid = CreateDynamicObject(19447, 541.549743, -1303.686035, 19.141988, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  160.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  161.     tmpobjid = CreateDynamicObject(19447, 551.189514, -1303.737670, 19.141988, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  162.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  163.     tmpobjid = CreateDynamicObject(19447, 556.829528, -1303.766723, 19.141988, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  164.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  165.     tmpobjid = CreateDynamicObject(19447, 562.309570, -1303.791748, 15.622024, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  166.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  167.     tmpobjid = CreateDynamicObject(19447, 552.679565, -1303.741210, 15.622024, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  168.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  169.     tmpobjid = CreateDynamicObject(19447, 543.069763, -1303.690673, 15.622024, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  170.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  171.     tmpobjid = CreateDynamicObject(19447, 533.450195, -1303.639892, 15.622024, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  172.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  173.     tmpobjid = CreateDynamicObject(19447, 528.929992, -1303.616333, 15.602023, 0.000000, 0.000000, 89.699989, -1, -1, -1, 300.00, 300.00);
  174.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  175.     tmpobjid = CreateDynamicObject(19447, 517.328674, -1309.016357, 24.470800, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  176.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  177.     tmpobjid = CreateDynamicObject(19447, 517.328674, -1309.016357, 21.010805, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  178.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  179.     tmpobjid = CreateDynamicObject(19447, 517.328674, -1309.016357, 17.558807, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  180.     SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "lightblue", 0x00000000);
  181.     tmpobjid = CreateDynamicObject(19282, 540.348510, -1287.423095, 21.772930, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  182.     tmpobjid = CreateDynamicObject(3858, 534.555786, -1285.670532, 19.828300, 0.000000, 0.000000, 44.807201, -1, -1, -1, 300.00, 300.00);
  183.     tmpobjid = CreateDynamicObject(3858, 558.396606, -1285.798828, 19.828300, 0.000000, 0.000000, 44.807201, -1, -1, -1, 300.00, 300.00);
  184.     tmpobjid = CreateDynamicObject(1226, 682.015625, -1140.093750, 18.648439, 3.141590, 0.000000, 0.523599, -1, -1, -1, 300.00, 300.00);
  185.     tmpobjid = CreateDynamicObject(3440, 1465.669067, -11409.116210, -495.255706, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  186.     tmpobjid = CreateDynamicObject(3440, 353.360626, -10018.426757, -5357.613281, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  187.     tmpobjid = CreateDynamicObject(3440, 551.855651, -1285.304687, 23.871599, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  188.     tmpobjid = CreateDynamicObject(3440, 542.286010, -1285.125854, 23.871599, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  189.     tmpobjid = CreateDynamicObject(625, 553.109802, -1284.086791, 16.788049, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  190.     tmpobjid = CreateDynamicObject(625, 544.072875, -1283.714843, 16.788049, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  191.     tmpobjid = CreateDynamicObject(957, 527.982910, -1294.713500, 24.361110, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  192.     tmpobjid = CreateDynamicObject(957, 566.366760, -1294.738525, 24.361110, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  193.     tmpobjid = CreateDynamicObject(957, 562.458923, -1294.807250, 24.361110, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  194.     tmpobjid = CreateDynamicObject(957, 558.179199, -1294.635620, 24.361110, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  195.     tmpobjid = CreateDynamicObject(957, 554.456359, -1294.830688, 24.361110, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  196.     tmpobjid = CreateDynamicObject(957, 550.223022, -1294.986938, 24.361110, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  197.     tmpobjid = CreateDynamicObject(957, 536.411865, -1294.936523, 24.361110, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  198.     tmpobjid = CreateDynamicObject(957, 532.368041, -1294.836914, 24.361110, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  199.     tmpobjid = CreateDynamicObject(3850, 561.802612, -1296.131225, 16.828500, 0.000000, 0.000000, 87.500900, -1, -1, -1, 300.00, 300.00);
  200.     tmpobjid = CreateDynamicObject(3850, 565.273681, -1296.278442, 16.828500, 0.000000, 0.000000, 87.500900, -1, -1, -1, 300.00, 300.00);
  201.     tmpobjid = CreateDynamicObject(3850, 554.840209, -1295.829956, 16.828500, 0.000000, 0.000000, 87.500900, -1, -1, -1, 300.00, 300.00);
  202.     tmpobjid = CreateDynamicObject(3850, 558.328674, -1295.980590, 16.828500, 0.000000, 0.000000, 87.500900, -1, -1, -1, 300.00, 300.00);
  203.     tmpobjid = CreateDynamicObject(3850, 551.799987, -1301.828002, 16.828500, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  204.     tmpobjid = CreateDynamicObject(3850, 551.799987, -1298.280029, 16.828500, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  205.     tmpobjid = CreateDynamicObject(2180, 565.610473, -1303.152832, 16.256998, 0.000000, 0.000000, 360.000000, -1, -1, -1, 300.00, 300.00);
  206.     tmpobjid = CreateDynamicObject(2180, 563.659973, -1303.152832, 16.256998, 0.000000, 0.000000, 360.000000, -1, -1, -1, 300.00, 300.00);
  207.     tmpobjid = CreateDynamicObject(2199, 562.382873, -1303.393554, 16.236200, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  208.     tmpobjid = CreateDynamicObject(1713, 554.576477, -1296.454711, 16.248500, 0.000000, 0.000000, 358.000000, -1, -1, -1, 300.00, 300.00);
  209.     tmpobjid = CreateDynamicObject(1713, 564.176879, -1296.833374, 16.248500, 0.000000, 0.000000, 358.000000, -1, -1, -1, 300.00, 300.00);
  210.     tmpobjid = CreateDynamicObject(1713, 561.095642, -1296.717163, 16.248500, 0.000000, 0.000000, 358.000000, -1, -1, -1, 300.00, 300.00);
  211.     tmpobjid = CreateDynamicObject(1713, 558.016601, -1296.590698, 16.248500, 0.000000, 0.000000, 358.000000, -1, -1, -1, 300.00, 300.00);
  212.     tmpobjid = CreateDynamicObject(2161, 563.965881, -1303.188842, 17.654100, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  213.     tmpobjid = CreateDynamicObject(2161, 565.935485, -1303.264770, 17.654100, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  214.     tmpobjid = CreateDynamicObject(2356, 564.668334, -1302.423217, 16.241100, 0.000000, 0.000000, 182.165451, -1, -1, -1, 300.00, 300.00);
  215.     tmpobjid = CreateDynamicObject(2356, 565.615417, -1302.407104, 16.241100, 0.000000, 0.000000, 248.055114, -1, -1, -1, 300.00, 300.00);
  216.     tmpobjid = CreateDynamicObject(2356, 563.751098, -1302.583129, 16.241100, 0.000000, 0.000000, 164.846801, -1, -1, -1, 300.00, 300.00);
  217.     tmpobjid = CreateDynamicObject(2356, 566.577026, -1302.571044, 16.241100, 0.000000, 0.000000, 136.530303, -1, -1, -1, 300.00, 300.00);
  218.     tmpobjid = CreateDynamicObject(2202, 566.624084, -1298.292358, 16.229400, 0.000000, 0.000000, 268.821685, -1, -1, -1, 300.00, 300.00);
  219.     tmpobjid = CreateDynamicObject(2202, 566.594177, -1300.458007, 16.229400, 0.000000, 0.000000, 268.821685, -1, -1, -1, 300.00, 300.00);
  220.     tmpobjid = CreateDynamicObject(2008, 559.926269, -1303.198242, 16.245100, 0.000000, 0.000000, 180.300003, -1, -1, -1, 300.00, 300.00);
  221.     tmpobjid = CreateDynamicObject(2309, 559.160156, -1302.581542, 16.245199, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  222.     tmpobjid = CreateDynamicObject(16378, 553.747009, -1301.403564, 16.982200, 0.000000, 0.000000, 266.784393, -1, -1, -1, 300.00, 300.00);
  223.     tmpobjid = CreateDynamicObject(1808, 554.065185, -1303.495727, 16.253200, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
  224.     tmpobjid = CreateDynamicObject(638, 556.651123, -1303.247680, 16.927600, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
  225.     tmpobjid = CreateDynamicObject(19173, 558.688598, -1303.727416, 19.007499, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  226.     tmpobjid = CreateDynamicObject(14826, 523.183410, -1290.144653, 16.236000, 0.000000, 0.000000, 218.739807, -1, -1, -1, 300.00, 300.00);
  227.     tmpobjid = CreateDynamicObject(19122, 527.565307, -1285.230346, 16.724899, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  228.     tmpobjid = CreateDynamicObject(18608, 530.400695, -1290.188964, 24.769800, 0.000000, 0.000000, 270.277404, -1, -1, -1, 300.00, 300.00);
  229.     tmpobjid = CreateDynamicObject(18608, 567.351867, -1290.236206, 24.769800, 0.000000, 0.000000, 270.277404, -1, -1, -1, 300.00, 300.00);
  230.     tmpobjid = CreateDynamicObject(18608, 549.281188, -1290.315429, 24.769800, 0.000000, 0.000000, 270.277404, -1, -1, -1, 300.00, 300.00);
  231.     tmpobjid = CreateDynamicObject(19122, 565.494140, -1285.666137, 16.724899, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  232.     tmpobjid = CreateDynamicObject(19122, 552.762695, -1285.561767, 16.724899, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  233.     tmpobjid = CreateDynamicObject(19122, 541.342712, -1285.168090, 16.724899, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
  234.     tmpobjid = CreateDynamicObject(3864, 563.653869, -1265.746582, 20.924619, 0.000000, 0.000000, 0.487300, -1, -1, -1, 300.00, 300.00);
  235.     tmpobjid = CreateDynamicObject(3864, 565.553833, -1273.021118, 20.924619, 0.000000, 0.000000, 0.487300, -1, -1, -1, 300.00, 300.00);
  236.     tmpobjid = CreateDynamicObject(3864, 566.167724, -1281.284790, 20.924619, 0.000000, 0.000000, 0.487300, -1, -1, -1, 300.00, 300.00);
  237.     tmpobjid = CreateDynamicObject(18647, 544.281372, -1285.574340, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  238.     tmpobjid = CreateDynamicObject(18647, 546.289978, -1285.574340, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  239.     tmpobjid = CreateDynamicObject(18647, 548.289978, -1285.574340, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  240.     tmpobjid = CreateDynamicObject(18647, 550.289978, -1285.573730, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  241.     tmpobjid = CreateDynamicObject(18647, 553.631469, -1285.595947, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  242.     tmpobjid = CreateDynamicObject(18647, 555.620422, -1285.595947, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  243.     tmpobjid = CreateDynamicObject(18647, 557.610595, -1285.595947, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  244.     tmpobjid = CreateDynamicObject(18647, 559.619995, -1285.595947, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  245.     tmpobjid = CreateDynamicObject(18647, 55.000000, -1285.573974, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  246.     tmpobjid = CreateDynamicObject(18647, 561.579895, -1285.595947, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  247.     tmpobjid = CreateDynamicObject(18647, 563.559997, -1285.595947, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  248.     tmpobjid = CreateDynamicObject(18647, 565.539978, -1285.595947, 26.186700, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
  249.     tmpobjid = CreateDynamicObject(18647, 540.719726, -1285.566650, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  250.     tmpobjid = CreateDynamicObject(18647, 538.789611, -1285.572143, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  251.     tmpobjid = CreateDynamicObject(18647, 536.760009, -1285.566650, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  252.     tmpobjid = CreateDynamicObject(18647, 534.780822, -1285.566650, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  253.     tmpobjid = CreateDynamicObject(18647, 532.801086, -1285.586669, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  254.     tmpobjid = CreateDynamicObject(18647, 530.799987, -1285.566650, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  255.     tmpobjid = CreateDynamicObject(18647, 528.799987, -1285.566650, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  256.     tmpobjid = CreateDynamicObject(18647, 527.799987, -1285.566650, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  257.     tmpobjid = CreateDynamicObject(18647, 524.599975, -1285.566650, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  258.     tmpobjid = CreateDynamicObject(18647, 522.600097, -1285.565795, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  259.     tmpobjid = CreateDynamicObject(18647, 520.640014, -1285.565795, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  260.     tmpobjid = CreateDynamicObject(18647, 518.700012, -1285.565795, 26.186700, 0.000000, 0.000000, 89.888801, -1, -1, -1, 300.00, 300.00);
  261.  
  262.     /////MOSTRUARIO////
  263.     mostr[0] = CreateVehicle(411,564.1821,-1289.9437,18.9853,24.1522,1,0,60); // car01
  264.     mostr[1] = CreateVehicle(500,560.7583,-1289.6521,19.3629,24.4618,1,0,60); // car02
  265.     mostr[2] = CreateVehicle(506,557.3481,-1289.1583,18.9627,26.4937,1,0,60); // car03
  266.     mostr[3] = CreateVehicle(415,554.1299,-1290.2783,19.0295,27.4127,1,0,60); // car04
  267.     mostr[4] = CreateVehicle(419,539.8340,-1289.9187,19.0496,16.8069,1,0,60); // car05
  268.     mostr[5] = CreateVehicle(451,535.8825,-1289.1241,18.9600,19.0293,1,0,60); // car06
  269.     mostr[6] = CreateVehicle(495,531.9995,-1288.9739,19.6053,22.0319,1,0,60); // car07
  270.     mostr[7] = CreateVehicle(506,548.6249,-1301.0435,18.9545,37.9662,1,0,60); // car08
  271.     mostr[8] = CreateVehicle(518,544.3881,-1300.7321,18.9210,38.6771,1,0,60); // car09
  272.     mostr[9] = CreateVehicle(534,540.1310,-1300.7487,18.9759,43.6812,1,0,60); // car10
  273.     mostr[10] = CreateVehicle(535,535.1861,-1300.6986,19.1040,44.6522,1,0,60); // car11
  274.     mostr[11] = CreateVehicle(541,547.0037,-1295.7441,18.9649,88.5466,1,0,60); // car12
  275.     //////FIM CONCESSIONARIA////
  276.     return 1;
  277. }
  278.  
  279. public OnFilterScriptExit()
  280. {
  281.     for(new maxcars; maxcars < MAX_CARROS; maxcars++)
  282.     {
  283.         new str[128], vehid;
  284.         format(str, sizeof(str), "veiculos/%d.ini", maxcars);
  285.         vehid = DOF2_GetInt(str, "temp id");
  286.         DestroyVehicle(vehid);
  287.     }
  288.     for(new cc = 0; cc <= 12; cc++)
  289.     {
  290.         DestroyVehicle(cc);
  291.     }
  292.     DOF2_Exit();
  293.     return 1;
  294. }
  295.  
  296. public OnPlayerConnect(playerid)
  297. {
  298.     RemoveBuildingForPlayer(playerid, 6357, 505.0547, -1269.9375, 28.6875, 0.25);
  299.     return 1;
  300. }
  301.  
  302. public OnPlayerStateChange(playerid, newstate, oldstate)
  303. {
  304.     if(newstate == PLAYER_STATE_DRIVER)
  305.     {
  306.         for(new maxcars; maxcars < MAX_CARROS; maxcars++)
  307.         {
  308.             new str[128], name[32];
  309.             GetPlayerName(playerid, name, sizeof(name));
  310.             format(str, sizeof(str), "veiculos/%d.ini", maxcars);
  311.             if(strcmp(DOF2_GetString(str, "Dono"), name) && GetPlayerVehicleID(playerid) == DOF2_GetInt(str, "temp id"))
  312.             {
  313.        //SetPlayerPos(playerid, Ppos[0], Ppos[1], Ppos[2]);
  314.                 RemovePlayerFromVehicle(playerid);
  315.                 SendClientMessage(playerid, -1, "[ERRO] Você não é dono desse veiculo.");
  316.             }
  317.         }
  318.         for(new cc = 0; cc <= 12; cc++)
  319.         {
  320.             if(IsPlayerInVehicle(playerid, mostr[cc]))
  321.             {
  322.                 SendClientMessage(playerid, -1, "[ERRO] Esse veiculo é para mostruario.");
  323.                 RemovePlayerFromVehicle(playerid);
  324.                 return 1;
  325.             }
  326.         }
  327.     }
  328.     return 1;
  329. }
  330.  
  331. CMD:rveiculo(playerid, params[])
  332. {
  333.     for(new maxcars; maxcars < MAX_CARROS; maxcars++)
  334.     {
  335.         new str[128], vehid;
  336.         format(str, sizeof(str), "veiculos/%d.ini", maxcars);
  337.         vehid = DOF2_GetInt(str, "temp id");
  338.         DestroyVehicle(vehid);
  339.     }
  340.     for(new maxcars; maxcars < MAX_CARROS; maxcars++)
  341.     {
  342.         new str[128], Float:cxyz[4], modelid, vehid, cor1, cor2;
  343.         format(str, sizeof(str), "veiculos/%d.ini", maxcars);
  344.         modelid = DOF2_GetInt(str, "MODEL ID");
  345.         cxyz[0] = DOF2_GetFloat(str, "X");
  346.         cxyz[1] = DOF2_GetFloat(str, "Y");
  347.         cxyz[2] = DOF2_GetFloat(str, "Z");
  348.         cxyz[3] = DOF2_GetFloat(str, "Angle");
  349.         cor1 = DOF2_GetInt(str, "COR 1");
  350.         cor2 = DOF2_GetInt(str, "COR 2");
  351.         vehid = CreateVehicle(modelid, cxyz[0], cxyz[1], cxyz[2], cxyz[3], cor1, cor2, -1);
  352.         DOF2_SetInt(str, "temp id", vehid);
  353.     }
  354.     return 1;
  355. }
  356.  
  357. CMD:freiodemao(playerid, params[])
  358. {
  359.     if(IsPlayerInAnyVehicle(playerid))
  360.     {
  361.         for(new maxcars; maxcars < MAX_CARROS; maxcars++)
  362.         {
  363.             new str[128], strn[128], name[32], Float:cxyz[4];
  364.             GetPlayerName(playerid, name, sizeof(name));
  365.             GetVehiclePos(GetPlayerVehicleID(playerid), cxyz[0], cxyz[1], cxyz[2]);
  366.             GetVehicleZAngle(GetPlayerVehicleID(playerid), cxyz[3]);
  367.             format(str, sizeof(str), "veiculos/%d.ini", maxcars);
  368.             if(strcmp(DOF2_GetString(str, "Dono"), name) && GetPlayerVehicleID(playerid) == DOF2_GetInt(str, "temp id"))
  369.             {
  370.                 SendClientMessage(playerid, -1, "[ERRO] Você não é dono desse veiculo.");
  371.             }
  372.             else
  373.             {
  374.                 format(strn, sizeof(strn), "Você estacionou o veiculo de ID %d", DOF2_GetInt(str, "ID"));
  375.                 SendClientMessage(playerid, -1, strn);
  376.                 DOF2_SetFloat(str, "X", cxyz[0]);
  377.                 DOF2_SetFloat(str, "Y", cxyz[1]);
  378.                 DOF2_SetFloat(str, "Z", cxyz[2]);
  379.                 DOF2_SetFloat(str, "Angle", cxyz[3]);
  380.                 DOF2_SaveFile();
  381.                 break;
  382.             }
  383.  
  384.         }
  385.     }
  386.     else
  387.     {
  388.         SendClientMessage(playerid, -1, "[ERRO] Você não está em um veículo.");
  389.     }
  390.     return 1;
  391. }
  392.  
  393.  
  394. CMD:venderveiculo(playerid, params[])
  395. {
  396.     new str[64], strn[128], idcar, name[32], valor;
  397.     if(sscanf(params, "d, d", idcar, valor))
  398.     {
  399.         SendClientMessage(playerid, -1, "[INFO] Use /venderveiculo [id] [valor]");
  400.     }
  401.     else
  402.     {
  403.         GetPlayerName(playerid, name, sizeof(name));
  404.         format(str, sizeof(str), "veiculos/%d.ini", idcar);
  405.         if(!DOF2_FileExists(str))
  406.         {
  407.             SendClientMessage(playerid, -1, "[ERRO] Esse veiculo não existe.");
  408.         }
  409.         else
  410.         {
  411.             if(strcmp(DOF2_GetString(str, "Dono"), name))
  412.             {
  413.                 SendClientMessage(playerid, -1, "[ERRO] Você não é dono desse veiculo");
  414.             }
  415.             else
  416.             {
  417.                 format(strn, sizeof(strn), "[INFO] Você vendeu seu veiculo de ID %d por $%d", DOF2_GetInt(str, "ID"), valor);
  418.                 DOF2_SetString(str, "Dono", "Ninguém");
  419.                 DOF2_SetInt(str, "Valor", valor);
  420.                 SendClientMessage(playerid, -1, strn);
  421.                 DOF2_SaveFile();
  422.             }
  423.         }
  424.     }
  425.     return 1;
  426. }
  427.  
  428. CMD:comprarveiculo(playerid, params[])
  429. {
  430.     if(IsPlayerInAnyVehicle(playerid))
  431.     {
  432.         for(new maxcars; maxcars < MAX_CARROS; maxcars++)
  433.         {
  434.             new str[128], strn[128], tempid, name[32];
  435.             format(str, sizeof(str), "veiculos/%d.ini", maxcars);
  436.             tempid = DOF2_GetInt(str, "temp id");
  437.             if (tempid == GetPlayerVehicleID(playerid) && !strcmp(DOF2_GetString(str, "Dono"), "Ninguém"))
  438.             {
  439.                 GetPlayerName(playerid, name, sizeof(name));
  440.                 DOF2_SetString(str, "Dono", name);
  441.                 format(strn, sizeof(strn), "Você comprou o veiculo de ID %d", DOF2_GetInt(str, "ID"));
  442.                 SendClientMessage(playerid, -1, strn);
  443.                 DOF2_SaveFile();
  444.             }
  445.         }
  446.     }
  447.     else
  448.     {
  449.         SendClientMessage(playerid, -1, "[ERRO] Você não está em um veículo.");
  450.     }
  451.     return 1;
  452. }
  453.  
  454.  
  455. CMD:delveiculo(playerid, params[])
  456. {
  457.     if(IsPlayerInAnyVehicle(playerid))
  458.     {
  459.         for(new maxcars; maxcars < MAX_CARROS; maxcars++)
  460.         {
  461.             new str[128], strn[128], tempid, name[32];
  462.             format(str, sizeof(str), "veiculos/%d.ini", maxcars);
  463.             tempid = DOF2_GetInt(str, "temp id");
  464.             if(tempid == GetPlayerVehicleID(playerid))
  465.             {
  466.                 GetPlayerName(playerid, name, sizeof(name));
  467.                 format(strn, sizeof(strn), "Você deletou o veiculo de ID %d", DOF2_GetInt(str, "ID"));
  468.                 SendClientMessage(playerid, -1, strn);
  469.                 DestroyVehicle(GetPlayerVehicleID(playerid));
  470.                 DOF2_RemoveFile(str);
  471.                 break;
  472.             }
  473.         }
  474.     }
  475.     else
  476.     {
  477.         SendClientMessage(playerid, -1, "[ERRO] Você não está em um veículo.");
  478.     }
  479.     return 1;
  480. }
  481.  
  482. CMD:comprar(playerid, params[])
  483. {
  484.     for(new maxcars; maxcars < MAX_CARROS; maxcars++)
  485.     {
  486.         new str[128], strn[128], name[32], midcc, cor1 = COR_1, cor2 = COR_2, valor;
  487.         if(sscanf(params, "d", midcc))
  488.         {
  489.             SendClientMessage(playerid, -1, "[ERRo] Use /comprar [ID DO MODELO]");
  490.             break;
  491.         }
  492.         else
  493.         {
  494.             GetPlayerName(playerid, name, sizeof(name));
  495.             format(str, sizeof(str), "veiculos/%d.ini", idcc);
  496.             format(strn, sizeof(strn), "[INFO]Você comprou um novo veiculo com ID %d", idcc);
  497.             if(!DOF2_FileExists(str))
  498.             {
  499.                 DOF2_CreateFile(str);
  500.                 DOF2_SetInt(str, "ID", idcc);
  501.                 DOF2_SetInt(str, "MODEL ID", midcc);
  502.                 DOF2_SetFloat(str, "X", 522.2556);
  503.                 DOF2_SetFloat(str, "Y", -1299.0128);
  504.                 DOF2_SetFloat(str, "Z", 17.6113);
  505.                 DOF2_SetFloat(str, "ANGLE", 88.5476);
  506.                 DOF2_SetString(str, "Dono", name);
  507.                 DOF2_SetBool(str, "Trancado", true);
  508.                 DOF2_SetInt(str, "Valor", valor);
  509.                 DOF2_SetInt(str, "COR 1", cor1);
  510.                 DOF2_SetInt(str, "COR 2", cor2);
  511.                 idcc = CreateVehicle(midcc, 522.2556,-1299.0128,17.6113,88.5476, cor1, cor2, -1);
  512.                 DOF2_SetInt(str, "temp id", idcc);
  513.                 DOF2_SaveFile();
  514.                 SendClientMessage(playerid, -1, strn);
  515.                 break;
  516.             }
  517.             else
  518.             {
  519.                 if(maxcars == MAX_CARROS)
  520.                 {
  521.                     SendClientMessage(playerid, -1, "[ERRO] MAX VEICULO, contate o administrador.");
  522.                     break;
  523.                 }
  524.                 else
  525.                 {
  526.                     idcc++;
  527.                 }
  528.             }
  529.         }
  530.     }
  531.     return 1;
  532. }
  533.  
  534. CMD:irmap(playerid, params[])
  535. {
  536.  
  537.     SetPlayerPos(playerid, 522.2556,-1299.0128,17.6113);
  538.     return 1;
  539. }
  540.  
  541. CMD:portao(playerid)
  542. {
  543.     MoveObject(outdoorconce, 517.5203, -1308.3488, 18.8000, 1.0);
  544.     return 1;
  545. }
  546.  
  547. CMD:portao2(playerid)
  548. {
  549.     MoveObject(indoorconce, 527.3582,-1299.9086, 20.2858, 1.2, 0.0000, -70.0000, 0.0000);
  550.     return 1;
  551. }
  552.  
  553. CMD:creditos(playerid, params[])
  554. {
  555.  
  556.     SendClientMessage(playerid, 0xFFFF00AA, "[II]Base de | Sistema | e | Mapa | de concessionária criado por Adriano_MQD[II]");
  557.     return 1;
  558. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top