Update sv_gamemode_functions.lua

swap "for" and "if"