Players keys problem.
#1

Hi, i use the code above to make my car start.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

if( newkeys == KEY_JUMP )
{

// starting engine
When i press SHIFT - (KEY_JUMP) nothing happens, but instead if i press "s" it starts. What may be the problem?
Reply
#2

Yes because the vehicle keys differ from the onfoot keys

so is KEY_JUMP in a vehicle KEY_BRAKE (this doesnt exist but it is the same number)
Reply
#3

How should i make to work it in a car then?
Reply
#4

take another key which can be used in a vehicle
Reply
#5

How do i know which can be used then?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)