Advertisement
OtaconEvil

[FS] Interior Coche (NewsVan)

Jul 9th, 2013
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 7.19 KB | None | 0 0
  1.  
  2. // OTACON
  3. // www.pawnoscripting.com
  4. //--------------------------------------------------------------------//
  5.  
  6. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  7. #include <a_samp>
  8. new NewsVan [MAX_PLAYERS];
  9. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  14.     CreateObject(1698, 3068.3342285156, -1414.4543457031, 683.15008544922, 0, 0, 0);
  15.     CreateObject(1698, 3069.6967773438, -1414.4504394531, 683.15008544922, 0, 0, 0);
  16.     CreateObject(1698, 3071.0417480469, -1414.4486083984, 683.15008544922, 0, 0, 0);
  17.     CreateObject(1698, 3068.3410644531, -1411.1444091797, 683.15008544922, 0, 0, 0);
  18.     CreateObject(1698, 3069.6945800781, -1411.1436767578, 683.15008544922, 0, 0, 0);
  19.     CreateObject(1698, 3071.0463867188, -1411.1435546875, 683.15008544922, 0, 0, 0);
  20.     CreateObject(1698, 3068.345703125, -1407.8386230469, 683.15008544922, 0, 0, 0);
  21.     CreateObject(1698, 3069.6962890625, -1407.8564453125, 683.15008544922, 0, 0, 0);
  22.     CreateObject(1698, 3071.0541992188, -1407.8840332031, 683.15008544922, 0, 0, 0);
  23.     CreateObject(16000, 3069.4885253906, -1415.4748535156, 676.15216064453, 0, 0, 0);
  24.     CreateObject(16000, 3067.9562988281, -1407.2806396484, 676.22821044922, 0, 0, 179.25);
  25.     CreateObject(16000, 3067.7644042969, -1411.2316894531, 676.15179443359, 0, 0, 270.24993896484);
  26.     CreateObject(16000, 3071.3635253906, -1410.1544189453, 676.25164794922, 0, 0, 89.997192382813);
  27.     CreateObject(1537, 3069.5451660156, -1407.3382568359, 683.25085449219, 0, 0, 358.75);
  28.     CreateObject(1537, 3071.0458984375, -1407.3680419922, 683.25067138672, 0, 0, 358.49743652344);
  29.     CreateObject(2911, 3069.0639648438, -1415.4963378906, 683.27600097656, 0, 0, 0);
  30.     CreateObject(14391, 3067.7592773438, -1412.2403564453, 684.21954345703, 0, 0, 0);
  31.     CreateObject(1671, 3069.3801269531, -1413.0709228516, 683.73590087891, 0, 0, 270);
  32.     CreateObject(2606, 3067.5502929688, -1410.4261474609, 684.74285888672, 0, 0, 90);
  33.     CreateObject(2606, 3067.5517578125, -1410.4252929688, 685.25067138672, 0, 0, 90);
  34.     CreateObject(2606, 3067.5500488281, -1412.3979492188, 684.7431640625, 0, 0, 90);
  35.     CreateObject(2606, 3067.5769042969, -1412.4020996094, 685.25219726563, 0, 0, 90);
  36.     CreateObject(2606, 3067.5834960938, -1414.38671875, 685.26019287109, 0, 0, 90);
  37.     CreateObject(2606, 3067.5583496094, -1414.4038085938, 684.74359130859, 0, 0, 90);
  38.     CreateObject(2291, 3070.8657226563, -1414.4462890625, 683.27569580078, 0, 0, 270);
  39.     CreateObject(2291, 3070.876953125, -1413.5222167969, 683.27569580078, 0, 0, 269.99450683594);
  40.     CreateObject(3388, 3071.5925292969, -1409.2186279297, 682.97540283203, 0, 0, 359.75);
  41.     CreateObject(3386, 3071.5793457031, -1408.1958007813, 682.97540283203, 0, 0, 0);
  42.     CreateObject(3386, 3071.5822753906, -1410.2225341797, 682.97540283203, 0, 0, 359.75);
  43.     CreateObject(1671, 3069.3703613281, -1410.6733398438, 683.73590087891, 0, 0, 270);
  44.     CreateObject(14532, 3068.1079101563, -1408.1212158203, 684.25842285156, 0, 0, 270);
  45.     CreateObject(16782, 3071.2434082031, -1412.1335449219, 684.66906738281, 0, 0, 180);
  46.     CreateObject(2686, 3070.7404785156, -1415.4128417969, 684.83087158203, 0, 0, 180);
  47.     CreateObject(2684, 3068.6579589844, -1415.4260253906, 685.08966064453, 0, 0, 180.50004577637);
  48.     CreateObject(18049, 3089.6213378906, -1414.90234375, 682.16247558594, 0, 0, 0);
  49.  /////////// Interior  (NewsVan)- By - Otacon - ///////////
  50.     return 1;
  51. }
  52.  
  53. public OnFilterScriptExit()
  54. {
  55. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  56.     print("  ==== Interior  (NewsVan) Descargado ======");
  57.     DestroyObject(1);
  58.     DestroyObject(2);
  59.     DestroyObject(3);
  60.     DestroyObject(4);
  61.     DestroyObject(5);
  62.     DestroyObject(6);
  63.     DestroyObject(7);
  64.     DestroyObject(8);
  65.     DestroyObject(9);
  66.     DestroyObject(10);
  67.     DestroyObject(11);
  68.     DestroyObject(12);
  69.     DestroyObject(13);
  70.     DestroyObject(14);
  71.     DestroyObject(15);
  72.     DestroyObject(16);
  73.     DestroyObject(17);
  74.     DestroyObject(18);
  75.     DestroyObject(19);
  76.     DestroyObject(20);
  77.     DestroyObject(21);
  78.     DestroyObject(22);
  79.     DestroyObject(23);
  80.     DestroyObject(24);
  81.     DestroyObject(25);
  82.     DestroyObject(26);
  83.     DestroyObject(27);
  84.     DestroyObject(28);
  85.     DestroyObject(29);
  86.     DestroyObject(30);
  87.     DestroyObject(30);
  88.     DestroyObject(31);
  89.     DestroyObject(32);
  90.     DestroyObject(33);
  91.     DestroyObject(34);
  92.     DestroyObject(35);
  93. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  94.     return 1;
  95. }
  96.  
  97. main()
  98. {
  99.     print(" +-----------------------------+");
  100.     print(" |    - Interior (NewsVan) -   |");
  101.     print(" |    Realizado Por: Otacon    |");
  102.     print(" |    www.pawnoscripting.com   |");
  103.     print(" +-----------------------------+");
  104. }
  105.  
  106. public OnPlayerConnect(playerid)
  107. {
  108. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  109.     NewsVan[playerid] = 0;
  110. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  111.     return 1;
  112. }
  113.  
  114. public OnPlayerStateChange(playerid, newstate, oldstate)
  115. {
  116. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  117.     new vehicleid = GetPlayerVehicleID(playerid);
  118.     if(newstate == PLAYER_STATE_PASSENGER)
  119.     {
  120.         if (GetVehicleModel(vehicleid) == 582 || GetVehicleModel(vehicleid) == 582)
  121.              {
  122.         if( GetPlayerVehicleSeat(playerid) == 2 || GetPlayerVehicleSeat(playerid) == 3 || GetPlayerVehicleSeat(playerid) == 4)
  123.              {
  124.                 SetPlayerPos(playerid, 3069.4338378906,-1409.4283447266, 684.71002197266);
  125.                 SetPlayerFacingAngle(playerid, 0);
  126.                 SetCameraBehindPlayer(playerid);
  127.                 SetPlayerInterior(playerid, 1);
  128.                 NewsVan[playerid] = vehicleid;
  129.              }
  130.          }
  131.     }
  132. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  133.     return 1;
  134. }
  135.  
  136. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  137. {
  138. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  139.     if (newkeys == 16 && NewsVan[playerid] > 0)
  140.     {
  141.         new Float:X,Float:Y,Float:Z;
  142.         GetVehiclePos(NewsVan[playerid], X, Y, Z);
  143.         SetPlayerPos(playerid, X+4, Y, Z);
  144.         SetPlayerInterior(playerid, 0);
  145.         NewsVan[playerid] = 0;
  146.     }
  147. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  148.     return 1;
  149. }
  150.  
  151. public OnVehicleDeath(vehicleid)
  152. {
  153. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  154.     if(GetVehicleModel(vehicleid) == 582)
  155.     {
  156.        for(new i=0; i<MAX_PLAYERS; i++)
  157.       {
  158.          if(NewsVan[i] != 0)
  159.            {
  160.             SetPlayerHealth(i, 0);
  161.             SendClientMessage(i, 0xFFFF00FF, "[ ! ]El Vehiculo se ha Explotado y Todos los Pasajeros Han Muerto.");
  162.          }
  163.       }
  164.    }
  165. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  166.     return 1;
  167. }
  168.  
  169. public OnPlayerDeath(playerid, killerid, reason)
  170. {
  171. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  172.     if(NewsVan[playerid] == 0)
  173.     {
  174.         NewsVan[playerid] = 0;
  175.     }
  176. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  177.     return 1;
  178. }
  179.  
  180. public OnPlayerDisconnect(playerid, reason)
  181. {
  182. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  183.     NewsVan[playerid] = 0;
  184. /////////// Interior  (NewsVan)- By - Otacon - ///////////
  185.     return 1;
  186. }
  187.  
  188. // OTACON
  189. // www.pawnoscripting.com
  190. //--------------------------------------------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement