13.07.2018, 15:12
you need this in OnPlayerKeyStateChange, or something, I think there are more ways to make a speed boost.
PHP код:
if(newkeys & KEY_FIRE)
{
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 );
}
}
}