Install the attached plugin.
Then in your plugin put this function :
PHP Code:
public cz_bot_ham_registerable( id )
{
}
Example :
PHP Code:
public plugin_init()
{
// register as usual for normal players
RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
}
public cz_bot_ham_registerable( bot_index )
{
// register for bots here
RegisterHamFromEntity(Ham_Spawn, bot_index, "Player_Spawn", 1)
}
public Player_Spawn( id )
{
if( is_user_alive(id) )
{
set_user_health(id, 150)
}
}