#1

hi,
i need to create a key that when i will press F it will enter to an interior.
just tell me what the key num
Reply
#2

F/ENTER = 16 ( KEY_SECONDARY_ATTACK )
Reply
#3

****** is right, though I don't think much people have remapped it, to be sure, you can do ~k~ in the GameText function so the player knows which button to press;

EG:
pawn Код:
GameTextForPlayer(playerid, "Press ~k~~KEY_SECONDARY_ATTACK~ to enter interiors" , 5000, 3 );
As far as I know this looks at how the player has mapped that key.
Reply
#4

This way they know the exact key to press, otherwise they might have to look it up.
Reply
#5

This way it is really hard to know which key the player clicked on, for example, because, by default, own sa-mp has already set certain keys and I don't know another way of identifying which key was used.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)