SA-MP Forums Archive
Disable Speed Boost - 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: Disable Speed Boost (/showthread.php?tid=360698)



Disable Speed Boost - kbalor - 18.07.2012

So i want to disable in race, how? I iam using key 2 to multi boost. Let's say how to disable key 2 in race?


Re: Disable Speed Boost - ViniBorn - 18.07.2012

Ex:

pawn Код:
new bool: Boost;

// In race
Boost = false;

//OnPlayerKeyStateChange
if(Boost)
{
    //Boost works ...
}



Re: Disable Speed Boost - kbalor - 18.07.2012

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Ex:

pawn Код:
new bool: Boost;

// In race
Boost = false;

//OnPlayerKeyStateChange
if(Boost)
{
    //Boost works ...
}
How about, H to flip and y to jump??


Re: Disable Speed Boost - Dan. - 18.07.2012

I suggest:
pawn Код:
new bool: Boost[MAX_PLAYERS];
Because when some people arent in the race, their boost will also be disabled.