Raised This Month: $ Target: $400
 0% 

Crash when creating a bot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 06-22-2018 , 13:11   Re: Crash when creating a bot
Reply With Quote #6

After doing a clean install for the second time it started working, but now when i spawn the bot he is invisible.

PHP Code:
public BOTid )
{
    
g_iBotIndex engfuncEngFunc_CreateFakeClient"Test Bot" );

    if( !
g_iBotIndex )
        return 
PLUGIN_HANDLED;

    
engfuncEngFunc_FreeEntPrivateDatag_iBotIndex );

    static 
szBlock128 ];

    
dllfuncDLLFunc_ClientConnectg_iBotIndex"[SV] Pro 1 BOT""127.0.0.1"szBlock );

    if( !
is_user_connectedg_iBotIndex ) )
        return 
PLUGIN_HANDLED;

    
dllfuncDLLFunc_ClientPutInServerg_iBotIndex );

    
set_pevg_iBotIndexpev_spawnflagspevg_iBotIndexpev_spawnflags ) | FL_FAKECLIENT ); 
    
set_pevg_iBotIndexpev_flagspevg_iBotIndex,pev_flags ) | FL_FAKECLIENT );

    
cs_set_user_teamg_iBotIndexCS_TEAM_CTCS_CT_GSG9 );

    
ExecuteHamBHam_CS_RoundRespawng_iBotIndex ); // Tried

    //dllfunc( DLLFunc_Spawn, g_iBotIndex );  // Tried

    
if( !is_user_aliveg_iBotIndex ) )
        return 
PLUGIN_HANDLED;

    
//set_user_rendering( g_iBotIndex, kRenderFxNone, 255, 255, 255, kRenderNormal, 25 ); // Tried

    
fm_set_renderingg_iBotIndexkRenderNormal255255255kRenderNormal25 ); // Tried

    //fm_set_user_rendering( g_iBotIndex, kRenderFxGlowShell, 0, 0, 0, kRenderNormal, 25 ); //Tried

    //set_pev( g_iBotIndex, pev_origin, fOrigin );

    
return PLUGIN_HANDLED;

I can see his name, health and he can block me, but he is completely invisible.
Neither option listed above worked.
__________________

Last edited by marcelowzd; 06-22-2018 at 18:14.
marcelowzd 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 12:34.


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