Raised This Month: $32 Target: $400
 8% 

Need to create dead bot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-03-2022 , 10:29   Need to create dead bot
Reply With Quote #1

Hello,
I need a plugin to create a few dead bots in CT team. Anyone know such a plugin or how to create it? Thanks
sebxx4 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-03-2022 , 22:27   Re: Need to create dead bot
Reply With Quote #2

Look at my aimbot detection plugin. Just spawn then kill
__________________
Bugsy is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-04-2022 , 04:16   Re: Need to create dead bot
Reply With Quote #3

I know how to spawn a bot, but it spawns as alive. I thought about creating a living bot and killing it every round, but i was wondering if it could be done in any "simpler" way? You know, just spawn bot that never get alive, without killing it every round.

Last edited by sebxx4; 05-04-2022 at 04:17.
sebxx4 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-04-2022 , 09:12   Re: Need to create dead bot
Reply With Quote #4

Just slay it and don't show a deathmsg. What's the goal with having a dead bot created?
__________________

Last edited by Bugsy; 05-04-2022 at 09:13.
Bugsy is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-04-2022 , 11:00   Re: Need to create dead bot
Reply With Quote #5

Well, I need a few dead CT bots on deathrun server to increase statistics.
I tried to add bot with this:
PHP Code:
public createBot()
{
    new 
Bot engfunc(EngFunc_CreateFakeClient"bot")

    if (
Bot)
    {
        
dllfunc(MetaFunc_CallGameEntity"player"Bot)
        
set_pev(Botpev_flagsFL_FAKECLIENT)
        
set_pev(Botpev_model"")
        
set_pev(Botpev_viewmodel2"")
        
set_pev(Botpev_modelindex0)
        
set_pev(Botpev_renderfxkRenderFxNone)
        
set_pev(Botpev_rendermodekRenderTransAlpha)
        
set_pev(Botpev_renderamt0.0)
        
cs_set_user_team(BotCS_TEAM_CT)
    }

but I can't kill this bot :/ I tried user_kill and amx_slay, and he's still alive...

Last edited by sebxx4; 05-04-2022 at 11:01.
sebxx4 is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-06-2022 , 02:17   Re: Need to create dead bot
Reply With Quote #6

Any idea?
sebxx4 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-06-2022 , 22:26   Re: Need to create dead bot
Reply With Quote #7

Try:
PHP Code:
public createBot()
{
    new 
Bot engfunc(EngFunc_CreateFakeClient"bot")

    if (
Bot)
    {
        
dllfunc(MetaFunc_CallGameEntity"player"Bot)
        
set_pev(Botpev_flagsFL_FAKECLIENT)
        
set_pev(Botpev_model"")
        
set_pev(Botpev_viewmodel2"")
        
set_pev(Botpev_modelindex0)
        
set_pev(Botpev_renderfxkRenderFxNone)
        
set_pev(Botpev_rendermodekRenderTransAlpha)
        
set_pev(Botpev_renderamt0.0)
        
set_pdata_int(Bot,114,0);
        
message_begin(MSG_ALL,get_user_msgid("TeamInfo"));
        
write_byte(Bot);
        
write_string("CT");
        
message_end();
    }

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-07-2022 , 10:31   Re: Need to create dead bot
Reply With Quote #8

Still cannot kill this bot :/
This is my code:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>

new const Plugin[] = "BotAdd"
new const Version[] = "1.0"
new const Author[] = "Sebxx"

new  g_offset[2], g_ping[3]

public 
plugin_init()
{
    
register_plugin(Plugin,Version,Author)
    
set_task(5.0"createBot"69)
    
register_event("HLTV""event_new_round""a""1=0""2=0"
}

public 
event_new_round()
{    
    for ( new 
id 1id <= get_maxplayers(); id++ )
    {
        if ( 
is_user_bot(id) )
        {
            
user_kill(id)
        }
    }
}

public 
createBot()
{
    new 
Bot engfunc(EngFunc_CreateFakeClient"bot")

    if (
Bot)
    {
        
dllfunc(MetaFunc_CallGameEntity"player"Bot)
        
set_pev(Botpev_flagsFL_FAKECLIENT)
        
set_pev(Botpev_model"")
        
set_pev(Botpev_viewmodel2"")
        
set_pev(Botpev_modelindex0)
        
set_pev(Botpev_renderfxkRenderFxNone)
        
set_pev(Botpev_rendermodekRenderTransAlpha)
        
set_pev(Botpev_renderamt0.0)
        
set_pdata_int(Bot,114,0);
        
message_begin(MSG_ALL,get_user_msgid("TeamInfo"));
        
write_byte(Bot);
        
write_string("CT");
        
message_end();
    }

sebxx4 is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-09-2022 , 12:19   Re: Need to create dead bot
Reply With Quote #9

Bump
sebxx4 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-09-2022 , 13:12   Re: Need to create dead bot
Reply With Quote #10

Quote:
Originally Posted by sebxx4 View Post
Bump
Try this
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>

new const Plugin[] = "BotAdd"
new const Version[] = "1.0"
new const Author[] = "Sebxx"

new  g_offset[2], g_ping[3], bool:g_bBot33 ]

public 
plugin_init()
{
    
register_plugin(Plugin,Version,Author)
    
set_task(5.0"createBot"69)
    
register_event("HLTV""event_new_round""a""1=0""2=0"
}

public 
event_new_round()
{    
    for ( new 
id 1id <= get_maxplayers(); id++ )
    {
        if ( 
g_bBotid ] )
        {
            
user_kill(id)
        }
    }
}

public 
createBot()
{
    new 
Bot engfunc(EngFunc_CreateFakeClient"bot")

    if (
Bot)
    {
        
dllfunc(MetaFunc_CallGameEntity"player"Bot)
        
set_pev(Botpev_flagsFL_FAKECLIENT)
        
set_pev(Botpev_model"")
        
set_pev(Botpev_viewmodel2"")
        
set_pev(Botpev_modelindex0)
        
set_pev(Botpev_renderfxkRenderFxNone)
        
set_pev(Botpev_rendermodekRenderTransAlpha)
        
set_pev(Botpev_renderamt0.0)
        
set_pdata_int(Bot,114,0);
        
message_begin(MSG_ALL,get_user_msgid("TeamInfo"));
        
write_byte(Bot);
        
write_string("CT");
        
message_end();
        
g_bBotBot ] = true
    
}


public 
client_disconnectedid )
{
    if( 
g_bBotid ] )
    {
        
g_bBotid ] = false;
    }

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 05-09-2022 at 13:12.
Supremache is offline
Reply



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 11:21.


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