[Question] 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: Plugin Development (
https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Question] Keys (
/showthread.php?tid=175243)
[Question] Keys -
MrDeath537 - 08.09.2010
Hi, I have a question:
Is possible make a plugin for get ALL PLAYER KEYS?
Example:
pawn Code:
new Keys, ud, lr;
GetPlayerKeys(playerid, Keys, ud, lr);
if (Keys == KEY_F1) SendClientMessage(playerid, 0xFFFFFFFF, "You're pressing F1");
Thanks you.
Re: [Question] Keys -
Jay_ - 08.09.2010
No.
The message you have entered is too short. Please lengthen your message to at least 8 characters.
Re: [Question] Keys -
MrDeath537 - 08.09.2010
Hmmm, ok, but I'll wait a response from Kalcor.
Re: [Question] Keys -
Victor - 08.09.2010
You would need to get the keys client-side and and theres no way(afaik) to allow plugins access to the clients and what keys the player press
Re: [Question] Keys -
cyber_punk - 09.09.2010
Quote:
Originally Posted by [RP]Victor
You would need to get the keys client-side and and theres no way(afaik) to allow plugins access to the clients and what keys the player press
|
That's just it the player would need to download a 3rd party client, Tannz0rz was testing one he had made and it did detect keys...I forget why he stopped working on it.
Re: [Question] Keys -
Victor - 09.09.2010
Quote:
Originally Posted by cyber_punk
That's just it the player would need to download a 3rd party client, Tannz0rz was testing one he had made and it did detect keys...I forget why he stopped working on it.
|
Yea that is true. It would have to be like the audio plugin.
Re: [Question] Keys -
pliva_sb - 09.09.2010
I made test plugin about few weeks ago.This can be much better if some expert do it as incognito,Y_less..
http://yfrog.com/m9keydetectbyplivaz