Someone knows this? - 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: Someone knows this? (
/showthread.php?tid=251692)
Someone knows this? -
[Ha]Lommo - 28.04.2011
Hey does someone knows the key number of the "switch" key between ur left-and right mousebuttom?
Re: Someone knows this? -
iggy1 - 28.04.2011
Im not sure what you mean by switch, the middle mouse buttin is "KEY_LOOK_BEHIND" (by default) i think.
Re: Someone knows this? -
[Ha]Lommo - 28.04.2011
That's the right button, but it only works if someone press it. Not when he switches to another weapon. How to do this? Thanks for your reply anyway.
Re: Someone knows this? -
iggy1 - 28.04.2011
Use this to get the value of any keys you need.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new
str[64];
format(str, 64,"Pressed Key Value: %d", newkeys);
SendClientMessage(playerid, -1, str);
return 1;
}
Re: Someone knows this? -
[Ha]Lommo - 28.04.2011
And what if it doesn't gives a message? it means the key doesn't exists? Is there anyway to make it?
I need the numbers of the buttoms "Q" and "E" and the middle mouse buttom..
Re: Someone knows this? -
iggy1 - 28.04.2011
I'm guessing it means they don't exist (or not being watched) because that message will be displayed whenever a new key is pressed.
Re: Someone knows this? -
[Ha]Lommo - 28.04.2011
Hmm bad

is there anyway to "make" them?
Re: Someone knows this? -
Rachael - 28.04.2011
This function will give you a few more key options, however its not a callback, so you have to put it in a loop to get the information
https://sampwiki.blast.hk/wiki/GetPlayerKeys
I do not think the keys you are trying to detect have a value in either of the above methods.
Re: Someone knows this? -
[Ha]Lommo - 28.04.2011
Hmm can u explain it some more? And is there really no button for "Next_Weapon"?
Re: Someone knows this? -
Aldi96 - 28.04.2011
what you want ?? go in sa-mp wikki and search your Problem!