Update sv_gamemode_functions.lua

swap "for" and "if"
Merge pull request #1687 from cardentity/patch-1

Update sv_gamemode_functions.lua