1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook("say","sayhook")
function sayhook(id,t)
	if t:sub(1,1)=="!" then
		if t:sub(1,5)=="!kick" then
			parse("kick "..t:sub(7,8))
			msg2(id,"You kicked "..player(t:sub(7,8),"name")
			msg(player(id,"name").." kicked "..player(t:sub(7,8),"name"))
		elseif t:sub(1,7)=="!freeze" then
			parse("speedmod "..t:sub(9,10).." -100")
			msg2(id,"You freezed "..player(t:sub(9,10,),"name")
			msg(player(id,"name").." freezed "..player(t:sub(9,10),"name"))
		else
			msg2(id,"Error, wrong say command!")
		end
		return
	end
end