SA-MP Forums Archive
How do you make unlimited nitro? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do you make unlimited nitro? (/showthread.php?tid=90084)



How do you make unlimited nitro? - ThePS3Guy - 06.08.2009

I am thinking this:

something to do with if the player does KEY_FIRE, and if playerstate is in vehicle set nitro to unlimited... but that's about all i can guess. i am relatively new to pawno.. so if you can be at least somewhat specific, that would be great help. thanks


Re: How do you make unlimited nitro? - Antonio [G-RP] - 06.08.2009

im relatively new to pawno too, but I dont think you can make unlimited nitro.
I am 100% sure that you can have no delay between starting nitro again.

Do you mean unlimited tanks? then yes.
they keep going forever? no.


Re: How do you make unlimited nitro? - ThePS3Guy - 06.08.2009

Thanks antonio, whether its unlimited tanks or unlimited nitro, to me their both the same. do u know how though?



Re: How do you make unlimited nitro? - Antonio [G-RP] - 06.08.2009

Sorry, I wouldnt know exactly.

I would think though, that if you create a timer to give them nitro every 5 minutes...

pawn Код:
SetTimer("GiveNitro", 60000, 0);
60000 is 5 minutes I think...

Then the nitro is vehicle component...

pawn Код:
AddVehicleComponent(vehicleid, 1010);



Re: How do you make unlimited nitro? - ThePS3Guy - 06.08.2009

thanks


Re: How do you make unlimited nitro? - Antonio [G-RP] - 06.08.2009

No problem. Sorry i don't knoow how to put it together. Im a nooby scripter.


Re: How do you make unlimited nitro? - ThePS3Guy - 06.08.2009

lol antonio this would be my first day so that helps more than u think...


Re: How do you make unlimited nitro? - BP13 - 06.08.2009

Quote:

60000 is 5 minutes I think...

6000 is 6 minutes. makes sense... anywayse the timer should be like 20 seconds cause the nos runs out alot sooner than 6 minutes


Re: How do you make unlimited nitro? - Woet - 06.08.2009

Whoever is discussing about the time, timers in PAWN are milliseconds,

1000 = 1 second
6000 = 6 seconds
60000 = 1 minute
300000 = 5 minutes