Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.81 KB | None | 0 0
  1.              /*-*-*-*-*-*-**-*-*-*-*-*-**-*-*-*-*-*-**-*-*-*-*/
  2.              //   KINGUNIT PRO, KINGUNIT PRO, KINGUNIT PRO,  //
  3.              /*-*-*-*-*-*-**-*-*-*-*-*-**-*-*-*-*-*-**-*-*-*-*/
  4.  
  5. // ========================================================================== //
  6.  
  7. #define FILTERSCRIPT
  8. #define COLOR_YELLOW 0xFFFF00AA
  9. #define PRESSED(%0) \
  10.     (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  11. #define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))
  12. #include <a_samp>
  13. #if defined FILTERSCRIPT
  14. forward InfiniteNitro();
  15. ////////////////////////////////////////////////////////////////////////////////
  16. public OnFilterScriptInit()
  17. {
  18.     print("\n--------------------------------------");
  19.     print(" Infinite NOS made by Kingunit.         ");
  20.     print("--------------------------------------\n");
  21.    
  22.     SetTimer("InfiniteNitro",2000,1);
  23.     return 1;
  24.    
  25. }
  26. ////////////////////////////////////////////////////////////////////////////////
  27. public InfiniteNitro()
  28. {
  29.     new vehicleid;
  30.     for(new i=0;i<MAX_PLAYERS;i++)
  31.     {
  32.         if(IsPlayerConnected(i))
  33.         {
  34.             if(GetPlayerState(i)==2)
  35.             {
  36.                 vehicleid=GetPlayerVehicleID(i);
  37.                 if(CheckVehicle(vehicleid))
  38.                 AddVehicleComponent(vehicleid,1010);
  39.             }
  40.         }
  41.     }
  42.     return 0;
  43. }
  44. ////////////////////////////////////////////////////////////////////////////////
  45. stock CheckVehicle(vehicleid)
  46. {
  47.     #define MAX_INVALID_NOS_VEHICLES 13
  48.  
  49.     new InvalidNOSVehicles[MAX_INVALID_NOS_VEHICLES] =
  50.     {
  51.         522,481,441,468,448,446,513,521,510,430,520,476,463 // Invalid vehicles for NOS
  52.     };
  53.  
  54.     for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++)
  55.     {
  56.         if(GetVehicleModel(vehicleid) == InvalidNOSVehicles[i]) return false;
  57.     }
  58.     return true;
  59. }
  60. ////////////////////////////////////////////////////////////////////////////////
  61. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement