found error with pawn functions. need to rewrite chk_cap conditions