Don't use that plugin, it's complete garbage and I know, I'm the author. Use this one, will work on any game mode.
Code:
#include <amxmodx>
#include <zombieplague>
new const EXTRA_ITEMS[][] = {
"Balrog Ethereal"
}
new cvar_max_bots
new g_extraItems[sizeof EXTRA_ITEMS], g_extraItemCount
public plugin_init()
{
register_plugin("Bots Buy Extra Items", "1.1", "Ainsley Harriott")
cvar_max_bots = register_cvar("zp_force_buy_maxbots", "3")
}
public plugin_cfg()
{
for (new i, itemid; i < sizeof EXTRA_ITEMS; i++)
{
itemid = zp_get_extra_item_id(EXTRA_ITEMS[i])
if (itemid != -1)
{
g_extraItems[g_extraItemCount++] = itemid
}
}
}
public zp_round_started(gamemode, id)
{
if (g_extraItemCount > 0)
{
GiveBotExtraItems()
}
}
GiveBotExtraItems()
{
new bots[32], botCount
new humanBots[32], humanBotCount
get_players(bots, botCount, "adh")
for (new i, bot; i < botCount; i++)
{
bot = bots[i]
if (!zp_get_user_zombie(bot))
{
humanBots[humanBotCount++] = bot
}
}
SortIntegers(humanBots, humanBotCount, Sort_Random)
for (new i, bot, itemid, max = min(humanBotCount, get_pcvar_num(cvar_max_bots)); i < max; i++)
{
bot = humanBots[i]
itemid = g_extraItems[random(g_extraItemCount)]
zp_force_buy_extra_item(bot, itemid, 1)
}
}
__________________