Players keys problem. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Players keys problem. (
/showthread.php?tid=220902)
Players keys problem. -
ajwar - 04.02.2011
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?
AW: Players keys problem. -
Nero_3D - 04.02.2011
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)
Re: Players keys problem. -
ajwar - 04.02.2011
How should i make to work it in a car then?
AW: Players keys problem. -
Nero_3D - 04.02.2011
take another key which can be used in a vehicle
Re: Players keys problem. -
ajwar - 05.02.2011
How do i know which can be used then?