addhook(Hook,"Function String")
Anyway, your function is working now...
I haven't tried, but it shouldn't work like this:
1
2
2
-- Probably it's returning integer (nil valuable) in this case... addhook(always,my_function)
-- Probably it's returning integer (nil valuable) in this case... addhook(always,my_function)
epic_table={ 	function da_function(a_string) 		print(a_string) 	end } epic_table["da_function"]("A printed text") --Here we call the function
addhook("hit","cod4.hit") function cod4.hit(id) 	if player(id,"health") < 50 then 		msg2(id, "You are hurt, Get Cover!") 	end end
addhook("hit","cod4.hit") function cod4.hit(id) 	if player(id,"health") < 50 then 		msg2(id, "You are hurt, Get Cover!") 	end end
addhook("hit","cod4.hit") function cod4.hit(id,source,weapon,hpdmg,apdmg) 	if player(id,"health") < 50 then 		if "weapon = bla bla" then 			return 0 		else 			msg2(id, "You are hurt, Get Cover!") 		end 	end end