13.07.2018, 15:14
Quote:
you need this in OnPlayerKeyStateChange, or something, I think there are more ways to make a speed boost.
if(speed[playerid] == 1) { new Float:v[3]; if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { GetVehicleVelocity(GetPlayerVehicleID(playerid), v[0],v[1],v[2]); SetVehicleVelocity(GetPlayerVehicleID(playerid), v[0]*1.8,v[1]*1.8,v[2]*1.8 ); } } |