05.05.2012, 10:57
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?
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
}
}