SHARE
TWEET

[FS] FilterScript Novo Interior Nevada

Chip7 Jun 16th, 2012 210 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*VISITE NOSSO SITE: http://www.sampknd.com/
  2.   SAMP KND MELHOR BLOG DE SAMP DO BRASIL
  3. */
  4.  
  5. #include <a_samp>
  6.  
  7. new InNevada[MAX_PLAYERS];
  8. new Tempo1[MAX_PLAYERS];
  9. new Tempo2[MAX_PLAYERS];
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.     print("=================================");
  14.     print("===== Novo Interior Nevada ======");
  15.     print("=====      By : Hades      ======");
  16.     print("=================================");
  17.     print("===== Carregado Com Sucesso =====");
  18.     print("  =================================");
  19.    
  20. // Objetos
  21.  
  22.     CreateObject(3983, 2469.629150, -2919.871094, 8.278376, 0.0000, 0.0000, 0.0000);
  23.     CreateObject(944, 2473.229248, -2946.492432, 7.139725, 0.0000, 0.0000, 270.0000);
  24.     CreateObject(944, 2473.292236, -2946.488770, 8.585608, 0.0000, 0.0000, 270.0000);
  25.     CreateObject(964, 2471.891846, -2945.690186, 6.254938, 0.0000, 0.0000, 180.0000);
  26.     CreateObject(931, 2471.147461, -2947.244629, 7.316843, 0.0000, 0.0000, 0.0000);
  27.     CreateObject(1271, 2471.712646, -2946.877197, 7.922562, 0.0000, 0.0000, 0.0000);
  28.     CreateObject(1271, 2470.625732, -2945.544189, 6.613726, 0.0000, 0.0000, 0.0000);
  29.     CreateObject(1271, 2472.054932, -2946.875244, 8.737639, 0.0000, 0.0000, 0.0000);
  30.     CreateObject(1271, 2472.056885, -2946.107178, 7.570676, 0.0000, 0.0000, 0.0000);
  31.     CreateObject(1271, 2470.611572, -2945.521240, 7.312428, 0.0000, 0.0000, 0.0000);
  32.     CreateObject(1271, 2470.595947, -2946.877197, 7.921617, 0.0000, 0.0000, 0.0000);
  33.     CreateObject(14548, 2472.750244, -2945.020264, 8.406580, 12.8916, 0.0000, 0.0000);
  34.     CreateObject(964, 2474.609131, -2945.771240, 6.407874, 0.0000, 0.0000, 0.0000);
  35.     CreateObject(964, 2474.610596, -2946.862793, 6.409838, 0.0000, 0.0000, 180.0000);
  36.     CreateObject(1685, 2469.227783, -2945.027100, 7.156536, 0.0000, 0.0000, 0.0000);
  37.     CreateObject(1431, 2468.566650, -2942.016602, 6.948733, 0.0000, 0.0000, 270.0000);
  38.     CreateObject(1431, 2474.366211, -2946.001709, 7.921226, 0.0000, 0.0000, 270.0000);
  39.     CreateObject(1431, 2474.345459, -2945.954590, 8.426396, 0.0000, 0.0000, 270.0000);
  40.     CreateObject(1431, 2474.378174, -2945.846924, 8.931562, 0.0000, 0.0000, 270.0000);
  41.     CreateObject(1431, 2474.369385, -2945.933350, 9.834582, 0.0000, 0.0000, 270.0000);
  42.     CreateObject(1271, 2474.386230, -2945.187500, 9.286991, 0.0000, 0.0000, 0.0000);
  43.     CreateObject(2567, 2473.761963, -2944.838379, 8.329632, 0.0000, 0.0000, 270.0000);
  44.     CreateObject(2567, 2473.796387, -2940.026367, 8.325142, 0.0000, 0.0000, 270.0000);
  45.     CreateObject(2567, 2473.699707, -2935.200928, 8.316462, 0.0000, 0.0000, 270.0000);
  46.     CreateObject(2567, 2473.759033, -2930.333252, 8.307705, 0.0000, 0.0000, 270.0000);
  47.     CreateObject(2567, 2470.662354, -2930.452881, 8.307920, 0.0000, 0.0000, 0.0000);
  48.     CreateObject(1431, 2468.531250, -2939.992432, 6.945092, 0.0000, 0.0000, 270.0000);
  49.     CreateObject(1431, 2468.501709, -2938.042969, 6.941586, 0.0000, 0.0000, 270.0000);
  50.     CreateObject(1431, 2468.498779, -2936.026855, 6.937959, 0.0000, 0.0000, 90.0000);
  51.     CreateObject(1431, 2468.518066, -2934.179443, 6.934636, 0.0000, 0.0000, 270.0000);
  52.     CreateObject(1431, 2468.678223, -2932.426270, 6.931481, 0.0000, 0.0000, 258.7500);
  53.     CreateObject(927, 2470.650391, -2946.379150, 9.311947, 0.0000, 0.0000, 180.0000);
  54.     CreateObject(943, 2472.903320, -2934.670654, 7.175140, 0.0000, 0.0000, 180.0000);
  55.     CreateObject(1535, 2470.270996, -2931.557861, 6.296233, 0.0000, 0.0000, 0.0000);
  56.     CreateObject(2634, 2472.766113, -2941.141602, 7.668908, 0.0000, 0.0000, 90.0000);
  57.     CreateObject(2373, 2468.896973, -2940.247314, 6.023496, 0.0000, 0.0000, 270.0000);
  58.     CreateObject(2399, 2468.996582, -2941.314209, 7.562979, 0.0000, 0.0000, 78.7500);
  59.     return 1;
  60. }
  61.  
  62. public OnFilterScriptExit()
  63. {
  64.     print("=================================");
  65.     print("===== Novo Interior Nevada ======");
  66.     print("=====      By : Hades      ======");
  67.     print("=================================");
  68.     print("===== Desligado Com Sucesso =====");
  69.     print("=================================");
  70.  
  71.     return 1;
  72. }
  73.  
  74. public OnPlayerConnect(playerid)
  75. {
  76.     InNevada[playerid] = 0;
  77.     SendClientMessage(playerid, 0x003EFF, "Este Servidor Utiliza o FilterScript , Novo Interior Nevada .");
  78.     return 1;
  79. }
  80.  
  81. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  82. {
  83.         if (newkeys == 16 && InNevada[playerid] > 0)
  84.         {
  85.                 new Float:X,Float:Y,Float:Z;
  86.                 GetVehiclePos(InNevada[playerid], X, Y, Z);
  87.                 SetPlayerPos(playerid, X+4, Y, Z);
  88.                 SetPlayerInterior(playerid, 0);
  89.                 KillTimer(Tempo1[playerid]);
  90.                 KillTimer(Tempo2[playerid]);
  91.                 InNevada[playerid] = 0;
  92.         }
  93.         return 1;
  94. }
  95.  
  96. public OnPlayerDeath(playerid, killerid, reason)
  97. {
  98.     InNevada[playerid] = 0;
  99.     return 1;
  100. }
  101.  
  102. public OnPlayerDisconnect(playerid, reason)
  103. {
  104.     InNevada[playerid] = 0;
  105.     return 1;
  106. }
  107.  
  108. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  109. {
  110.     if(GetVehicleModel(vehicleid) == 553 && ispassenger == 1)
  111.     {
  112.             SetPlayerPos(playerid, 2468.996582, -2941.314209, 7.562979);
  113.             SetPlayerFacingAngle(playerid, 0);
  114.             SetCameraBehindPlayer(playerid);
  115.             SetPlayerInterior(playerid, 1);
  116.             Tempo1[playerid] = SetTimerEx("NevA", 60000, 1, "i", playerid);
  117.             Tempo2[playerid] = SetTimerEx("NevB", 60500, 1, "i", playerid);
  118.             InNevada[playerid] = vehicleid;
  119.     }
  120.     return 1;
  121. }
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