Is possible detect the gamemode on server with lua or other command?
Thanks
game("sv_gamemode")
addhook("say","check_gamemode"); -- test function check_gamemode(id,text) if (string.lower(text) == "!check") then 	if game("sv_gamemode") == 1 then 		msg("It Works!") 		return 1 		end 	end end
addhook("say","check_gamemode"); -- test function check_gamemode(id,text) 	if (string.lower(text) == "!check") then 		if tonumber(game("sv_gamemode")) == 1 then 			msg("It Works!") 			return 1 		end 	end end
function checkgamemode() 	return tonumber(game('sv_gamemode')) end