Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*-*-*-*-*-*-**-*-*-*-*-*-**-*-*-*-*-*-**-*-*-*-*/
- // KINGUNIT PRO, KINGUNIT PRO, KINGUNIT PRO, //
- /*-*-*-*-*-*-**-*-*-*-*-*-**-*-*-*-*-*-**-*-*-*-*/
- // ========================================================================== //
- #define FILTERSCRIPT
- #define COLOR_YELLOW 0xFFFF00AA
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))
- #include <a_samp>
- #if defined FILTERSCRIPT
- forward InfiniteNitro();
- ////////////////////////////////////////////////////////////////////////////////
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Infinite NOS made by Kingunit. ");
- print("--------------------------------------\n");
- SetTimer("InfiniteNitro",2000,1);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public InfiniteNitro()
- {
- new vehicleid;
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i))
- {
- if(GetPlayerState(i)==2)
- {
- vehicleid=GetPlayerVehicleID(i);
- if(CheckVehicle(vehicleid))
- AddVehicleComponent(vehicleid,1010);
- }
- }
- }
- return 0;
- }
- ////////////////////////////////////////////////////////////////////////////////
- stock CheckVehicle(vehicleid)
- {
- #define MAX_INVALID_NOS_VEHICLES 13
- new InvalidNOSVehicles[MAX_INVALID_NOS_VEHICLES] =
- {
- 522,481,441,468,448,446,513,521,510,430,520,476,463 // Invalid vehicles for NOS
- };
- for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++)
- {
- if(GetVehicleModel(vehicleid) == InvalidNOSVehicles[i]) return false;
- }
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement