[FilterScript] Nitro Bar System like in NFS
#1

Introduction:


A few days ago I was looking for some Filterscript that uses the Nitro system from Need for Speed but I couldn't find any on the forums so I thought I could make one myself. I decided to publish it because other people might find it useful too.


Features:

This FilterScript brings the Nitro feature from the Need For Speed series to SA-MP. You basically give NOS to the vehicle by holding the Fire key (LMB/LAlt by default) and stop it by releasing the key. As you hold the fire key the nitro amount will lower until it's completely empty. If you need to refill it again you can purchase different amounts of Nitro using /buynos. The filterscript is available in 2 versions: ProgressBar version and TextDraw Version so you can choose which fits best for you.


Installation and Usage:
  • Download the files from the links included below.
  • Open NitroBar.pwn and edit the following lines to your needs, or leave them as they are:
    pawn Код:
    #define NosConsumSpeed 2 // Increase to loose Nitro faster or decrase to loose it slower (the number must NOT contain period or comma).
    #define NitroBarColor 1340286975 // Change this to the color of progressbar you want to use (you can also put hex numbers e.g. 0xFF0000FF).
    #define NOS_DIALOG 1596 // The nitro purchase dialog ID (list style)
    #define NOS_INPUT  1597 // The custom Nitro purchase dialog ID (input style)
     
    #undef MAX_PLAYERS
    #define MAX_PLAYERS 100 // Change to the maximum players of your server
  • Put the 2 files NitroBar.pwn and NitroBar.amx in your filterscripts folder
  • Open server.cfg and on the "filterscript" line add NitroBar OR login as Rcon in your server and type "/rcon loadfs NitroBar" (I suggest relogging or restarting the server after doing this).
  • Go in the server and get a vehicle which can use NOS (the bar is not desplayed on (most) vehicles which cannot use NOS).
  • Type /buynos if you need more Nitro.
  • Have fun!

Disclaimer:
  • If you are going to use this FS you MUST NOT remove the credits!
  • Mirrors are ALLOWED!
  • You may edit it to your needs as long as you keep the credits.
  • You may NOT claim it as your own!

Current known Bugs:

No bugs are currently known! If you find any you are pleased to report it here so I can try to fix it.


Screen Shots:

Progress Bar version:


Text Draw version:


Nitro Purchase dialog (same on both versions):


Custom Nitro purchase dialog (same on both versions):


Download:

Download from Mediafire (Both Versions)
Pastebin Download (ProgressBar Version)
Pastebin Download (TextDraw Version)

NOTE: If you are going to download the ProgressBar Version through Pastebin, you must have this include in your "pawno\include" folder.

Credits:

-SpiritEvil (Me xP) for creating the script (doh!).
-Toribio for making the PorgressBar include.


P.S This is my first public filterscript :P .
Reply


Messages In This Thread
Nitro Bar System like in NFS - by SpiritEvil - 30.01.2012, 15:22
Re: Nitro Bar System like in NFS - by nacimbogoss - 30.01.2012, 16:10
Re: Nitro Bar System like in NFS - by System64 - 30.01.2012, 16:10
Re: Nitro Bar System like in NFS - by Kontrol - 30.01.2012, 17:52
Respuesta: Nitro Bar System like in NFS - by [DOG]irinel1996 - 30.01.2012, 18:13
Re: Nitro Bar System like in NFS - by Adzdon - 30.01.2012, 18:36
Re: Nitro Bar System like in NFS - by SpiritEvil - 30.01.2012, 18:45
Re: Nitro Bar System like in NFS - by Kaperstone - 30.01.2012, 20:22
Re: Nitro Bar System like in NFS - by SpiritEvil - 30.01.2012, 20:56
Re: Nitro Bar System like in NFS - by NeTuddMeg - 30.01.2012, 21:06
Re: Nitro Bar System like in NFS - by SpiritEvil - 31.01.2012, 10:41
Re: Nitro Bar System like in NFS - by Edvin - 31.01.2012, 11:53
Re: Nitro Bar System like in NFS - by SpiritEvil - 31.01.2012, 13:43
Re: Nitro Bar System like in NFS - by arjanforgames - 31.01.2012, 13:50
Re: Nitro Bar System like in NFS - by SpiritEvil - 02.02.2012, 10:33
Re: Nitro Bar System like in NFS - by SpiritEvil - 08.02.2012, 11:13
Re: Nitro Bar System like in NFS - by POSEID0N - 02.05.2012, 21:34
Re: Nitro Bar System like in NFS - by megafunfreeroam - 28.06.2013, 20:56

Forum Jump:


Users browsing this thread: 5 Guest(s)