im trying to detect if the gamemode is or isnt standard with the hook startround.
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
addhook('startround','help_start') function help_start() 	local ccode = string.char(169) 	local gm = tonumber(game('sv_gamemode')) -- game() returns a string. 	if gm ~= 0 then 		msg(ccode.."255000000Script doesn't support this game mode.") 		timer(10000,'parse','sv_gamemode 0') 	elseif gm == 0 then 		-- My script. 	end end
This code only works when i restart the sv, not in first round, how do i do to solve this?
Sorry for typos and bad english xd.