Your countdown() function contains the required variable of "playerid", calling the function without that variable would most likely trigger it for 0. I've revised that line of code for you.
pawn Код:
SetTimerEx("countdown", 1000, 0, "d", playerid);
SetTimerEx allows you to parse multiple variables to the timed function.