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
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
cls={} m=0 time=0 function spawncl(x,y,tx,ty) local c={x=x,y=y,tx=tx,ty=ty,img=image("gfx/yceket.png",x,y,3)} table.insert(cls,c) imagepos(c.img,x,y,0) end addhook("say","scl") function scl(id,txt) if txt=="cc" then spawncl(player(id,"x"),player(id,"y"),player(id,"tilex"),player(id,"tiley")) end end addhook("second","bugfix") function bugfix() time=time-1 end addhook("use","seqq") function seqq(id) for a=1,#cls do x=player(id,"tilex") y=player(id,"tiley") if x==cls[a].tx and y==cls[a].ty and m==0 then freeimage(cls[a].img) cls[a].img=image("gfx/ceket.png",1,1,200+id) m=1 time=2 if m==1 and time<2 then freeimage(cls[a].img) spawncl(player(id,"x"),player(id,"y"),player(id,"tilex"),player(id,"tiley")) m=0 end end end end