SA-MP Forums Archive
How to check if player press NunPad 8? - 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)
+--- Thread: How to check if player press NunPad 8? (/showthread.php?tid=346381)



How to check if player press NunPad 8? - ricardo178 - 28.05.2012

Hello guys. For my engine vehicle, i wanted to make it start when player press key nunpad 8, but i have no idea on how to check that. Some other keys i know, but this one i didn't find in wiki, and if(newkeys & KEY_NUNPAD didn't work.

I know it's possible as i've seen it already, but i don't know how. xD


Re: How to check if player press NunPad 8? - IceCube! - 28.05.2012

KEY_ANALOG_UP??

Not too sure imma ****** it .


https://sampforum.blast.hk/showthread.php?tid=55363 < It is that, this page also includes NUM 2 - KEY_ANALOG_DOWN


Re: How to check if player press NunPad 8? - Babul - 28.05.2012

agreed to IceCube! - the relevant page is this:https://sampwiki.blast.hk/wiki/GetPlayerKeys
the camera keys are set to the numpad (2-4-6- by default, and they also work on a joypad (analogue aswell) for rotating turret/camera.


Re: How to check if player press NunPad 8? - ricardo178 - 28.05.2012

It worked. Thank you all.


Re: How to check if player press NunPad 8? - MP2 - 28.05.2012

If you use it for anything such as auto-flip, joypad users will be annoyed, as I am with some server that does that, as every time we move the camera with the right analog stick it calls it.


Re: How to check if player press NunPad 8? - IceCube! - 28.05.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
If you use it for anything such as auto-flip, joypad users will be annoyed, as I am with some server that does that, as every time we move the camera with the right analog stick it calls it.
Annoyed to, played a RP server that started and stopped the engine with it, everytime I moved it the engine would strt or stop. Same with a DM server they used it to drop Ammo, I had to go back to my keyboard.


Re: How to check if player press NunPad 8? - ricardo178 - 28.05.2012

It's for engine start and stop. Camera is moveable with mouse. xD


Re: How to check if player press NunPad 8? - MP2 - 28.05.2012

Camera isn't movable with mouse when using joypad.


Re: How to check if player press NunPad 8? - IceCube! - 28.05.2012

Quote:
Originally Posted by ricardo178
Посмотреть сообщение
It's for engine start and stop. Camera is moveable with mouse. xD
Still kind of annoying when your using a PS3 controller :P. If you used Num 2 it wouldn't effect people as much as we dont ever use down, we adust the camera to make it higher otherwise the normal position of the Camera is fine but then again its down to you :P.

Quote:
Originally Posted by MP2
Посмотреть сообщение
Camera isn't movable with mouse when using joypad.
That to.


Re: How to check if player press NunPad 8? - MP2 - 28.05.2012

I'm always moving the camera, in all directions. I move it up a bit when driving so I can see ahead and I often move it left/right for 'cinematic' purposes. I don't use down too much, but still do. Stick to other keys if you ask me.