I'm just wondering if there is a flagreturn hook or something similar.
Also, is there a "on teamkill" hook?
If not, will they be included in future versions of CS2D?
Thanks.
if (player(id,"teamkills") == HOWMANY) then
if (player(id,"teamkills") == HOWMANY) then
addhook("drop","dropfunc") function dropfunc(id,iid) if iid=="flageblauid" or iid=="flagerotid" then 	--was auch immer du willst end end
addhook("drop","dropfunc") function dropfunc(id,iid) if iid=="flageblauid" or iid=="flagerotid" then 	--was auch immer du willst end end
if team==1 and iid==70 then ...
if team==2 and iid==71 then ...
addhook("walkover","flagreturn") function flagreturn(team,id,iid) 		if team==1 and iid==70 then ....... 	end 		if team==2 and iid==71 then ....... 	end end
addhook("drop","dropfunc") function dropfunc(id,iid,type,ain,a,mode,x,y) 	if (player(id,"team") == 2) and type==70 then 		msg(player(id,"name").." has returnd the RED flag") 	elseif (player(id,"team") == 1) and type==71 then 		msg(player(id,"name").." has returnd the BLUE flag") 	end end
addhook("kill", "teamkill") function teamkill (k, v) 	if ( player(k, "team") == player(v, "team") ) then 		... 	end end