02.09.2013, 04:34
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.
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;
}