maPmaKer has written
@HaRe:
It is working now but how to add the bot immediatly in the spec mode?
It is working now but how to add the bot immediatly in the spec mode?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
botishere=0
addhook("ms100","hook_ms100_botscript")
function hook_ms100_botscript()
if (#player(0,"table")>=24) then
if botishere==1 then
for i=1,#player(0,"table") do
if (player(i,"bot")) then
parse("kick "..i)
botishere=0
end
end
end
elseif #player(0,"table")<24 and botishere~=1 then
bot = parse("bot_add")
parse("makespec "..bot)
botishere=1
end
end
Lua Scripts/Questions/Help


Offline
It just added 23 bots and when I was kicking them it just added another bot to replace the kicked one. Omg please fix it so it can work please.