OnPlayerKeyStateChange
#8

My example checks all possible buttons and count pressed ones. So, if count == 3, it will perform action.



If you need to check specified buttons, you should use this example.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsKeyPressed(newkeys, oldkeys, KEY_FIRE) && IsKeyPressed(newkeys, oldkeys, KEY_SPRINT) && IsKeyPressed(newkeys, oldkeys, KEY_JUMP))
    {
         //TODO...
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerKeyStateChange - by Matnix - 01.09.2013, 22:42
AW: OnPlayerKeyStateChange - by NaS - 01.09.2013, 22:54
Re: OnPlayerKeyStateChange - by Borg - 01.09.2013, 22:57
Re : OnPlayerKeyStateChange - by Matnix - 01.09.2013, 23:14
Re : OnPlayerKeyStateChange - by Matnix - 02.09.2013, 03:05
Re: OnPlayerKeyStateChange - by Borg - 02.09.2013, 03:26
Re : OnPlayerKeyStateChange - by Matnix - 02.09.2013, 04:22
Re: OnPlayerKeyStateChange - by Borg - 02.09.2013, 04:34
AW: OnPlayerKeyStateChange - by NaS - 02.09.2013, 10:13

Forum Jump:


Users browsing this thread: 1 Guest(s)