This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Spec Bots Plugin 2017


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 01-15-2018 , 11:52   Re: Spec Bots Plugin 2017
Reply With Quote #1

Quote:
Originally Posted by yuvim86 View Post
I checked the script. Can i add more bots like 5 but duplicating the funtion with diff id.?
I tried it works fine but gametracker is detecting thm as bots.Only three are working fine.Any ideas y?
You can expand it, but you cannot change their 'ids'. Gametracker and any other server tracker will count them as bots. No way of changing it.
__________________
Relaxing is offline
polimpo4
Member
Join Date: Jan 2017
Old 04-14-2018 , 19:09   Re: Spec Bots Plugin 2017
Reply With Quote #2

Quote:
Originally Posted by Relaxing View Post
You can expand it, but you cannot change their 'ids'. Gametracker and any other server tracker will count them as bots. No way of changing it.
Wrong. You Need At Least Let Server Being Online For About .... 24 Hours And Then Use Plugin... I Already Used It And Works Fine. Just Check Portugal Servers... You Will See All Of Them Working With It Just Fine ;)
https://www.gametracker.com/search/cs/PT/

Last edited by polimpo4; 04-14-2018 at 19:11.
polimpo4 is offline
NEXO.
Member
Join Date: May 2016
Location: Pakistan
Old 04-13-2017 , 10:20   Re: Spec Bots Plugin 2017
Reply With Quote #3

When I change name bots

To my sv ip and contact

Bots not work I will post here sma
NEXO. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-13-2017 , 15:25   Re: Spec Bots Plugin 2017
Reply With Quote #4

Post it then.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
NEXO.
Member
Join Date: May 2016
Location: Pakistan
Old 04-14-2017 , 07:25   Re: Spec Bots Plugin 2017
Reply With Quote #5

Here
Attached Files
File Type: sma Get Plugin or Get Source (PMN_BOT_SPEC.sma - 1008 views - 4.1 KB)
NEXO. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-14-2017 , 08:15   Re: Spec Bots Plugin 2017
Reply With Quote #6

A player name can't have more than 32 characters. You have one with 34.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
polimpo4
Member
Join Date: Jan 2017
Old 04-26-2017 , 09:00   Re: Spec Bots Plugin 2017
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
A player name can't have more than 32 characters. You have one with 34.
Thanks Broh ;) I Fixed It By Adding One More Table For Another Bot. xD .. I Will Let It For You. ;)... Just Change Name Bots Again xD
Attached Files
File Type: sma Get Plugin or Get Source (PMN_BOT_SPEC (1).sma - 1023 views - 5.1 KB)

Last edited by polimpo4; 04-14-2018 at 19:07.
polimpo4 is offline
Old 05-26-2017, 20:42
iclassdon
This message has been deleted by iclassdon.
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 05-29-2017 , 13:00   Re: Spec Bots Plugin 2017
Reply With Quote #9

I have been using this for a week now it has a few bugs. I have to remove it for now would love to use it when fixed.

1. bots duplicate names
2. sometimes bot ends up in Ct or T team
iclassdon is offline
Send a message via MSN to iclassdon
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 05-03-2018 , 15:51   Re: Spec Bots Plugin 2017
Reply With Quote #10

UPDATED CODE
-Added Check for players every round rather than connect check idk but some time it bugs while cheking using client_connect function.

Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
 
#define PLUGIN  "botespectador"
#define AUTHOR  "_|Polimpo4|_"
#define VERSION "1.0"
 
new szname_bot[] = "EzPz";                   ////////// NOME BOT 1
new szname_bot2[] = "Jason";             ////////// NOME BOT 2
new szname_bot3[] = ":P";            ////////// NOME BOT 3
 
new bool:bot_on, bot_id;
new bool:bot_on2, bot_id2;
new bool:bot_on3, bot_id3;
 
//Cvars
new cv_KickBots, cv_ConnectBots
 
public plugin_init()
{
    register_plugin("botespectador", "1.0", "_|Polimpo4|_");
    register_logevent("check_players", 2, "1=Round_Start")

    cv_KickBots = register_cvar("cv_KickBots","5");                 
    cv_ConnectBots = register_cvar("cv_ConnectBots","0");
    
    bot_on=false;
    bot_on2=false;
    bot_on3=false;
    bot_id=0;
    bot_id2=0;
    bot_id3=0;
    set_task(1.4,"fake_make");
    set_task(1.4,"fake_make2");
    set_task(1.4,"fake_make3");
    return PLUGIN_CONTINUE
}
 
