Or is that piece of lua missing?
Thanks.
-Camo
addhook("say","_say") function _say(id,message) 	if string.lower(message)=="return flag" then 		returnFlag(player(id,"team")) 	end end function returnFlag(team) 	tmp=player(0,"team"..team.."living") 	tmp2={player(tmp[1],"x"),player(tmp[1],"y")} 	for _,key in ipairs(item(0,"table")) do 		if item(key,"type")==69+team then 			parse("setpos "..tmp[1].." "..(item(key,"x")*32).." "..(item(key,"y")*32)) 		end 	end 	parse("setpos "..tmp[1].." "..tmp2[1].." "..tmp2[2]) end
function ctfe.returnflag(id) 	for _,key in ipairs(item(0,"table")) do 		if (player(id,"health"))>=1 then 			if (player(id,"team"))==1 then 			ttmpmoney={player(id,"money")} 			ttmppos={player(id,"x"),player(id,"y")} 				if item(key,"type")==70 then 				parse("setpos "..id.." "..(item(key,"x")*32).." "..(item(key,"y")*32)) 				msg("©200200200ID "..id.." returns the flag. @C") 				end 			parse("setmoney "..id.." "..ttmpmoney[1]) 			parse("setpos "..id.." "..ttmppos[1].." "..ttmppos[2]) 			end 		end 		if (player(id,"health"))>=1 then 			if (player(id,"team"))==2 then 			cttmpmoney={player(id,"money")} 			cttmppos={player(id,"x"),player(id,"y")} 				if item(key,"type")==71 then 				parse("setpos "..id.." "..(item(key,"x")*32).." "..(item(key,"y")*32)) 				msg("©200200200ID "..id.." returns the flag. @C") 				end 			parse("setmoney "..id.." "..cttmpmoney[1]) 			parse("setpos "..id.." "..cttmppos[1].." "..cttmppos[2]) 			end 		end 	end end
function ctfe.returnflag(team) tmp=player(0,"team"..team.."living") tmpmoney={player(tmp[1],"money")} tmp2={player(tmp[1],"x"),player(tmp[1],"y")} 	for _,key in ipairs(item(0,"table")) do 		if item(key,"type")==69+team then 		parse("setpos "..tmp[1].." "..(item(key,"x")*32).." "..(item(key,"y")*32)) 		end 	end 	parse("setmoney "..tmp[1].." "..tmpmoney[1]) 	parse("setpos "..tmp[1].." "..tmp2[1].." "..tmp2[2]) end
for _,key in ipairs(item(0,"table")) do 	if item(key,"type")==70 then 	parse("triggerposition "..(item(key,"x")*32).." "..(item(key,"y")*32)) 	end end