21.08.2012, 10:51
Hello, i want detect if a player is crouching when pressed the touch "crouch" but doesn't work with
and i don't want use
There is another possibility?
Not Work with
when iam standing and i use touch "KEY_CROUCH)"
PHP код:
GetPlayerSpecialAction
PHP код:
onplayerupdate
PHP код:
switch(GetPlayerWeapon(playerid))
{
case 23..25, 27, 29..34, 41:
{
if(GetPlayerSpecialAction(playerid) != 1)
{
if(PRESSED(KEY_CROUCH))
{
SendClientMessage(playerid,-1,"test");
}
}
}
}
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)