Need help finding a key.. [unsolved] - 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: Need help finding a key.. [unsolved] (
/showthread.php?tid=144358)
Need help finding a key.. [unsolved] -
Lorenc_ - 26.04.2010
I was playing a server before and i found out f you press 1 a menu comes...
What key id would 1 be?
otherwise how can i make it if you press 1 it says Lorenc rules in sendclientmessage?
Re: Need help finding a key.. -
luigifan9 - 26.04.2010
Quote:
Originally Posted by ((Lorenc))
I was playing a server before and i found out f you press 1 a menu comes...
What key id would 1 be?
otherwise how can i make it if you press 1 it says Lorenc rules in sendclientmessage?
|
forum.sa-mp.com. goto scripting resources. You can find keys and such.
Re: Need help finding a key.. -
Lorenc_ - 26.04.2010
I already searched... Wiki either dosent tell me either the id...
Код:
// Keys
#define KEY_ACTION (1)
#define KEY_CROUCH (2)
#define KEY_FIRE (4)
#define KEY_SPRINT (8)
#define KEY_SECONDARY_ATTACK (16)
#define KEY_JUMP (32)
#define KEY_LOOK_RIGHT (64)
#define KEY_HANDBRAKE (128)
#define KEY_LOOK_LEFT (256)
#define KEY_SUBMISSION (512)
#define KEY_LOOK_BEHIND (512)
#define KEY_WALK (1024)
#define KEY_ANALOG_UP (2048)
#define KEY_ANALOG_DOWN (4096)
#define KEY_ANALOG_LEFT (8192)
#define KEY_ANALOG_RIGHT (16384)
#define KEY_UP (-128)
#define KEY_DOWN (128)
#define KEY_LEFT (-128)
#define KEY_RIGHT (128)
Re: Need help finding a key.. -
Lorenc_ - 26.04.2010
i search another script..
Re: Need help finding a key.. -
Saurik - 26.04.2010
use search and dont double post, its annoying
Re: Need help finding a key.. -
Lorenc_ - 26.04.2010
Okay i didnt find it through search mister so dont get your hopes up.
Quote:
Originally Posted by Saurik
use search and dont double post, its annoying
|
and your annoying to post in my topic with no anwser but an argument.
Re: Need help finding a key.. [unsolved] -
Calgon - 26.04.2010
Check the wiki and use your brain (as small as it may be).
Individual keys are set by client control, what you're looking for is
this.
Re: Need help finding a key.. [unsolved] -
Lorenc_ - 27.04.2010
Quote:
Originally Posted by Freddo [BINMAN
]
Check the wiki and use your brain (as small as it may be).
Individual keys are set by client control, what you're looking for is this.
|
okay forgot to search that page on wiki and btw thnaks
Re: Need help finding a key.. [unsolved] -
dice7 - 27.04.2010
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new str[35];
format(str, 35, "ID of the key pressed: %d", newkeys);
SendClientMessage(playerid, 0xFF0000FF, str);
return 1;
}