Raised This Month: $ Target: $400
 0% 

Problem with BOT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
padilha007
Senior Member
Join Date: Jul 2008
Old 01-21-2009 , 11:11   Problem with BOT
Reply With Quote #1

i creat a bot to prevent round end, but dont work 100%

PHP Code:
    new g_oldbotname[32]
        
    static 
botname[32]
    
formatexbotname31"BOT")
    
// Skip Real Players
    
new id find_player("ia"botname)

    if( !
equali(botnameg_oldbotname) )
    {
        if( 
is_user_connected(g_oldbotidct) && is_user_bot(g_oldbotidct) )
        {
            
set_user_info(g_oldbotidct"name"botname)
            return;
        }
    }
    
    
g_oldbotidct id engfunc(EngFunc_CreateFakeClientbotname)
        
    
g_oldbotname botname
        
    
if( pev_validid ) )
    {
        
engfuncEngFunc_FreeEntPrivateDataid)
        
dllfuncMetaFunc_CallGameEntity"player"id)
        
set_user_infoid"rate""3500" )
        
set_user_infoid"cl_updaterate""25" )
        
set_user_infoid"cl_lw""1" )
        
set_user_infoid"cl_lc""1" )
        
set_user_infoid"cl_dlmax""128" )
        
set_user_infoid"cl_righthand""1" )
        
set_user_infoid"_vgui_menus""0" )
        
set_user_infoid"_ah""0" )
        
set_user_infoid"dm""0" )
        
set_user_infoid"tracker""0" )
        
set_user_infoid"friends""0" )
        
set_user_infoid"*bot""1" )
        
set_pevidpev_flagspevidpev_flags ) | FL_FAKECLIENT )
        
set_pevidpev_colormapid )
            
        new 
msg[128]
        
        
dllfuncDLLFunc_ClientConnectidbotname"127.0.0.1"msg )
        
dllfuncDLLFunc_ClientPutInServerid )
        
engfuncEngFunc_RunPlayerMoveidFloat:{0.0,0.0,0.0}, 0.00.00.00076 )
        
        
set_pev(idpev_takedamageDAMAGE_NO)
        
        
dllfunc(DLLFunc_Spawnid
Attached Thumbnails
Click image for larger version

Name:	imagem.JPG
Views:	309
Size:	71.4 KB
ID:	36131  
__________________


Last edited by padilha007; 01-21-2009 at 11:15.
padilha007 is offline
 


Thread Tools
Display Modes

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 01:48.


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