SpeedBoost Wrong?
#1

Hi Guys I Made A Speed Boost Command But It Don't Work When i press 'w'

Code:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_FIRE)
    {
       new Car, Float:x, Float:y, Float:z;
       Car = GetPlayerVehicleID(playerid);
       if(IsPlayerInAnyVehicle(playerid))
       {
          GetVehicleVelocity(Car, x, y, z);
          SetVehicleVelocity(Car, x*1.5, y*1.5, z*1.5);
       }
    }
    return 1;
}
Thx For Helping !.
Reply


Messages In This Thread
SpeedBoost Wrong? - by UltraScripter - 21.11.2014, 14:35
Re: SpeedBoost Wrong? - by HY - 21.11.2014, 14:38
Re: SpeedBoost Wrong? - by UltraScripter - 21.11.2014, 14:40
Re : SpeedBoost Wrong? - by Dutheil - 21.11.2014, 14:41
Re: SpeedBoost Wrong? - by UltraScripter - 21.11.2014, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)