Is player pressed double keys
#1

Hi,

I want to make when player press two keys just then allow.
Reply
#2

Use this:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if((newkeys & KEY_1) && (newkeys & KEY_2))
    {
        // Code
    }
    return 1;
}
Here's a list of all keys: https://sampwiki.blast.hk/wiki/Keys
Reply
#3

Not entirely correct, see here: https://sampwiki.blast.hk/wiki/OnPlayerK..._multiple_keys
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)