1, Don't use magic numbers in your code, use named constants:
2, Players should already inherit the gamemode of the world they are moved to, unless they issued the /gm command, which pins their gamemode forever. So for regular players there's no need to set their gamemode. There's even a special value for SetGameMode() that has this effect, gmNotSet.
3, If you want to set the gamemode, read the gamemode of the destination world; this way it'll work for any world names and any number of worlds:
Player:SetGameMode(gmCreative);
2, Players should already inherit the gamemode of the world they are moved to, unless they issued the /gm command, which pins their gamemode forever. So for regular players there's no need to set their gamemode. There's even a special value for SetGameMode() that has this effect, gmNotSet.
3, If you want to set the gamemode, read the gamemode of the destination world; this way it'll work for any world names and any number of worlds:
Player:SetGameMode(cRoot:Get():GetWorld(WorldName):GetGameMode());