I know they dont have the "player" class name is there a specific classname for them?
After some testing This is what i got back from the code below.
Code:
Bot Class Name player
Bot Class Name player
Bot Class Name player
Bot Class Name player
Bot Class Name player
PHP Code:
public client_authorized( id )
{
if( !gBotsRegistered && is_user_bot( id ) )
{
set_task( 0.1, "register_bots", id );
}
}
public register_bots( id )
{
if( !gBotsRegistered && is_user_connected( id ) )
{
RegisterHamFromEntity( Ham_Spawn, id, "BotSpawn", 1 );
gBotsRegistered = true;
}
}
public BotSpawn(id)
{
new classname[33]
pev( id, pev_classname, classname, 32 )
client_print(0, print_chat, "Bot Class Name %s", classname);
}
If thats the case why do i have to register ham from ent ??