02.06.2012, 20:30
pawn Код:
// on top of the game mode.
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_CROUCH)
{
DestroyObject(sirenturn1);
DestroyObject(sirenturn2);
DestroyObject(sirenturn3);
}
return 1;
}