Raised This Month: $ Target: $400
 0% 

Killing fakeplayer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-01-2009 , 11:30   Killing fakeplayer
Reply With Quote #1

Hai, i have such stupid problem i cant kill fakeplayer wich i created from code.. (slay not works too :d)

PHP Code:
public UpdateBot( ) {
    new 
id find_player"i" );
    
    if( !
id ) {
        
id engfuncEngFunc_CreateFakeClientBOT_NAME );
        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 
szMsg128 ];
            
dllfuncDLLFunc_ClientConnectidBOT_NAME"127.0.0.1"szMsg );
            
dllfuncDLLFunc_ClientPutInServerid );
            
            
cs_set_user_teamidCS_TEAM_T );
            
ExecuteHamBHam_CS_RoundRespawnid );
            
            
set_pevidpev_effectspevidpev_effects ) | EF_NODRAW );
            
set_pevidpev_solidSOLID_NOT );
            
dllfuncDLLFunc_Thinkid );
            
            
g_iFakeplayer id;
        }
    }

I tryed user_kill, setting 0hp and call_think, nothing works ...
__________________
xPaw is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 07-01-2009 , 11:41   Re: Killing fakeplayer
Reply With Quote #2

I don't know if this will work, but maybe fakedamage 100 on it?
zacky is offline
Send a message via Skype™ to zacky
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-01-2009 , 11:50   Re: Killing fakeplayer
Reply With Quote #3

Quote:
Originally Posted by zacky View Post
I don't know if this will work, but maybe fakedamage 100 on it?
Thanks, it works
__________________
xPaw is offline
Reply


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 15:44.


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