Quote:
Originally Posted by Blizzard_87
cstrike37 use this link it states it works with more then one kind of bots.
|
It's to understand that code lol and I don't know where to put it so..
I used this
https://forums.alliedmods.net/showthread.php?p=22034
I just added the public KillBots and set_task from ur code
I added these two:
PHP Code:
set_task(5.0, "KillBots", 0 )
PHP Code:
public KillBots()
{
new Players[ 32 ], iNum, i, bots;
get_players( Players, iNum, "d" );
for( i = 0; i < iNum; i++ )
{
bots = Players[ i ];
user_kill( bots );
}
}
and replaced
PHP Code:
stock kill_bots() {
for(new i = 1 ; i <= g_iMaxPlayers ; i++) {
if(is_user_bot(i)) {
user_kill(i,1)
}
}
}
with set task and it worked perfectly
Thanks!