Someone knows this?
#1

Hey does someone knows the key number of the "switch" key between ur left-and right mousebuttom?
Reply
#2

Im not sure what you mean by switch, the middle mouse buttin is "KEY_LOOK_BEHIND" (by default) i think.
Reply
#3

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.
Reply
#4

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;
}
Reply
#5

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..
Reply
#6

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.
Reply
#7

Hmm bad is there anyway to "make" them?
Reply
#8

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.
Reply
#9

Hmm can u explain it some more? And is there really no button for "Next_Weapon"?
Reply
#10

what you want ?? go in sa-mp wikki and search your Problem!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)