++rep help to stop boost
#3

create something like this

pawn Код:
new EnableBoast[MAX_PLAYERS]; //at the top of script

//then put this on the command of your speed boast somewhere if your creating one

EnableBoast[playerid] = 1; //will enable boast

//then put this on the command of your speed boast off

EnableBoast[playerid] = 0; //will disable boast
pawn Код:
if(newkeys & KEY_FIRE)
{
    if(EnableBoast[playerid] == 0) return 0;
    if(EnableBoast[playerid] == 1)
    {
        new Float:vx,Float:vy,Float:vz;
        GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), vx * 1.8, vy *1.8, vz * 1.8);
    }
}
Reply


Messages In This Thread
++rep help to stop boost - by Aloushi - 30.03.2012, 11:35
Re: ++rep help to stop boost - by Twisted_Insane - 30.03.2012, 11:39
Re: ++rep help to stop boost - by Reklez - 30.03.2012, 11:42
Re: ++rep help to stop boost - by Richie© - 30.03.2012, 12:41
Re: ++rep help to stop boost - by Mike_Peterson - 30.03.2012, 12:49
Re: ++rep help to stop boost - by Shadow_ - 30.03.2012, 12:59
Re: ++rep help to stop boost - by MP2 - 30.03.2012, 13:05
Re: ++rep help to stop boost - by Aloushi - 30.03.2012, 16:29

Forum Jump:


Users browsing this thread: 1 Guest(s)