20.01.2010, 18:41
Hey,
I have this code right down bellow:
OnPlayerKeyStageChange
This means when I press the FIRE button while driving a vehicle, my vehicle gets a speed boost. BUT when I press FIRE my vehicle doesn't go forward, but blasts itself to the north. So my question = How to make this work that when I press FIRE it gives a boost to the angle where the vehicle is driving and not always the north.
sorry for my extremely bad english I am still a student LOL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I have this code right down bellow:
OnPlayerKeyStageChange
Код:
if(((newkeys & KEY_FIRE) == (KEY_FIRE)) && (GetPlayerState(playerid) == 2)) { if(IsPlayerInAnyVehicle(playerid)) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 1.0, 0.0); }
sorry for my extremely bad english I am still a student LOL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!