F 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: F Key (
/showthread.php?tid=266559)
F Key -
963852741 - 05.07.2011
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
Re: F Key -
Shadoww5 - 05.07.2011
F/ENTER = 16 (
KEY_SECONDARY_ATTACK )
Re: F Key -
playbox12 - 05.07.2011
****** 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.
Re: F Key -
playbox12 - 05.07.2011
This way they know the exact key to press, otherwise they might have to look it up.
Re: F Key -
Shadoww5 - 05.07.2011
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.