Advertisement
Guest User

[ FS ] Interior para Ambulâncias

a guest
May 18th, 2012
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.69 KB | None | 0 0
  1. /* Créditos ao Criador do FS - Amit |e| editor: Welton_Ranger.. Bom para servidor RPG/RP
  2. Esse FilterScript, não faz parte de nenhum site, ou sera postado em algum site, só sera postado aqui mesmo no forum samp....- Façam bom uso dele. :D   - Em breve irei criar meu proprio FS - Só estou esperando que a preguiça saia de mim para que eu possa criar um FS.... */
  3. #include <a_samp>
  4.  
  5. new InAmbu[MAX_PLAYERS];
  6. new Watching[MAX_PLAYERS];
  7. new Goto[MAX_PLAYERS];
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.     /// AMBULÂNCIA INTERIOR
  12.        CreateObject(1698, 2002.0, 2285.0, 1010.0, 0.0, 0.0, 0.0);
  13.     CreateObject(1698, 2003.36, 2285.0, 1010.0, 0.0, 0.0, 0.0);
  14.     CreateObject(1698, 2004.72, 2285.0, 1010.0, 0.0, 0.0, 0.0);
  15.     CreateObject(1698, 2002.0, 2288.3, 1010.0, 0.0, 0.0, 0.0);
  16.     CreateObject(1698, 2003.36, 2288.3, 1010.0, 0.0, 0.0, 0.0);
  17.     CreateObject(1698, 2004.72, 2288.3, 1010.0, 0.0, 0.0, 0.0);
  18.     CreateObject(3386, 2001.58, 2285.75, 1010.1, 0.0, 0.0, 180.0);
  19.     CreateObject(3388, 2001.58, 2284.8, 1010.1, 0.0, 0.0, 180.0);
  20.     CreateObject(2146, 2003.3, 2286.4, 1010.6, 0.0, 0.0, 0.0);
  21.     CreateObject(16000, 2001.3, 2281.0, 1007.5, 0.0, 0.0, 270.0);
  22.     CreateObject(16000, 2005.4, 2281.0, 1007.5, 0.0, 0.0, 90.0);
  23.     CreateObject(18049, 2006.0, 2279.5, 1013.05, 0.0, 0.0, 90.0);
  24.     CreateObject(2639, 2005.0, 2285.55, 1010.7, 0.0, 0.0, 90.0);
  25.     CreateObject(3791, 2005.3, 2288.25, 1012.4, 270.0, 0.0, 90.0);
  26.     CreateObject(2174, 2001.7, 2286.74, 1010.1, 0.0, 0.0, 90.0);
  27.     CreateObject(2690, 2001.41, 2287.0, 1011.25, 0.0, 0.0, 90.0);
  28.     CreateObject(2163, 2001.3, 2286.84, 1011.9, 0.0, 0.0, 90.0);
  29.     CreateObject(1789, 2005.1, 2284.1, 1010.7, 0.0, 0.0, 270.0);
  30.     CreateObject(1369, 2001.85, 2283.85, 1010.7, 0.0, 0.0, 90.0);
  31.     CreateObject(3384, 2001.9, 2288.85, 1011.1, 0.0, 0.0, 180.0);
  32.     CreateObject(3395, 2005.3, 2288.32, 1010.05, 0.0, 0.0, 0.0);
  33.         CreateObject(11469, 2008.6, 2294.5, 1010.1, 0.0, 0.0, 90.0);
  34.         CreateObject(2154, 2001.55, 2289.75, 1010.0, 0.0, 0.0, 90.0);
  35.         CreateObject(2741, 2001.4, 2289.65, 1012.0, 0.0, 0.0, 90.0);
  36.         CreateObject(2685, 2001.35, 2289.65, 1011.5, 0.0, 0.0, 90.0);
  37.         CreateObject(18056, 2005.4, 2290.4, 1011.9, 0.0, 0.0, 180.0);
  38.         CreateObject(2688, 2001.4, 2283.85, 1012.0, 0.0, 0.0, 90.0);
  39.         CreateObject(2687, 2005.35, 2286.0, 1012.0, 0.0, 0.0, 270.0);
  40.         CreateObject(16000, 2006.5, 2290.0, 1020.0, 0.0, 180.0, 180.0);
  41.         CreateObject(16000, 1991.0, 2283.4, 1016.0, 0.0, 90.0, 0.0);
  42.         CreateObject(16000, 2015.7, 2283.4, 1016.0, 0.0, 270.0, 0.0);
  43.         CreateObject(1719, 2005.0, 2284.1, 1010.6, 0.0, 0.0, 270.0);
  44.         CreateObject(1718, 2005.1, 2284.1, 1010.73, 0.0, 0.0, 270.0);
  45.         CreateObject(1785, 2005.1, 2284.1, 1010.95, 0.0, 0.0, 270.0);
  46.         CreateObject(1783, 2005.05, 2284.1, 1010.4, 0.0, 0.0, 270.0);
  47. }
  48.  
  49. public OnFilterScriptExit()
  50. {
  51.     DestroyObject(1);
  52.     DestroyObject(2);
  53.     DestroyObject(3);
  54.     DestroyObject(4);
  55.     DestroyObject(5);
  56.     DestroyObject(6);
  57.     DestroyObject(7);
  58.     DestroyObject(8);
  59.     DestroyObject(9);
  60.     DestroyObject(10);
  61.     DestroyObject(11);
  62.     DestroyObject(12);
  63.     DestroyObject(13);
  64.     DestroyObject(14);
  65.     DestroyObject(15);
  66.     DestroyObject(16);
  67.     DestroyObject(17);
  68.     DestroyObject(18);
  69.     DestroyObject(19);
  70.     DestroyObject(20);
  71.     DestroyObject(21);
  72.     DestroyObject(22);
  73.     DestroyObject(23);
  74.     DestroyObject(24);
  75.     DestroyObject(25);
  76.     DestroyObject(26);
  77.     DestroyObject(27);
  78.     DestroyObject(28);
  79.     DestroyObject(29);
  80.     DestroyObject(30);
  81.     DestroyObject(31);
  82.     DestroyObject(32);
  83.     DestroyObject(33);
  84.     DestroyObject(34);
  85.     DestroyObject(35);
  86. }
  87.  
  88. public OnPlayerConnect(playerid)
  89. {
  90.     InAmbu[playerid] = 0;
  91.     Watching[playerid] = 0;
  92.     Goto[playerid] = 0;
  93.     return 1;
  94. }
  95.  
  96. public OnPlayerDisconnect(playerid, reason)
  97. {
  98.     InAmbu[playerid] = 0;
  99.     Watching[playerid] = 0;
  100.     Goto[playerid] = 0;
  101.     return 1;
  102. }
  103.  
  104. public OnPlayerDeath(playerid, killerid, reason)
  105. {
  106.     InAmbu[playerid] = 0;
  107.     Watching[playerid] = 0;
  108.     Goto[playerid] = 0;
  109.     return 1;
  110. }
  111.  
  112. public OnPlayerStateChange(playerid, newstate, oldstate)
  113. {
  114.     if(newstate == PLAYER_STATE_PASSENGER && GetVehicleModel(GetPlayerVehicleID(playerid)) == 416)
  115.     {
  116.         SetPlayerPos(playerid, 2003.3, 2284.2, 1011.1);
  117.         SetPlayerFacingAngle(playerid, 0);
  118.         SetCameraBehindPlayer(playerid);
  119.         SetPlayerInterior(playerid, 1);
  120.         InAmbu[playerid] = GetPlayerVehicleID(playerid);
  121.     }
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  126. {
  127.     if(newkeys == 16 && InAmbu[playerid] > 0)
  128.     {
  129.         new Float:X, Float:Y, Float:Z;
  130.         GetVehiclePos(InAmbu[playerid], X, Y, Z);
  131.         SetPlayerPos(playerid, X+4, Y, Z);
  132.         SetPlayerInterior(playerid, 0);
  133.         InAmbu[playerid] = 0;
  134.     }
  135.     return 1;
  136. }
  137. // Créditos ao Criador do FS - Amit |e| editor: Welton_Ranger
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement