Question about keys - 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: Question about keys (
/showthread.php?tid=61223)
Question about keys -
Dujma - 11.01.2009
Is there any way to define if the player has presed the F11 key. I have this under OnPlayerKeyStateChange
Код:
printf("%d", newkeys);
but it doesn't write anything when I pres F11 key. I want to do this for some kind of anticheat if the player pres F11 he will get kicked? Any more ideas how to find out id of this key and is it even possible to find out?
Re: Question about keys -
kc - 11.01.2009
the SA-MP key functions only include keys used by the game - not all keyboard keys.
You are out of luck.
Re: Question about keys -
Leoxide - 04.02.2009
Quote:
Originally Posted by kc
the SA-MP key functions only include keys used by the game - not all keyboard keys.
You are out of luck.
|
are - and + an included keys?
Re: Question about keys -
yom - 04.02.2009
Quote:
Originally Posted by Leoxide
are - and + an included keys?
|
Quote:
Originally Posted by kc
the SA-MP key functions only include keys used by the game - not all keyboard keys.
|
If you don't assign a gta command to a key, then that key won't be detected. SA:MP key system is very limited, sadly.