Raised This Month: $ Target: $400
 0% 

CZ Bots Class name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-15-2011 , 22:22   CZ Bots Class name
Reply With Quote #1

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_authorizedid )
{    
    if( !
gBotsRegistered && is_user_botid ) )
    {
        
set_task0.1"register_bots"id );
    }
}

public 
register_botsid )
{
    if( !
gBotsRegistered && is_user_connectedid ) )
    {
        
RegisterHamFromEntityHam_Spawnid"BotSpawn");
        
gBotsRegistered true;
    }
}

public 
BotSpawn(id)
{
    new 
classname[33]
    
pevidpev_classnameclassname32 )
    
    
client_print(0print_chat"Bot Class Name %s"classname);

If thats the case why do i have to register ham from ent ??

Last edited by Doc-Holiday; 07-16-2011 at 00:45.
Doc-Holiday is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode