
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
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
mbots = 4 bots = {} for i=1,mbots do parse("bot_add") table.insert(bots,player(0,"table")[#player(0,"table")]) end function countplayers() local c=0 for _,i in pairs(player(0,"table")) do if not player(i,"bot") then c=c+1 end end return c end addhook("join","checkbots") function checkbots() if bots>0 then parse("kick "..bots[#bots]) end end addhook("leave","checkbots2") function checkbots2() local ply=countplayers() if ply<mbots then parse("bot_add") end end
So if is here anyone that can help me fix it I would be grateful.
edited 2×, last 10.03.14 09:36:54 am