How To Disable Speed boost in race?
#1

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?
Reply
#2

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

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

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
    }
}
Reply
#5

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

Prob Solved!.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)