[SOLVED] Key Pressed 1 time..? - 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: [SOLVED] Key Pressed 1 time..? (
/showthread.php?tid=116580)
[SOLVED] Key Pressed 1 time..? -
RyDeR` - 29.12.2009
Hello, I made a spawn location thing with arrow keys, but It goes too fast when I choose a place when I keep pressing it will slide fast. I want something when I hold that it work 1 time.. Anyone knows how?
Re: Key Pressed 1 time..? -
Correlli - 29.12.2009
You can check the way i did in
this script with simple array variable.
Re: Key Pressed 1 time..? -
RyDeR` - 29.12.2009
I don't understand how you did.
I use this:
Код:
new Keys,ud,lr;
GetPlayerKeys(playerid,Keys,ud,lr); // same for left
if(lr == KEY_RIGHT))
And it's sliding al the time if you hold it..
Re: Key Pressed 1 time..? -
Tigerbeast11 - 29.12.2009
Quote:
Originally Posted by » RэРиR «
I don't understand how you did.
I use this:
Код:
new Keys,ud,lr;
GetPlayerKeys(playerid,Keys,ud,lr); // same for left
if(lr == KEY_RIGHT))
And it's sliding al the time if you hold it..
|
what do u mean by sliding?
Re: Key Pressed 1 time..? -
RyDeR` - 29.12.2009
Example: LV, SF, LS. I press right arrow key it slides from LV till LS but when I keep it I must be slide one time. Understand?
Re: Key Pressed 1 time..? -
Correlli - 29.12.2009
Quote:
Originally Posted by » RэРиR «
I don't understand how you did.
|
Check the script i gave you and search for "PlayerKey" array.
Re: Key Pressed 1 time..? -
RyDeR` - 29.12.2009
EDIT: Solved.
Thanks Don.