SpeedBoost Wrong?
#2

I didn't understand. You press W, and isn't working. Actually here in this code you writed KEY_FIRE, LMB Button (Left Mouse Button). You still change it to :

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_UP)
    {
       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;
}
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)