public fake_make()
{    
    new rj[128];
    if((!bot_on)&&(!bot_id))
    {
        bot_id=engfunc(EngFunc_CreateFakeClient,szname_bot);
        if(bot_id > 0)
        {
            engfunc(EngFunc_FreeEntPrivateData,bot_id);
            dllfunc(DLLFunc_ClientConnect,bot_id,szname_bot,"20.05.45.45.2",rj);
            if(is_user_connected(bot_id))
            {
                dllfunc(DLLFunc_ClientPutInServer, bot_id);
                set_pev(bot_id,pev_spawnflags,pev(bot_id,pev_spawnflags)|FL_FAKECLIENT);
                set_pev(bot_id,pev_flags,pev(bot_id,pev_flags)|FL_FAKECLIENT);
                cs_set_user_team(bot_id, CS_TEAM_SPECTATOR);
                bot_on = true;
            }        
        }        
    }
   
    return PLUGIN_CONTINUE;    
}  
 
public fake_make2()
{    
    new rj[128];
    if((!bot_on2)&&(!bot_id2))
    {
        bot_id2=engfunc(EngFunc_CreateFakeClient,szname_bot2);
        if(bot_id2 > 0)
        {
            engfunc(EngFunc_FreeEntPrivateData,bot_id2);
            dllfunc(DLLFunc_ClientConnect,bot_id2,szname_bot2,"20.05.45.45.2",rj);
            if(is_user_connected(bot_id2))
            {
                dllfunc(DLLFunc_ClientPutInServer, bot_id2);
                set_pev(bot_id2,pev_spawnflags,pev(bot_id2,pev_spawnflags)|FL_FAKECLIENT);
                set_pev(bot_id2,pev_flags,pev(bot_id2,pev_flags)|FL_FAKECLIENT);
                cs_set_user_team(bot_id2, CS_TEAM_SPECTATOR);
                bot_on2 = true;
            }        
        }        
    }
   
    return PLUGIN_CONTINUE;    
}  
public fake_make3()
{    
    new rj[128];
    if((!bot_on3)&&(!bot_id3))
    {
        bot_id3=engfunc(EngFunc_CreateFakeClient,szname_bot3);
        if(bot_id3 > 0)
        {
            engfunc(EngFunc_FreeEntPrivateData,bot_id3);
            dllfunc(DLLFunc_ClientConnect,bot_id3,szname_bot3,"20.05.45.45.2",rj);
            if(is_user_connected(bot_id3))
            {
                dllfunc(DLLFunc_ClientPutInServer, bot_id3);
                set_pev(bot_id3,pev_spawnflags,pev(bot_id3,pev_spawnflags)|FL_FAKECLIENT);
                set_pev(bot_id3,pev_flags,pev(bot_id3,pev_flags)|FL_FAKECLIENT);
                cs_set_user_team(bot_id3, CS_TEAM_SPECTATOR);
                bot_on3 = true;
            }        
        }        
    }
   
    return PLUGIN_CONTINUE;    
}
 
public client_disconnect(id)
{
    new players[32], num
    get_players(players, num, "c" )

    new szConnectBots = get_pcvar_num(cv_ConnectBots)
    
    if(num < szConnectBots && !bot_on)
    {
        fake_make()
        fake_make2()
        fake_make3()    
    }   
}
 
public client_connect(id)
{
    check_players(id)
}  

public check_players(id)
{
    new players[32], num
    get_players(players, num, "c" )
 
    new szKickBots = get_pcvar_num(cv_KickBots)
 
    if(num >= szKickBots && bot_on)
    {
        bot_on = false 
        bot_on2 = false 
        bot_on3 = false     
        bot_id=0
        bot_id2=0
        bot_id3=0   
        server_cmd("kick ^"%s^"", szname_bot); 
        server_cmd("kick ^"%s^"", szname_bot2); 
        server_cmd("kick ^"%s^"", szname_bot3); 
    }
}
__________________

Last edited by Sanjay Singh; 05-05-2018 at 10:04.
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
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 14:03.


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