1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
admins={142503}
RStart=false
addhook("say","sayhook")
function sayhook(id,txt)
	local t= string.lower(txt)
	if string.sub(t,1,1)=="!" then
		if string.sub(t,2)=="startround" then
			for _,u in ipairs(admins) do
				if player(id,"usgn")==u then
					RStart=true
					msg("Round started by "..player(id,"name"))
				end
			end
		else
			msg2(id,string.sub(t,2).." command does not exists!")
		end
	end
end
addhook("spawn","spawnhook")
function spawnhook(id)
	local d=player(id,"deaths")
	if not RStart then
		parse("killplayer "..id)
		parse("setdeaths "..id.." "..d)
		msg2(id,"You are not able to spawn, wait until administrator enable spawns!")
	end
end