11.01.2011, 06:24
(
Последний раз редактировалось PeteShag; 11.01.2011 в 07:08.
)
Quote:
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 Код:
|
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);
}
}