21.11.2014, 14:38
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;
}