OnPlayerKeyStateChange problem
#6

Quote:
Originally Posted by JoeDaDude
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & KEY_JUMP) && !(oldkeys & KEY_JUMP))
{
if (IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_RED, "Message One");
}
}
return 1;
}
If i get in a car, And press Shift, it sends that message,
But it sends that message if i press "S" aswell,
Why?
Jump key is shift at yours as well as S so they both work, there isn't any possible option to asset a key on the keyboard but only an ingame assigned key so if you want that go to your options and change SHIFT S or jump in this case to SHIFT only but it'll mean that only you can do it that way, it doesn't change the otherss way.
Reply


Messages In This Thread
OnPlayerKeyStateChange problem - by JoeDaDude - 23.01.2010, 20:13
Re: OnPlayerKeyStateChange problem - by ¤Adas¤ - 23.01.2010, 20:35
Re: OnPlayerKeyStateChange problem - by JoeDaDude - 23.01.2010, 20:57
Re: OnPlayerKeyStateChange problem - by Correlli - 23.01.2010, 20:59
Re: OnPlayerKeyStateChange problem - by JoeDaDude - 23.01.2010, 20:59
Re: OnPlayerKeyStateChange problem - by WThieves - 23.01.2010, 21:19
Re: OnPlayerKeyStateChange problem - by JoeDaDude - 23.01.2010, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)