samp-isodd Very popular function rewritten in Pawn. Include isOdd into your script. #include < isOdd > After that, you can use it. isOdd(number); More details of usage inside example.pwn file Very effiecent and time saving function. credits: ascpixi (source code)