30.07.2013, 11:55
All your original code does is consider a single key at any time. Checking if they are pressing that key is correct, but you need to check that the released key is also the fire key. Otherwise, if a player is holding the fire key but then presses forwards too, it is not the fire key so it disables the function. Under OnPlayerKeyStateChange, do:
This checks that the key released is the fire key
pawn Код:
if ( ( oldkeys - newkeys ) == KEY_FIRE )
{
// stopped firing
}
else
if ( ( newkeys - oldkeys ) == KEY_FIRE )
{
// firing
}

