1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
addhook("flagtake","ftake")
function ftake (id,team)
	if player(id,"team")==1 then
		bflag=image("gfx/weapons/blueflag.bmp<m>" ,20,380,2)
	else
		rflag=image("gfx/weapons/redflag.bmp<m>" ,50,380,2)
	end
end
addhook("flagcapture","fcap")
function fcap (id,team)
	
	if player(id,"team")==1 then
		freeimage(bflag)
	else
		freeimage(rflag)
	end
end
addhook("kill","fdrop")
function fdrop (killer,victim)
	if player(victim,"flag")==true then
		if player(victim,"team")==1 then
			freeimage(bflag)
		else
			freeimage(rflag)
		end
	end
end
addhook("collect","fcollect")
function fcollect (id,iid)
	if player(id,"team")==1 then
		if iid==71 then
			bflag=image("gfx/weapons/blueflag.bmp<m>" ,20,380,2)
		else
			return 0
		end
	elseif player(id,"team")==2 then
		if iid==70 then
			rflag=image("gfx/weapons/redflag.bmp<m>" ,50,380,2)
		else
			return 0
		end
	end
end
Stolen flag HUD image
1 
Offline