Quote:
Originally Posted by BroZeus
it should be
pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys ) { if ( IsPlayerInAnyVehicle( playerid ) ) { if ( (newkeys & KEY_YES) !(oldkeys & KEY_YES) ) { new Float: zAng; GetVehicleZAngle( GetPlayerVehicleID( playerid ), zAng ); SetVehicleZAngle( GetPlayerVehicleID( playerid ), zAng ); GameTextForPlayer( playerid, "~r~Vehicle Flipped!", 3000, 3 ); } } return 1; }
the code u sing will work but it will have bugs use the above one see the changes in "if" line
the bug is that if the y key is being pressed and during it has been presed and some other key is pressed then the vehicle will flip again read https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange carefully
|
I get error's using that!