SA-MP Forums Archive
How To Disable Speed boost in race? - 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: How To Disable Speed boost in race? (/showthread.php?tid=339876)



How To Disable Speed boost in race? - Torus - 05.05.2012

Hey Guys I Wonder i have a filterscript ryderrace system for races and in my gamemode i have a boost script in onplayerketstatechange and i want it to be disabled in ryderrace system so can u help me out?


Respuesta: How To Disable Speed boost in race? - [DOG]irinel1996 - 05.05.2012

Put your boost system in RyDeRґ's FS and use a variable.


Re: How To Disable Speed boost in race? - Torus - 05.05.2012

how dude? i tryed ! but didnt help !. Can You Give an example


Respuesta: How To Disable Speed boost in race? - [DOG]irinel1996 - 05.05.2012

For example, you enable speed boost with KEY_FIRE:
pawn Код:
new bool:InRace[MAX_PLAYERS];

//---When player joins a race:
InRace[playerid] = true;

//---When he finishes the race:
InRace[playerid] = false;

//---OnPlayerKeyStateChange
if(newkeys & KEY_FIRE)
{
    if(InRace[playerid] == false)
    {
        //Boost functions. etc
    }
}



Re: How To Disable Speed boost in race? - Kudoz - 05.05.2012

Irinel.. would'nt that also disable Nos? if the KEY_FIRE is disabled.. im not sure though


Re: How To Disable Speed boost in race? - Torus - 05.05.2012

Prob Solved!.