27.01.2016, 03:13
In your first if statement, you check if CowTime is greater than 0, being that 5 is greater than 0, your else-if will not be reached when CowTime equals 5, the if statement code will take place instead. To fix this, you should check if CowTime is greater than 5, not 0:
pawn Code:
if(CowTime[playerid] > 5)