30.03.2012, 11:42
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);
}
}