How to use W key - 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: How to use W key (
/showthread.php?tid=272576)
How to use W key -
misticini - 29.07.2011
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
Re: How to use W key -
Famalamalam - 29.07.2011
W key is forward.
Re: How to use W key -
shaikh007 - 29.07.2011
try to use KEY_FORWARD
Re: How to use W key -
dowster - 29.07.2011
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?
Re: How to use W key -
rbN. - 29.07.2011
Use KEY_UP at OnPlayerUpdate.
Re: How to use W key -
LZLo - 29.07.2011
PHP код:
OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_UP) {
//function
}
return 1;
}
Re: How to use W key -
[DM]Kane - 29.07.2011
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.
Re: How to use W key -
misticini - 29.07.2011
This:
Код:
OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_UP) {
//function
}
return 1;
}
Not WOrk.
Regards
Re: How to use W key -
emokidx - 29.07.2011
you need to place you function on that >_>
Re: How to use W key -
misticini - 29.07.2011
Yes i know, but put funtion inside this, function not work.
i Already do it with OnPlayerUpdate.
Thanks All.