thank you very much, after testing, the bot can randomly select wires
do you need to delete the code here?
Code:
new bool:g_bBot[MAX_PLAYERS+1]
Code:
public client_putinserver(id)
{
// if( (g_bBot[id] = bool:is_user_bot(id)) )
// {
// g_bCanDefuse[id] = true
// }
}
public client_disconnect(id)
{
g_bBot[id] = false
}
Code:
public Event_HLTV_New_Round()
{
g_iC4 = FM_NULLENT
g_iPlayerInMenu = 0
g_iWire = random_num(0,1)
for( new id = 1 ; id <= g_iMaxPlayers ; id++ )
{
g_bCanDefuse[id] = g_bBot[id] ? true : false
}
}