Advertisement
OtaconEvil

[FS] Interior Coche SWATv2 Actualizado!

Jul 9th, 2013
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 21.74 KB | None | 0 0
  1. // OTACON
  2. // www.pawnoscripting.com
  3. //--------------------------------------------------------------------//
  4.  
  5. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  6. #include <a_samp>
  7. #define MENUSWATv2 41237
  8.  
  9. forward QuitarTextArmarioSWATv2();
  10. new Text:ArmarioSWATv2;
  11. new CeldaSWATv2;
  12. new RolStringSWATv2[128];
  13. new nombreRolSWATv2[MAX_PLAYER_NAME];
  14. new skinantiguo[MAX_PLAYERS];
  15. new skin[MAX_PLAYERS];
  16. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  17.  
  18. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  19. new SWATv2 [MAX_PLAYERS];
  20. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  21.  
  22. public OnFilterScriptInit()
  23. {
  24. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  25.            ArmarioSWATv2 = TextDrawCreate(202.000000, 276.000000, "~y~Armario SWAT ~w~Escribe: ~r~/BuySWAT");
  26.            TextDrawBackgroundColor(ArmarioSWATv2, 255);
  27.            TextDrawFont(ArmarioSWATv2, 1);
  28.            TextDrawLetterSize(ArmarioSWATv2, 0.410000, 1.400000);
  29.            TextDrawColor(ArmarioSWATv2, -1);
  30.            TextDrawSetOutline(ArmarioSWATv2, 0);
  31.            TextDrawSetProportional(ArmarioSWATv2, 1);
  32.            TextDrawSetShadow(ArmarioSWATv2, 1);
  33.            TextDrawUseBox(ArmarioSWATv2, 1);
  34.            TextDrawBoxColor(ArmarioSWATv2, 255);
  35.            TextDrawTextSize(ArmarioSWATv2, 384.000000, -9.000000);
  36.            SetTimer("QuitarTextArmarioSWATv2", 500, true);
  37.            AddStaticPickup(1239,2,1655.7837,-1092.6995,585.6096, 0);
  38.            CreateObject(3069, 1657.654296875, -1102.2470703125, 584.69689941406, 353.24890136719, 0.7525634765625, 2.08740234375);
  39.            CreateObject(1698, 1660.5479736328, -1100.4654541016, 585.27618408203, 0.011016845703125, 270.25, 1.7500915527344);
  40.            CreateObject(1698, 1660.5541992188, -1100.4665527344, 586.60571289063, 0.010986328125, 270.24682617188, 1.746826171875);
  41.            CreateObject(1698, 1660.4660644531, -1097.2126464844, 585.25390625, 0.011016845703125, 270.25, 1.7500915527344);
  42.            CreateObject(1698, 1660.4477539063, -1097.2113037109, 586.60900878906, 0.010986328125, 270.24719238281, 1.746826171875);
  43.            CreateObject(1698, 1660.3889160156, -1094.1195068359, 585.24206542969, 0.010986328125, 270.24719238281, 1.746826171875);
  44.            CreateObject(1698, 1660.380859375, -1094.134765625, 586.59698486328, 0.0054931640625, 270.24719238281, 1.746826171875);
  45.            CreateObject(1698, 1660.330078125, -1091.84765625, 585.23651123047, 0.0054931640625, 270.24719238281, 1.746826171875);
  46.            CreateObject(1698, 1660.328125, -1091.8505859375, 586.59143066406, 0.0054931640625, 270.24719238281, 1.746826171875);
  47.            CreateObject(1698, 1660.5653076172, -1100.4541015625, 587.93560791016, 0.010986328125, 270.24719238281, 1.746826171875);
  48.            CreateObject(1698, 1660.4370117188, -1097.1437988281, 587.93890380859, 0.010986328125, 270.24719238281, 1.746826171875);
  49.            CreateObject(1698, 1660.3555908203, -1093.8967285156, 587.92700195313, 0.011016845703125, 270.25, 1.7500915527344);
  50.            CreateObject(1698, 1660.3172607422, -1091.8551025391, 587.92132568359, 0.010986328125, 270.24719238281, 1.746826171875);
  51.            CreateObject(1698, 1658.6025390625, -1090.3408203125, 585.22155761719, 0.0054931640625, 270.24169921875, 91.741333007813);
  52.            CreateObject(1698, 1658.6298828125, -1090.3876953125, 586.57641601563, 0.0054931640625, 270.24145507813, 91.741333007813);
  53.            CreateObject(1698, 1658.6325683594, -1090.3814697266, 587.93139648438, 0, 270.23620605469, 91.73583984375);
  54.            CreateObject(1698, 1656.0322265625, -1090.4453125, 585.22448730469, 0.0054931640625, 270.24719238281, 91.488647460938);
  55.            CreateObject(1698, 1656.04296875, -1090.4541015625, 586.57940673828, 0, 270.23620605469, 91.73583984375);
  56.            CreateObject(1698, 1656.0314941406, -1090.4520263672, 587.92059326172, 0.004425048828125, 270.24145507813, 91.491424560547);
  57.            CreateObject(1698, 1658.7579345703, -1101.9099121094, 585.24798583984, 0, 270.23657226563, 271.48864746094);
  58.            CreateObject(1698, 1658.7592773438, -1101.9200439453, 586.60296630859, 0, 270.23620605469, 271.48864746094);
  59.            CreateObject(1698, 1658.7587890625, -1101.919921875, 586.60296630859, 0, 270.23620605469, 271.48864746094);
  60.            CreateObject(1698, 1658.7587890625, -1101.919921875, 586.60296630859, 0, 270.23620605469, 271.48864746094);
  61.            CreateObject(1698, 1658.7612304688, -1101.9332275391, 587.93286132813, 0, 270.23620605469, 271.48864746094);
  62.            CreateObject(1698, 1656.2629394531, -1101.9788818359, 585.25543212891, 0, 270.23620605469, 271.48864746094);
  63.            CreateObject(1698, 1656.2629394531, -1101.9647216797, 586.61041259766, 0, 270.23620605469, 271.48864746094);
  64.            CreateObject(1698, 1656.259765625, -1101.9711914063, 587.94036865234, 0, 270.23620605469, 271.48864746094);
  65.            CreateObject(1698, 1654.9349365234, -1100.3779296875, 585.29913330078, 359.8955078125, 92.998260498047, 1.252685546875);
  66.            CreateObject(1698, 1655.001953125, -1100.3714599609, 586.59033203125, 359.89013671875, 92.993774414063, 1.25244140625);
  67.            CreateObject(1698, 1655.0747070313, -1100.3612060547, 587.85620117188, 359.89013671875, 92.993774414063, 1.25244140625);
  68.            CreateObject(1698, 1654.84765625, -1097.0655517578, 585.26647949219, 359.89013671875, 92.993774414063, 1.25244140625);
  69.            CreateObject(1698, 1654.84765625, -1097.0654296875, 585.26647949219, 359.89013671875, 92.993774414063, 1.25244140625);
  70.            CreateObject(1698, 1654.9229736328, -1097.0631103516, 586.58227539063, 359.89013671875, 92.993774414063, 1.25244140625);
  71.            CreateObject(1698, 1654.994140625, -1097.056640625, 587.84820556641, 359.88464355469, 92.993774414063, 1.2469482421875);
  72.            CreateObject(1698, 1654.76171875, -1093.755859375, 585.25427246094, 359.88464355469, 92.993774414063, 1.2469482421875);
  73.            CreateObject(1698, 1654.84375, -1093.759765625, 586.56976318359, 359.88464355469, 92.993774414063, 1.2469482421875);
  74.            CreateObject(1698, 1654.92578125, -1093.7587890625, 587.83514404297, 359.88464355469, 92.993774414063, 1.2469482421875);
  75.            CreateObject(1698, 1654.73046875, -1092.2724609375, 585.25012207031, 359.88464355469, 92.993774414063, 1.2469482421875);
  76.            CreateObject(1698, 1654.7578125, -1091.8896484375, 586.01409912109, 359.88464355469, 92.993774414063, 1.2469482421875);
  77.            CreateObject(1698, 1654.830078125, -1091.5791015625, 587.10650634766, 359.88464355469, 92.993774414063, 0.999755859375);
  78.            CreateObject(1698, 1654.8802490234, -1090.9317626953, 587.81646728516, 359.84545898438, 92.992004394531, 1.2507019042969);
  79.            CreateObject(1537, 1657.7142333984, -1101.7696533203, 584.66937255859, 0, 0, 180.5);
  80.            CreateObject(1537, 1656.2219238281, -1101.8199462891, 584.65924072266, 0, 0, 181.49719238281);
  81.            CreateObject(1698, 1659.3564453125, -1101.6883544922, 585.26782226563, 0, 270, 1.9969177246094);
  82.            CreateObject(1698, 1659.3302001953, -1101.6650390625, 586.59777832031, 0, 270, 1.9940185546875);
  83.            CreateObject(1698, 1659.3413085938, -1101.6612548828, 587.927734375, 0, 270, 1.9940185546875);
  84.            CreateObject(1698, 1660.7966308594, -1100.0570068359, 584.76190185547, 0, 270.23657226563, 271.23864746094);
  85.            CreateObject(1698, 1660.7938232422, -1100.0501708984, 585.99157714844, 0, 268.49987792969, 271.23596191406);
  86.            CreateObject(1698, 1660.7668457031, -1100.0417480469, 587.27117919922, 0, 269.74975585938, 271.23046875);
  87.            CreateObject(1698, 1660.7712402344, -1100.0501708984, 588.07580566406, 0, 269.74731445313, 271.23046875);
  88.            CreateObject(1698, 1654.583984375, -1100.1524658203, 585.32312011719, 0, 270.23620605469, 271.23596191406);
  89.            CreateObject(1698, 1654.6180419922, -1100.1657714844, 586.65295410156, 0, 270.23620605469, 271.23596191406);
  90.            CreateObject(1698, 1654.6202392578, -1100.1712646484, 587.98291015625, 0, 270.23620605469, 271.23596191406);
  91.            CreateObject(1698, 1656.25, -1101.7249755859, 587.97082519531, 0.018341064453125, 89.500274658203, 1.2463684082031);
  92.            CreateObject(1698, 1656.2442626953, -1101.7310791016, 586.61535644531, 0.0164794921875, 89.500122070313, 1.241455078125);
  93.            CreateObject(1698, 1656.2199707031, -1101.7384033203, 585.24536132813, 0.0164794921875, 89.500122070313, 1.241455078125);
  94.            CreateObject(1698, 1660.1639404297, -1098.4346923828, 585.14587402344, 0, 0, 1.5);
  95.            CreateObject(1698, 1660.0864257813, -1095.1408691406, 585.13159179688, 0, 0, 1.4996337890625);
  96.            CreateObject(1698, 1655.1137695313, -1098.3970947266, 585.12261962891, 0, 0, 1.2496337890625);
  97.            CreateObject(1698, 1655.03515625, -1095.095703125, 585.13543701172, 0, 0, 1.4996337890625);
  98.            CreateObject(1698, 1660.9753417969, -1093.5364990234, 584.55419921875, 0, 268.49487304688, 271.23046875);
  99.            CreateObject(1698, 1653.9738769531, -1093.5400390625, 584.56439208984, 0, 268.49487304688, 271.23046875);
  100.            CreateObject(1698, 1659.5205078125, -1095.15625, 584.56335449219, 0.0054931640625, 270.24169921875, 1.494140625);
  101.            CreateObject(1698, 1659.6063232422, -1098.4832763672, 584.576171875, 0.010986328125, 270.24719238281, 1.746826171875);
  102.            CreateObject(1698, 1655.6644287109, -1098.4138183594, 584.56604003906, 359.8955078125, 92.998260498047, 1.252685546875);
  103.            CreateObject(1698, 1655.5869140625, -1095.1142578125, 584.57940673828, 359.8955078125, 92.998260498047, 1.252685546875);
  104.            CreateObject(2058, 1655.1477050781, -1098.7028808594, 587.37701416016, 0, 96, 0);
  105.            CreateObject(2058, 1655.1247558594, -1097.15234375, 587.37506103516, 0, 93.999938964844, 0);
  106.            CreateObject(2058, 1655.078125, -1095.6708984375, 587.32073974609, 0, 96, 0);
  107.            CreateObject(3069, 1657.9097900391, -1101.9885253906, 588.97332763672, 350.74841308594, 359.74401855469, 1.9577941894531);
  108.            CreateObject(957, 1659.607421875, -1094.7314453125, 588.17028808594, 0, 0, 0);
  109.            CreateObject(957, 1659.6733398438, -1096.6677246094, 588.17413330078, 0, 0, 0);
  110.            CreateObject(957, 1659.7551269531, -1098.5635986328, 588.18389892578, 0, 0, 0);
  111.            CreateObject(957, 1655.6730957031, -1094.9555664063, 588.16772460938, 0, 0, 0);
  112.            CreateObject(957, 1655.7092285156, -1096.9077148438, 588.18371582031, 0, 0, 0);
  113.            CreateObject(957, 1655.7596435547, -1098.7646484375, 588.17016601563, 0, 0, 0);
  114.            CreateObject(2110, 1658.48828125, -1090.6062011719, 584.37524414063, 0, 0, 2);
  115.            CreateObject(964, 1655.5721435547, -1091.1951904297, 584.59478759766, 0, 0, 1);
  116.            CreateObject(964, 1655.5749511719, -1091.1846923828, 585.53552246094, 0, 0, 0.999755859375);
  117.            CreateObject(964, 1656.9943847656, -1091.1339111328, 584.57635498047, 0, 0, 0.999755859375);
  118.            CreateObject(964, 1657.0086669922, -1091.1538085938, 585.54211425781, 0, 0, 0.999755859375);
  119.            CreateObject(964, 1655.5655517578, -1091.1535644531, 586.47625732422, 0, 0, 0.999755859375);
  120.            CreateObject(964, 1656.9925537109, -1091.1315917969, 586.48284912109, 0, 0, 0.999755859375);
  121.            CreateObject(2167, 1654.9484863281, -1092.6193847656, 585.14459228516, 0, 0, 90.5);
  122.            CreateObject(3015, 1655.1079101563, -1092.4320068359, 586.66662597656, 0, 0, 0);
  123.            CreateObject(3015, 1655.1104736328, -1092.8538818359, 586.66662597656, 0, 0, 0);
  124.            CeldaSWATv2 = CreateObject(10252, 1661.4467773438, -1093.6798095703, 586.24523925781, 0, 0, 181.23864746094);
  125.            CreateObject(10252, 1658.3985595703, -1089.3889160156, 586.24346923828, 0, 0, 271.73596191406);
  126.  /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  127.            return 1;
  128. }
  129.  
  130. public OnFilterScriptExit()
  131. {
  132. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  133.     print("  ==== Interior Coche SWATv2 Descargado ======");
  134.     DestroyObject(1);
  135.     DestroyObject(2);
  136.     DestroyObject(3);
  137.     DestroyObject(4);
  138.     DestroyObject(5);
  139.     DestroyObject(6);
  140.     DestroyObject(7);
  141.     DestroyObject(8);
  142.     DestroyObject(9);
  143.     DestroyObject(10);
  144.     DestroyObject(11);
  145.     DestroyObject(12);
  146.     DestroyObject(13);
  147.     DestroyObject(14);
  148.     DestroyObject(15);
  149.     DestroyObject(16);
  150.     DestroyObject(17);
  151.     DestroyObject(18);
  152.     DestroyObject(19);
  153.     DestroyObject(20);
  154.     DestroyObject(21);
  155.     DestroyObject(22);
  156.     DestroyObject(23);
  157.     DestroyObject(24);
  158.     DestroyObject(25);
  159.     DestroyObject(26);
  160.     DestroyObject(27);
  161.     DestroyObject(28);
  162.     DestroyObject(29);
  163.     DestroyObject(30);
  164.     DestroyObject(31);
  165.     DestroyObject(32);
  166.     DestroyObject(33);
  167.     DestroyObject(34);
  168.     DestroyObject(35);
  169.     DestroyObject(36);
  170.     DestroyObject(37);
  171.     DestroyObject(38);
  172.     DestroyObject(39);
  173.     DestroyObject(40);
  174.     DestroyObject(41);
  175.     DestroyObject(42);
  176.     DestroyObject(43);
  177.     DestroyObject(44);
  178.     DestroyObject(45);
  179.     DestroyObject(46);
  180.     DestroyObject(47);
  181.     DestroyObject(48);
  182.     DestroyObject(49);
  183.     DestroyObject(50);
  184.     DestroyObject(51);
  185.     DestroyObject(52);
  186.     DestroyObject(53);
  187.     DestroyObject(54);
  188.     DestroyObject(55);
  189.     DestroyObject(56);
  190.     DestroyObject(57);
  191.     DestroyObject(58);
  192.     DestroyObject(59);
  193.     DestroyObject(60);
  194.     DestroyObject(61);
  195.     DestroyObject(62);
  196.     DestroyObject(63);
  197.     DestroyObject(64);
  198.     DestroyObject(65);
  199.     DestroyObject(66);
  200.     DestroyObject(67);
  201.     DestroyObject(68);
  202.     DestroyObject(69);
  203.     DestroyObject(70);
  204.     DestroyObject(71);
  205.     DestroyObject(72);
  206.     DestroyObject(73);
  207.     DestroyObject(74);
  208.     DestroyObject(75);
  209.     DestroyObject(76);
  210.     DestroyObject(77);
  211.     DestroyObject(78);
  212.     DestroyObject(79);
  213.     DestroyObject(80);
  214.     DestroyObject(81);
  215.     DestroyObject(82);
  216.     DestroyObject(83);
  217.     DestroyObject(84);
  218.     DestroyObject(85);
  219.     DestroyObject(86);
  220.     DestroyObject(87);
  221.     DestroyObject(88);
  222.     DestroyObject(89);
  223.     DestroyObject(90);
  224.     DestroyObject(91);
  225.     DestroyObject(92);
  226.     DestroyObject(93);
  227.     DestroyObject(94);
  228.     DestroyObject(95);
  229.     DestroyObject(96);
  230.     DestroyObject(97);
  231.     DestroyObject(98);
  232.     DestroyObject(99);
  233.     DestroyObject(100);
  234.     DestroyObject(101);
  235.     DestroyObject(102);
  236.     DestroyObject(103);
  237.     DestroyObject(104);
  238.     DestroyObject(105);
  239.     DestroyObject(106);
  240.     DestroyObject(107);
  241.     DestroyObject(108);
  242. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  243.     return 1;
  244. }
  245.  
  246. public OnPlayerConnect(playerid)
  247. {
  248. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  249.     SWATv2[playerid] = 0;
  250. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  251.     return 1;
  252. }
  253.  
  254. public OnPlayerCommandText(playerid, cmdtext[])
  255. {
  256. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  257.     if (strcmp("/AbrirCelda", cmdtext, true, 10) == 0)
  258.     {
  259.         MoveObject(CeldaSWATv2,1658.7691650391, -1093.7451171875, 586.24523925781,1.0);
  260.         GetPlayerName(playerid, nombreRolSWATv2, sizeof(nombreRolSWATv2));
  261.         format(RolStringSWATv2, sizeof(RolStringSWATv2), "*%s Coge un Puñado de llaves del bolsillo, Abre la Celda.", nombreRolSWATv2);
  262.         SendClientMessageToAll(0xC2A2DAAA, RolStringSWATv2);
  263.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  264.         return 1;
  265.     }
  266.     if (strcmp("/CerrarCelda", cmdtext, true, 10) == 0)
  267.     {
  268.         MoveObject(CeldaSWATv2,1661.4467773438, -1093.6798095703, 586.24523925781,1.0);
  269.         GetPlayerName(playerid, nombreRolSWATv2, sizeof(nombreRolSWATv2));
  270.         format(RolStringSWATv2, sizeof(RolStringSWATv2), "*%s Coge un Puñado de llaves del bolsillo, Cierra la Celda.", nombreRolSWATv2);
  271.         SendClientMessageToAll(0xC2A2DAAA, RolStringSWATv2);
  272.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  273.         return 1;
  274.     }
  275. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  276.     if (strcmp("/BuySWAT", cmdtext, true, 10) == 0)
  277.       {
  278.         if(IsPlayerInRangeOfPoint(playerid, 3.0, 1655.7837,-1092.6995,585.6096))
  279.         ShowPlayerDialog(playerid, MENUSWATv2, DIALOG_STYLE_LIST, "Armamento de SWAT:", "\nCOGER = Botiquin\nCOGER = Chaleco\nCOGER = M4\nCOGER = MP5\nCOGER = Francotirador\nCOGER = Lentes Vision Nocturna\nCOGER = Granadas\nCOGER = Granadas de Humo\nCOGER = Uniforme \nDEJAR = Armamento \nDEJAR = Uniforme\n", "Seleccionar", "Salir");
  280.         return 1;
  281.     }
  282. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  283.     return 0;
  284. }
  285.  
  286. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  287. {
  288. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  289.     if(dialogid == MENUSWATv2)
  290.     {
  291.         if(response)
  292.         {
  293.             if(listitem == 0) //Botiquin
  294.             {
  295.                SetPlayerHealth(playerid, 50);
  296.                SendClientMessage(playerid,0x0000B2FF,"Has Utilizado el Botiquin Medico. ");
  297.             }
  298.             if(listitem == 1) //Chaleco
  299.             {
  300.                SetPlayerArmour(playerid, 100);
  301.                SendClientMessage(playerid,0x0000B2FF,"Has Cogido un Chaleco del Armario. ");
  302.             }
  303.             if(listitem == 2) //M4
  304.             {
  305.                GivePlayerWeapon(playerid, 31, 1000);
  306.                SendClientMessage(playerid,0x0000B2FF,"Has Cogido una M4 del Armario. ");
  307.             }
  308.             if(listitem == 3) //MP5
  309.             {
  310.                GivePlayerWeapon(playerid, 29, 1000);
  311.                SendClientMessage(playerid,0x0000B2FF,"Has Cogido una MP5 del Armario. ");
  312.             }
  313.             if(listitem == 4) //Francotirador
  314.             {
  315.                GivePlayerWeapon(playerid, 34, 1000);
  316.                SendClientMessage(playerid,0x0000B2FF,"Has Cogido un Francotirador del Armario. ");
  317.             }
  318.             if(listitem == 5) //Lentes Vision Nocturna
  319.             {
  320.                GivePlayerWeapon(playerid, 44, 1);
  321.                SendClientMessage(playerid,0x0000B2FF,"Has Cogido unos Lentes Vision Nocturna del Armario. ");
  322.             }
  323.             if(listitem == 6) //Granadas
  324.             {
  325.                GivePlayerWeapon(playerid, 16, 50);
  326.                SendClientMessage(playerid,0x0000B2FF,"Has Cogido unas Granadas del Armario. ");
  327.             }
  328.             if(listitem == 7) //Granadas de Humo
  329.             {
  330.                GivePlayerWeapon(playerid, 17, 50);
  331.                SendClientMessage(playerid,0x0000B2FF,"Has Cogido unas Granadasde Humo del Armario. ");
  332.             }
  333.             if(listitem == 8) //Uniforme
  334.             {
  335.                skinantiguo[playerid] = GetPlayerSkin(playerid);
  336.                if(skin[playerid] == 1)
  337.             {
  338.                SetPlayerSkin(playerid,285);
  339.             }
  340.                skin[playerid] = 1;
  341.                SendClientMessage(playerid,0x0000B2FF,"Has Cogido el Uniforme de SWAT en el Armario. ");
  342.             }
  343.             if(listitem == 9) //Desarmarse
  344.             {
  345.                ResetPlayerWeapons(playerid);
  346.                SendClientMessage(playerid,0x0000B2FF,"Has Dejado Todas las Armas en el Armario. ");
  347.             }
  348.             if(listitem == 10) //Dejar Uniforme
  349.             {
  350.                SetPlayerSkin(playerid,skinantiguo[playerid]);
  351.                skinantiguo[playerid] = GetPlayerSkin(playerid);
  352.                skin[playerid] = 1;
  353.                SendClientMessage(playerid,0x0000B2FF,"Has Dejado el Uniforme de SWAT en el Armario. ");
  354.             }
  355.         }
  356.         return 1;
  357.     }
  358. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  359.     return 0;
  360. }
  361.  
  362. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  363. {
  364.     return 1;
  365. }
  366.  
  367. public OnPlayerStateChange(playerid, newstate, oldstate)
  368. {
  369. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  370.     new vehicleid = GetPlayerVehicleID(playerid);
  371.     if(newstate == PLAYER_STATE_PASSENGER)
  372.     {
  373.         if (GetVehicleModel(vehicleid) == 427 || GetVehicleModel(vehicleid) == 427)
  374.              {
  375.         if( GetPlayerVehicleSeat(playerid) == 2 || GetPlayerVehicleSeat(playerid) == 3 || GetPlayerVehicleSeat(playerid) == 4)
  376.              {
  377.                 SetPlayerPos(playerid, 1657.7577,-1101.2758,585.6843);
  378.                 SetPlayerFacingAngle(playerid, 0);
  379.                 SetCameraBehindPlayer(playerid);
  380.                 SetPlayerInterior(playerid, 1);
  381.                 SWATv2[playerid] = vehicleid;
  382.             }
  383.         }
  384.     }
  385. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  386.     return 1;
  387. }
  388.  
  389. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  390. {
  391. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  392.     if (newkeys == 16 && SWATv2[playerid] > 0)
  393.     {
  394.         new Float:X,Float:Y,Float:Z;
  395.         GetVehiclePos(SWATv2[playerid], X, Y, Z);
  396.         SetPlayerPos(playerid, X+4, Y, Z);
  397.         SetPlayerInterior(playerid, 0);
  398.         SWATv2[playerid] = 0;
  399.     }
  400. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  401.     return 1;
  402. }
  403.  
  404. public OnPlayerSelectedMenuRow(playerid, row)
  405. {
  406.     return 1;
  407. }
  408.  
  409. public OnVehicleDeath(vehicleid)
  410. {
  411. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  412.     if(GetVehicleModel(vehicleid) == 427)
  413.     {
  414.        for(new i=0; i<MAX_PLAYERS; i++)
  415.       {
  416.          if(SWATv2[i] != 0)
  417.            {
  418.             SetPlayerHealth(i, 0);
  419.             SendClientMessage(i, 0xFFFF00FF, "[ ! ]El Vehiculo se ha Explotado y Todos los Pasajeros Han Muerto.");
  420.          }
  421.       }
  422.    }
  423. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  424.     return 1;
  425. }
  426.  
  427. public OnPlayerDeath(playerid, killerid, reason)
  428. {
  429. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  430.     if(SWATv2[playerid] == 0)
  431.     {
  432.         SWATv2[playerid] = 0;
  433.     }
  434. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  435.     return 1;
  436. }
  437.  
  438. public OnPlayerDisconnect(playerid, reason)
  439. {
  440. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  441.     SWATv2[playerid] = 0;
  442. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  443.     return 1;
  444. }
  445.  
  446. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  447. public QuitarTextArmarioSWATv2()
  448. {
  449.     for(new i; i < MAX_PLAYERS; i++)
  450.     {
  451.         if(IsPlayerInRangeOfPoint(i, 1.0, 1656.192138, -1091.954345, 585.596130))
  452.         {
  453.             TextDrawShowForPlayer(i, ArmarioSWATv2);
  454.         }
  455.         else
  456.         {
  457.             TextDrawHideForPlayer(i, ArmarioSWATv2);
  458.         }
  459.     }
  460.     return 1;
  461. }
  462. /////////// Interior Coche SWATv2 - By - Otacon - ///////////
  463.  
  464. // OTACON
  465. // www.pawnoscripting.com
  466. //--------------------------------------------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement