Please tell me how to make some command
![](img/smiles/bigsmile.gif)
addhook("say","say_cmd") function say_cmd(id,t) 	if t:sub(1,4) == "!cmd" then 		msg2(id,"You called a command") 	end end
local function split(s, d) 	local w = {} 	 	s:gsub(("[^%s]+"):format(d or " "), function(v) 		w[#w + 1] = v 	end) 	 	return w end function sayhook(i, t) 	local c = t:match("^([!|@][%w]+)[%s]?") 	local d = t:match("[%s](.*)") 	 	if (c and d) then 		-- This is the place where you add commands 		if (c == "kill") then 			-- This is not error-safe due to no checkup for the arguments' type (d) 			parse(("killplayer %d"):format(tonumber((split(d))[1]))") 		end 	end end addhook("say", "sayhook")