[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
#2

Ok but you have made a mistake :
/RCON login Nitrobar
it's /rcon loadfs Nitrobar
Reply
#3

Cool, I like the textdraw version more, may I use that textdraws from textdraw version for my server?
Reply
#4

Cool great idea! something like this would be good for the racing gm im doing!
Reply
#5

You could find one here: https://sampforum.blast.hk/showthread.php?tid=256782
Anyway, not bad. Good job. In NFS, you haven't to buy nitro, but well... It's OK.

PD: I think I was the first one that released a Nitro Bar, haha... xD
Reply
#6

Very good [ Keep it up ]
Reply
#7

Thanks for the great feedbacks guys, I really appreciate it

Quote:

Ok but you have made a mistake :
/RCON login Nitrobar
it's /rcon loadfs Nitrobar

Oops, my bad fixing it now :P

Quote:

Cool, I like the textdraw version more, may I use that textdraws from textdraw version for my server?

Sure you can

Quote:

You could find one here: https://sampforum.blast.hk/showthread.php?tid=256782
Anyway, not bad. Good job. In NFS, you haven't to buy nitro, but well... It's OK.

Well, I guess, I haven't searched enough :P Anyway the idea was to make something original, not to copy whole thing from NFS.
Reply
#8

i thought its the circle nitro bar.
well,anyway,nice too
the second looks cool.
Reply
#9

Quote:

i thought its the circle nitro bar

As far as I know it is not currently possible to make a circle bar in SAMP (correct me if I'm wrong) but if it was, it would be really cool though...
Reply
#10

I added my version long time ago, to my housemade server. (>.<)
But the Design is very good
Good work Bro.
Reply
#11

Quote:
Originally Posted by NeTuddMeg
Посмотреть сообщение
I added my version long time ago, to my housemade server. (>.<)
But the Design is very good
Good work Bro.
Thank you
Reply
#12

Very nice, good job!
Reply
#13

I'm glad you people like it
Reply
#14

Nice, gonna use it!
Reply
#15

Quote:
Originally Posted by arjanforgames
Посмотреть сообщение
Nice, gonna use it!
Nice, thanks
Also if you find any bugs, please let me know.
Reply
#16

Bump....
Reply
#17

When i want put the Inc. to PAWN (my Script) #include <progress> it Says: Unkown directly.
Reply
#18

it does not want to work with LuxAdmin, why?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)