Smoot, attach the actual text file IF the following doesn't work. Use the 'additional options' link below post.
As for few ideas;
What isn't working? Get any errors at server startup, or player join, on either server console or players?
1) You have the same gamemode listed several times. I wouldn't think that would confiuse the script, but it's a possibility.
I believe spbogie changed his code so that case sensitivity doesn't matter (Sandbox is same as sandbox)
2) What is the _real_ name of the gamemode according to the server? Do you have that in the list?
I don't remember the console variable to check that. Sorry. sv_gamemode or gamemode.
Heck, from server console, type "find gamemode" and it will surely show.