[SOLVED] Key Pressed 1 time..?
#1

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?
Reply
#2

You can check the way i did in this script with simple array variable.
Reply
#3

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..
Reply
#4

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?
Reply
#5

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?
Reply
#6

Quote:
Originally Posted by » RэРиR «
I don't understand how you did.
Check the script i gave you and search for "PlayerKey" array.
Reply
#7

EDIT: Solved.
Thanks Don.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)