Change
Code:
function baseflag:allowed() if GetNumAllPlayers() >= 10 then return true else return false end
To:
Code:
function baseflag:allowed() if GetNumAllPlayers() >= 10 then return true else return false end end
Also, check the console for any LUA errors. Report them here.