Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // OTACON
- // www.pawnoscripting.com
- //--------------------------------------------------------------------//
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- #include <a_samp>
- #define MENUSWATv2 41237
- forward QuitarTextArmarioSWATv2();
- new Text:ArmarioSWATv2;
- new CeldaSWATv2;
- new RolStringSWATv2[128];
- new nombreRolSWATv2[MAX_PLAYER_NAME];
- new skinantiguo[MAX_PLAYERS];
- new skin[MAX_PLAYERS];
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- new SWATv2 [MAX_PLAYERS];
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- public OnFilterScriptInit()
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- ArmarioSWATv2 = TextDrawCreate(202.000000, 276.000000, "~y~Armario SWAT ~w~Escribe: ~r~/BuySWAT");
- TextDrawBackgroundColor(ArmarioSWATv2, 255);
- TextDrawFont(ArmarioSWATv2, 1);
- TextDrawLetterSize(ArmarioSWATv2, 0.410000, 1.400000);
- TextDrawColor(ArmarioSWATv2, -1);
- TextDrawSetOutline(ArmarioSWATv2, 0);
- TextDrawSetProportional(ArmarioSWATv2, 1);
- TextDrawSetShadow(ArmarioSWATv2, 1);
- TextDrawUseBox(ArmarioSWATv2, 1);
- TextDrawBoxColor(ArmarioSWATv2, 255);
- TextDrawTextSize(ArmarioSWATv2, 384.000000, -9.000000);
- SetTimer("QuitarTextArmarioSWATv2", 500, true);
- AddStaticPickup(1239,2,1655.7837,-1092.6995,585.6096, 0);
- CreateObject(3069, 1657.654296875, -1102.2470703125, 584.69689941406, 353.24890136719, 0.7525634765625, 2.08740234375);
- CreateObject(1698, 1660.5479736328, -1100.4654541016, 585.27618408203, 0.011016845703125, 270.25, 1.7500915527344);
- CreateObject(1698, 1660.5541992188, -1100.4665527344, 586.60571289063, 0.010986328125, 270.24682617188, 1.746826171875);
- CreateObject(1698, 1660.4660644531, -1097.2126464844, 585.25390625, 0.011016845703125, 270.25, 1.7500915527344);
- CreateObject(1698, 1660.4477539063, -1097.2113037109, 586.60900878906, 0.010986328125, 270.24719238281, 1.746826171875);
- CreateObject(1698, 1660.3889160156, -1094.1195068359, 585.24206542969, 0.010986328125, 270.24719238281, 1.746826171875);
- CreateObject(1698, 1660.380859375, -1094.134765625, 586.59698486328, 0.0054931640625, 270.24719238281, 1.746826171875);
- CreateObject(1698, 1660.330078125, -1091.84765625, 585.23651123047, 0.0054931640625, 270.24719238281, 1.746826171875);
- CreateObject(1698, 1660.328125, -1091.8505859375, 586.59143066406, 0.0054931640625, 270.24719238281, 1.746826171875);
- CreateObject(1698, 1660.5653076172, -1100.4541015625, 587.93560791016, 0.010986328125, 270.24719238281, 1.746826171875);
- CreateObject(1698, 1660.4370117188, -1097.1437988281, 587.93890380859, 0.010986328125, 270.24719238281, 1.746826171875);
- CreateObject(1698, 1660.3555908203, -1093.8967285156, 587.92700195313, 0.011016845703125, 270.25, 1.7500915527344);
- CreateObject(1698, 1660.3172607422, -1091.8551025391, 587.92132568359, 0.010986328125, 270.24719238281, 1.746826171875);
- CreateObject(1698, 1658.6025390625, -1090.3408203125, 585.22155761719, 0.0054931640625, 270.24169921875, 91.741333007813);
- CreateObject(1698, 1658.6298828125, -1090.3876953125, 586.57641601563, 0.0054931640625, 270.24145507813, 91.741333007813);
- CreateObject(1698, 1658.6325683594, -1090.3814697266, 587.93139648438, 0, 270.23620605469, 91.73583984375);
- CreateObject(1698, 1656.0322265625, -1090.4453125, 585.22448730469, 0.0054931640625, 270.24719238281, 91.488647460938);
- CreateObject(1698, 1656.04296875, -1090.4541015625, 586.57940673828, 0, 270.23620605469, 91.73583984375);
- CreateObject(1698, 1656.0314941406, -1090.4520263672, 587.92059326172, 0.004425048828125, 270.24145507813, 91.491424560547);
- CreateObject(1698, 1658.7579345703, -1101.9099121094, 585.24798583984, 0, 270.23657226563, 271.48864746094);
- CreateObject(1698, 1658.7592773438, -1101.9200439453, 586.60296630859, 0, 270.23620605469, 271.48864746094);
- CreateObject(1698, 1658.7587890625, -1101.919921875, 586.60296630859, 0, 270.23620605469, 271.48864746094);
- CreateObject(1698, 1658.7587890625, -1101.919921875, 586.60296630859, 0, 270.23620605469, 271.48864746094);
- CreateObject(1698, 1658.7612304688, -1101.9332275391, 587.93286132813, 0, 270.23620605469, 271.48864746094);
- CreateObject(1698, 1656.2629394531, -1101.9788818359, 585.25543212891, 0, 270.23620605469, 271.48864746094);
- CreateObject(1698, 1656.2629394531, -1101.9647216797, 586.61041259766, 0, 270.23620605469, 271.48864746094);
- CreateObject(1698, 1656.259765625, -1101.9711914063, 587.94036865234, 0, 270.23620605469, 271.48864746094);
- CreateObject(1698, 1654.9349365234, -1100.3779296875, 585.29913330078, 359.8955078125, 92.998260498047, 1.252685546875);
- CreateObject(1698, 1655.001953125, -1100.3714599609, 586.59033203125, 359.89013671875, 92.993774414063, 1.25244140625);
- CreateObject(1698, 1655.0747070313, -1100.3612060547, 587.85620117188, 359.89013671875, 92.993774414063, 1.25244140625);
- CreateObject(1698, 1654.84765625, -1097.0655517578, 585.26647949219, 359.89013671875, 92.993774414063, 1.25244140625);
- CreateObject(1698, 1654.84765625, -1097.0654296875, 585.26647949219, 359.89013671875, 92.993774414063, 1.25244140625);
- CreateObject(1698, 1654.9229736328, -1097.0631103516, 586.58227539063, 359.89013671875, 92.993774414063, 1.25244140625);
- CreateObject(1698, 1654.994140625, -1097.056640625, 587.84820556641, 359.88464355469, 92.993774414063, 1.2469482421875);
- CreateObject(1698, 1654.76171875, -1093.755859375, 585.25427246094, 359.88464355469, 92.993774414063, 1.2469482421875);
- CreateObject(1698, 1654.84375, -1093.759765625, 586.56976318359, 359.88464355469, 92.993774414063, 1.2469482421875);
- CreateObject(1698, 1654.92578125, -1093.7587890625, 587.83514404297, 359.88464355469, 92.993774414063, 1.2469482421875);
- CreateObject(1698, 1654.73046875, -1092.2724609375, 585.25012207031, 359.88464355469, 92.993774414063, 1.2469482421875);
- CreateObject(1698, 1654.7578125, -1091.8896484375, 586.01409912109, 359.88464355469, 92.993774414063, 1.2469482421875);
- CreateObject(1698, 1654.830078125, -1091.5791015625, 587.10650634766, 359.88464355469, 92.993774414063, 0.999755859375);
- CreateObject(1698, 1654.8802490234, -1090.9317626953, 587.81646728516, 359.84545898438, 92.992004394531, 1.2507019042969);
- CreateObject(1537, 1657.7142333984, -1101.7696533203, 584.66937255859, 0, 0, 180.5);
- CreateObject(1537, 1656.2219238281, -1101.8199462891, 584.65924072266, 0, 0, 181.49719238281);
- CreateObject(1698, 1659.3564453125, -1101.6883544922, 585.26782226563, 0, 270, 1.9969177246094);
- CreateObject(1698, 1659.3302001953, -1101.6650390625, 586.59777832031, 0, 270, 1.9940185546875);
- CreateObject(1698, 1659.3413085938, -1101.6612548828, 587.927734375, 0, 270, 1.9940185546875);
- CreateObject(1698, 1660.7966308594, -1100.0570068359, 584.76190185547, 0, 270.23657226563, 271.23864746094);
- CreateObject(1698, 1660.7938232422, -1100.0501708984, 585.99157714844, 0, 268.49987792969, 271.23596191406);
- CreateObject(1698, 1660.7668457031, -1100.0417480469, 587.27117919922, 0, 269.74975585938, 271.23046875);
- CreateObject(1698, 1660.7712402344, -1100.0501708984, 588.07580566406, 0, 269.74731445313, 271.23046875);
- CreateObject(1698, 1654.583984375, -1100.1524658203, 585.32312011719, 0, 270.23620605469, 271.23596191406);
- CreateObject(1698, 1654.6180419922, -1100.1657714844, 586.65295410156, 0, 270.23620605469, 271.23596191406);
- CreateObject(1698, 1654.6202392578, -1100.1712646484, 587.98291015625, 0, 270.23620605469, 271.23596191406);
- CreateObject(1698, 1656.25, -1101.7249755859, 587.97082519531, 0.018341064453125, 89.500274658203, 1.2463684082031);
- CreateObject(1698, 1656.2442626953, -1101.7310791016, 586.61535644531, 0.0164794921875, 89.500122070313, 1.241455078125);
- CreateObject(1698, 1656.2199707031, -1101.7384033203, 585.24536132813, 0.0164794921875, 89.500122070313, 1.241455078125);
- CreateObject(1698, 1660.1639404297, -1098.4346923828, 585.14587402344, 0, 0, 1.5);
- CreateObject(1698, 1660.0864257813, -1095.1408691406, 585.13159179688, 0, 0, 1.4996337890625);
- CreateObject(1698, 1655.1137695313, -1098.3970947266, 585.12261962891, 0, 0, 1.2496337890625);
- CreateObject(1698, 1655.03515625, -1095.095703125, 585.13543701172, 0, 0, 1.4996337890625);
- CreateObject(1698, 1660.9753417969, -1093.5364990234, 584.55419921875, 0, 268.49487304688, 271.23046875);
- CreateObject(1698, 1653.9738769531, -1093.5400390625, 584.56439208984, 0, 268.49487304688, 271.23046875);
- CreateObject(1698, 1659.5205078125, -1095.15625, 584.56335449219, 0.0054931640625, 270.24169921875, 1.494140625);
- CreateObject(1698, 1659.6063232422, -1098.4832763672, 584.576171875, 0.010986328125, 270.24719238281, 1.746826171875);
- CreateObject(1698, 1655.6644287109, -1098.4138183594, 584.56604003906, 359.8955078125, 92.998260498047, 1.252685546875);
- CreateObject(1698, 1655.5869140625, -1095.1142578125, 584.57940673828, 359.8955078125, 92.998260498047, 1.252685546875);
- CreateObject(2058, 1655.1477050781, -1098.7028808594, 587.37701416016, 0, 96, 0);
- CreateObject(2058, 1655.1247558594, -1097.15234375, 587.37506103516, 0, 93.999938964844, 0);
- CreateObject(2058, 1655.078125, -1095.6708984375, 587.32073974609, 0, 96, 0);
- CreateObject(3069, 1657.9097900391, -1101.9885253906, 588.97332763672, 350.74841308594, 359.74401855469, 1.9577941894531);
- CreateObject(957, 1659.607421875, -1094.7314453125, 588.17028808594, 0, 0, 0);
- CreateObject(957, 1659.6733398438, -1096.6677246094, 588.17413330078, 0, 0, 0);
- CreateObject(957, 1659.7551269531, -1098.5635986328, 588.18389892578, 0, 0, 0);
- CreateObject(957, 1655.6730957031, -1094.9555664063, 588.16772460938, 0, 0, 0);
- CreateObject(957, 1655.7092285156, -1096.9077148438, 588.18371582031, 0, 0, 0);
- CreateObject(957, 1655.7596435547, -1098.7646484375, 588.17016601563, 0, 0, 0);
- CreateObject(2110, 1658.48828125, -1090.6062011719, 584.37524414063, 0, 0, 2);
- CreateObject(964, 1655.5721435547, -1091.1951904297, 584.59478759766, 0, 0, 1);
- CreateObject(964, 1655.5749511719, -1091.1846923828, 585.53552246094, 0, 0, 0.999755859375);
- CreateObject(964, 1656.9943847656, -1091.1339111328, 584.57635498047, 0, 0, 0.999755859375);
- CreateObject(964, 1657.0086669922, -1091.1538085938, 585.54211425781, 0, 0, 0.999755859375);
- CreateObject(964, 1655.5655517578, -1091.1535644531, 586.47625732422, 0, 0, 0.999755859375);
- CreateObject(964, 1656.9925537109, -1091.1315917969, 586.48284912109, 0, 0, 0.999755859375);
- CreateObject(2167, 1654.9484863281, -1092.6193847656, 585.14459228516, 0, 0, 90.5);
- CreateObject(3015, 1655.1079101563, -1092.4320068359, 586.66662597656, 0, 0, 0);
- CreateObject(3015, 1655.1104736328, -1092.8538818359, 586.66662597656, 0, 0, 0);
- CeldaSWATv2 = CreateObject(10252, 1661.4467773438, -1093.6798095703, 586.24523925781, 0, 0, 181.23864746094);
- CreateObject(10252, 1658.3985595703, -1089.3889160156, 586.24346923828, 0, 0, 271.73596191406);
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 1;
- }
- public OnFilterScriptExit()
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- print(" ==== Interior Coche SWATv2 Descargado ======");
- DestroyObject(1);
- DestroyObject(2);
- DestroyObject(3);
- DestroyObject(4);
- DestroyObject(5);
- DestroyObject(6);
- DestroyObject(7);
- DestroyObject(8);
- DestroyObject(9);
- DestroyObject(10);
- DestroyObject(11);
- DestroyObject(12);
- DestroyObject(13);
- DestroyObject(14);
- DestroyObject(15);
- DestroyObject(16);
- DestroyObject(17);
- DestroyObject(18);
- DestroyObject(19);
- DestroyObject(20);
- DestroyObject(21);
- DestroyObject(22);
- DestroyObject(23);
- DestroyObject(24);
- DestroyObject(25);
- DestroyObject(26);
- DestroyObject(27);
- DestroyObject(28);
- DestroyObject(29);
- DestroyObject(30);
- DestroyObject(31);
- DestroyObject(32);
- DestroyObject(33);
- DestroyObject(34);
- DestroyObject(35);
- DestroyObject(36);
- DestroyObject(37);
- DestroyObject(38);
- DestroyObject(39);
- DestroyObject(40);
- DestroyObject(41);
- DestroyObject(42);
- DestroyObject(43);
- DestroyObject(44);
- DestroyObject(45);
- DestroyObject(46);
- DestroyObject(47);
- DestroyObject(48);
- DestroyObject(49);
- DestroyObject(50);
- DestroyObject(51);
- DestroyObject(52);
- DestroyObject(53);
- DestroyObject(54);
- DestroyObject(55);
- DestroyObject(56);
- DestroyObject(57);
- DestroyObject(58);
- DestroyObject(59);
- DestroyObject(60);
- DestroyObject(61);
- DestroyObject(62);
- DestroyObject(63);
- DestroyObject(64);
- DestroyObject(65);
- DestroyObject(66);
- DestroyObject(67);
- DestroyObject(68);
- DestroyObject(69);
- DestroyObject(70);
- DestroyObject(71);
- DestroyObject(72);
- DestroyObject(73);
- DestroyObject(74);
- DestroyObject(75);
- DestroyObject(76);
- DestroyObject(77);
- DestroyObject(78);
- DestroyObject(79);
- DestroyObject(80);
- DestroyObject(81);
- DestroyObject(82);
- DestroyObject(83);
- DestroyObject(84);
- DestroyObject(85);
- DestroyObject(86);
- DestroyObject(87);
- DestroyObject(88);
- DestroyObject(89);
- DestroyObject(90);
- DestroyObject(91);
- DestroyObject(92);
- DestroyObject(93);
- DestroyObject(94);
- DestroyObject(95);
- DestroyObject(96);
- DestroyObject(97);
- DestroyObject(98);
- DestroyObject(99);
- DestroyObject(100);
- DestroyObject(101);
- DestroyObject(102);
- DestroyObject(103);
- DestroyObject(104);
- DestroyObject(105);
- DestroyObject(106);
- DestroyObject(107);
- DestroyObject(108);
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- SWATv2[playerid] = 0;
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- if (strcmp("/AbrirCelda", cmdtext, true, 10) == 0)
- {
- MoveObject(CeldaSWATv2,1658.7691650391, -1093.7451171875, 586.24523925781,1.0);
- GetPlayerName(playerid, nombreRolSWATv2, sizeof(nombreRolSWATv2));
- format(RolStringSWATv2, sizeof(RolStringSWATv2), "*%s Coge un Puñado de llaves del bolsillo, Abre la Celda.", nombreRolSWATv2);
- SendClientMessageToAll(0xC2A2DAAA, RolStringSWATv2);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- return 1;
- }
- if (strcmp("/CerrarCelda", cmdtext, true, 10) == 0)
- {
- MoveObject(CeldaSWATv2,1661.4467773438, -1093.6798095703, 586.24523925781,1.0);
- GetPlayerName(playerid, nombreRolSWATv2, sizeof(nombreRolSWATv2));
- format(RolStringSWATv2, sizeof(RolStringSWATv2), "*%s Coge un Puñado de llaves del bolsillo, Cierra la Celda.", nombreRolSWATv2);
- SendClientMessageToAll(0xC2A2DAAA, RolStringSWATv2);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- return 1;
- }
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- if (strcmp("/BuySWAT", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1655.7837,-1092.6995,585.6096))
- 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");
- return 1;
- }
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- if(dialogid == MENUSWATv2)
- {
- if(response)
- {
- if(listitem == 0) //Botiquin
- {
- SetPlayerHealth(playerid, 50);
- SendClientMessage(playerid,0x0000B2FF,"Has Utilizado el Botiquin Medico. ");
- }
- if(listitem == 1) //Chaleco
- {
- SetPlayerArmour(playerid, 100);
- SendClientMessage(playerid,0x0000B2FF,"Has Cogido un Chaleco del Armario. ");
- }
- if(listitem == 2) //M4
- {
- GivePlayerWeapon(playerid, 31, 1000);
- SendClientMessage(playerid,0x0000B2FF,"Has Cogido una M4 del Armario. ");
- }
- if(listitem == 3) //MP5
- {
- GivePlayerWeapon(playerid, 29, 1000);
- SendClientMessage(playerid,0x0000B2FF,"Has Cogido una MP5 del Armario. ");
- }
- if(listitem == 4) //Francotirador
- {
- GivePlayerWeapon(playerid, 34, 1000);
- SendClientMessage(playerid,0x0000B2FF,"Has Cogido un Francotirador del Armario. ");
- }
- if(listitem == 5) //Lentes Vision Nocturna
- {
- GivePlayerWeapon(playerid, 44, 1);
- SendClientMessage(playerid,0x0000B2FF,"Has Cogido unos Lentes Vision Nocturna del Armario. ");
- }
- if(listitem == 6) //Granadas
- {
- GivePlayerWeapon(playerid, 16, 50);
- SendClientMessage(playerid,0x0000B2FF,"Has Cogido unas Granadas del Armario. ");
- }
- if(listitem == 7) //Granadas de Humo
- {
- GivePlayerWeapon(playerid, 17, 50);
- SendClientMessage(playerid,0x0000B2FF,"Has Cogido unas Granadasde Humo del Armario. ");
- }
- if(listitem == 8) //Uniforme
- {
- skinantiguo[playerid] = GetPlayerSkin(playerid);
- if(skin[playerid] == 1)
- {
- SetPlayerSkin(playerid,285);
- }
- skin[playerid] = 1;
- SendClientMessage(playerid,0x0000B2FF,"Has Cogido el Uniforme de SWAT en el Armario. ");
- }
- if(listitem == 9) //Desarmarse
- {
- ResetPlayerWeapons(playerid);
- SendClientMessage(playerid,0x0000B2FF,"Has Dejado Todas las Armas en el Armario. ");
- }
- if(listitem == 10) //Dejar Uniforme
- {
- SetPlayerSkin(playerid,skinantiguo[playerid]);
- skinantiguo[playerid] = GetPlayerSkin(playerid);
- skin[playerid] = 1;
- SendClientMessage(playerid,0x0000B2FF,"Has Dejado el Uniforme de SWAT en el Armario. ");
- }
- }
- return 1;
- }
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- new vehicleid = GetPlayerVehicleID(playerid);
- if(newstate == PLAYER_STATE_PASSENGER)
- {
- if (GetVehicleModel(vehicleid) == 427 || GetVehicleModel(vehicleid) == 427)
- {
- if( GetPlayerVehicleSeat(playerid) == 2 || GetPlayerVehicleSeat(playerid) == 3 || GetPlayerVehicleSeat(playerid) == 4)
- {
- SetPlayerPos(playerid, 1657.7577,-1101.2758,585.6843);
- SetPlayerFacingAngle(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 1);
- SWATv2[playerid] = vehicleid;
- }
- }
- }
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- if (newkeys == 16 && SWATv2[playerid] > 0)
- {
- new Float:X,Float:Y,Float:Z;
- GetVehiclePos(SWATv2[playerid], X, Y, Z);
- SetPlayerPos(playerid, X+4, Y, Z);
- SetPlayerInterior(playerid, 0);
- SWATv2[playerid] = 0;
- }
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid)
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- if(GetVehicleModel(vehicleid) == 427)
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(SWATv2[i] != 0)
- {
- SetPlayerHealth(i, 0);
- SendClientMessage(i, 0xFFFF00FF, "[ ! ]El Vehiculo se ha Explotado y Todos los Pasajeros Han Muerto.");
- }
- }
- }
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- if(SWATv2[playerid] == 0)
- {
- SWATv2[playerid] = 0;
- }
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- SWATv2[playerid] = 0;
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- return 1;
- }
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- public QuitarTextArmarioSWATv2()
- {
- for(new i; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerInRangeOfPoint(i, 1.0, 1656.192138, -1091.954345, 585.596130))
- {
- TextDrawShowForPlayer(i, ArmarioSWATv2);
- }
- else
- {
- TextDrawHideForPlayer(i, ArmarioSWATv2);
- }
- }
- return 1;
- }
- /////////// Interior Coche SWATv2 - By - Otacon - ///////////
- // OTACON
- // www.pawnoscripting.com
- //--------------------------------------------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement