Nitro System - 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)
+--- Thread: Nitro System (
/showthread.php?tid=507183)
Nitro System -
Hanuman - 16.04.2014
Is there is any way to find the time taken by the nitro to get empty and to get filled again?
Re: Nitro System -
Bingo - 16.04.2014
Never tried but IDEA!
Use stopwatch/timer on your mobile or something which shows accurate seconds, While using nitros, Start your timer, And stop as soon as it's finished (Nitro)
When nitrosends, Stop your timer/stopwatch.
Make a countdown textdraw suppose 20 seconds for per fill (Just example) so Use
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
Countdown starts in usage of nitros (Nitro ON), Add textdrawshowforplayer and goes on.
Re: Nitro System -
Hanuman - 16.04.2014
Well, nice idea but i will check it later.
Re: Nitro System -
Bingo - 16.04.2014
Quote:
Originally Posted by Hanuman
Well, nice idea but i will check it later.
|
Hold on xD Not a good idea.
What if user presses key fire again and again? Lol
Re: Nitro System -
Hanuman - 16.04.2014
lol, i am not adding this to script. I will just test it to find the time.
About preventing the user to that, we can use variable for that. That is why i love variable so much. Love u variables!