SpeedBoost Wrong?
#4

pawn Код:
// PRESSED(keys)
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_UP))
    {
       if(IsPlayerInAnyVehicle(playerid))
       {
            new Car, Float:x, Float:y, Float:z;
            Car = GetPlayerVehicleID(playerid);
            GetVehicleVelocity(Car, x, y, z);
            SetVehicleVelocity(Car, x*1.5, y*1.5, z*1.5);
       }
    }
    return 1;
}
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)