Is possible detect the gamemode on server with lua or other command?
Thanks
Scripts
Detect gamemode
Detect gamemode
1

game("sv_gamemode")
game
sv_gamemode
Cure Pikachu has writtenaddhook("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
game has writtenaddhook("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
1
