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
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
addhook("movetile","ctm") function ctm(id,x,y) if player(id,"team")==0 or 1 and x==0 and y==0 then freehook("movetile","ctm") msg2(id,"Take that gun!") parse("spawnprojectile 0 30 64 64 160 135") redb=image(gfx/noob/red.bmp",16,16,1)-- its just a red circle imagehitzone(redb,102,-16,-16,32,32) tween_move(redb,2000,200,0)--is there way to loop... timer(2000,"first") function first() tween_move(redb,2000,0,0) timer(2000,"second") function second() tween_move(redb,2000,500,0) timer(2000,"third") function third() tween_move(redb,2000,0,0)--...these actions? end end end end addhook("hit","bhit")--When I hit redb.bmp with AK47, nothing happens? function bhit("redb,1,0,30,x,y,0") msg2(id,"Hit!") end