example:!say like that
pls help me
-- Initialization of the hook addhook("say","sayHook") -- Here goes the hook function function sayHook(id,text) 	-- parameters: id, text 	-- id: the player who said this 	-- text: the message that the player said 	 	if string.sub(text, 1, 1) == "!" then 		-- check the first character of the text 		if text == "!say" then 			-- player used "!say" in chat 			msg("A player used !say") 		else 			-- unknown command used 			msg2(id, "Unknown command") 		end 	end end