Sorry for my bad english
edited 1×, last 16.02.13 02:53:50 pm
addhook('kill', 'AA_kill') addhook('parse', 'AA_parse') addhook('leave', 'AA_leave') function f_announce(id1, id2) 	msg('©200200200Two players left!@C') 	msg('©200200200'..player(id1, 'name')..' and '..player(id2, 'name')..' @C' end function f_checkPlayers() 	local a = {player(0, 'team1living'), player(0, 'team2living')} 	if #a[1] == 1 and #a[2] == 1 then 		f_announce(a[1][1], a[2][1]) 	end end function AA_kill() 	f_checkPlayers() end function AA_parse(text) 	if text == 'kill' then 		f_checkPlayers() 	end end function AA_leave() 	f_checkPlayers() end
addhook("die","announce") addhook("leave","announce") function announce() 	local p1 = player(0,"team1living") 	local p2 = player(0,"team2living") 	if #p1 == 1 and #p2 == 1 then 		msg("©192192192Last people standing: ©255025000"..player(p1[1],"name").." and ©050150255"..player(p2[1],"name").."@C") 		parse("sv_sound \"*sound file*\"") 	end end