12.12.2011, 02:45
You need to use the oldkeys parameter as well, to check if the oldkeys do not contain the newkeys.
Refer to https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange for more information.
pawn Код:
if((newkeys & 16) && !(oldkeys & 16))