How to use W key
#1

Hello,

I try to use KEY_SPRINT to start the vehicle engine with W key (key used to acelerate the vehicle), but not work.

Is there any way to start the Engine with W?

Regards
Reply
#2

W key is forward.

Reply
#3

try to use KEY_FORWARD
Reply
#4

Just wondering, what would the number pad 8 key be? the one used for the special action like the hydra jets, and the bulldozer bucket?
Reply
#5

Use KEY_UP at OnPlayerUpdate.
Reply
#6

PHP код:
OnPlayerKeyStateChange(playeridnewkeysoldkeys
{
if(
newkeys == KEY_UP) {
//function
}
return 
1;

Reply
#7

Quote:
Originally Posted by dowster
Посмотреть сообщение
Just wondering, what would the number pad 8 key be? the one used for the special action like the hydra jets, and the bulldozer bucket?
https://sampwiki.blast.hk/wiki/GetPlayerKeys

Scroll down once you're on that link, and you'll see KEY LIST.
I think it's KEY_ANALOG_UP, KEY_ANALOG_DOWN, KEY_ANALOG_LEFT,, KEY_ANALOG_RIGHT for Num2, Num8, Num4 and Num6 respectively.
Reply
#8

This:

Код:
OnPlayerKeyStateChange(playerid, newkeys, oldkeys) 
{
if(newkeys == KEY_UP) {
//function
}

return 1;
}
Not WOrk.

Regards
Reply
#9

you need to place you function on that >_>
Reply
#10

Yes i know, but put funtion inside this, function not work.

i Already do it with OnPlayerUpdate.

Thanks All.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)