1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("second","enemycheck")
function enemycheck()
for id=1,32 do
if player(id,"exists") and player(id,"bot") then
if ai_findtarget(id)==0 then
ai_selectweapon(id,50)
end
end
end
end
But the problem is that bots are putting knife ONLY in first time when they spawn, after that, if they faced an enemy they just put there weapons and never bring the knife back again! The code activate only for one time and idk why!
edited 1×, last 07.08.22 02:18:03 am