Detect Aiming?
#3

Quote:
Originally Posted by Infamous
Посмотреть сообщение
You want to detect if the player has raised his gun to the aiming position? If so you can detect the aim button being pressed/held.

pawn Код:
KEY_AIM* 128
Ah, cheers!

Edit after you're edit:

Key 128 is Handbrake.

Something like this?

pawn Код:
#define KEY_AIM 132
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))
pawn Код:
if(pstate == PLAYER_STATE_ONFOOT)
    {
        if (HOLDING(KEY_AIM))
        {
            SetPlayerDrunkLevel(playerid,50000);
        }
    }
Reply


Messages In This Thread
Detect Aiming? - by PeteShag - 11.01.2011, 06:18
Re: Detect Aiming? - by Infamous - 11.01.2011, 06:21
Re: Detect Aiming? - by PeteShag - 11.01.2011, 06:24
Re: Detect Aiming? - by PeteShag - 11.01.2011, 07:31
Re: Detect Aiming? - by dawidek11 - 11.01.2011, 07:37
Re: Detect Aiming? - by PeteShag - 11.01.2011, 07:47
Re: Detect Aiming? - by [BEP]AcerPilot - 11.01.2011, 09:19
Re: Detect Aiming? - by [UG]Scripter - 11.01.2011, 10:05

Forum Jump:


Users browsing this thread: 2 Guest(s)