Raised This Month: $51 Target: $400
 12% 

Bot Spec


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
james 007
Member
Join Date: Dec 2014
Location: Portugal
Old 10-07-2016 , 10:08   Bot Spec
Reply With Quote #1

delete post

Last edited by james 007; 12-02-2016 at 09:27. Reason: delete
james 007 is offline
aEEk
Member
Join Date: May 2012
Location: Romania
Old 10-07-2016 , 19:30   Re: Bot Spec
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
 
#define PLUGIN  "botespectador"
#define AUTHOR  "MpL# James Configurador"
#define VERSION "1.0"
 
new szname_bot[] = "Manipulation# Community";                   ////////// NOME BOT 1
new szname_bot2[] = "VIP 2 euros SVIP 2.50 euros";             ////////// NOME BOT 2
new szname_bot3[] = "IP Ts3: 188.93.234.234:10275";            ////////// NOME BOT 3
 
new bool:bot_onbot_id;
new 
bool:bot_on2bot_id2;
new 
bool:bot_on3bot_id3;
 
//Cvars
new cv_KickBotscv_ConnectBots
 
public plugin_init()
{
    
register_plugin("botespectador""1.0""MpL# James Configurador");
    
    
cv_KickBots register_cvar("cv_KickBots","16");                 
    
cv_ConnectBots register_cvar("cv_ConnectBots","16");
    
    
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_ClientPutInServerbot_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_idCS_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_ClientPutInServerbot_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_id2CS_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_ClientPutInServerbot_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_id3CS_TEAM_SPECTATOR);
                
bot_on3 true;
            }        
        }        
    }
   
    return 
PLUGIN_CONTINUE;    
}
 
public 
client_disconnect(id)
{
    new 
players[32], num
    get_players
(playersnum"c" )

    new 
szConnectBots get_pcvar_num(cv_ConnectBots)
    
    if(
num szConnectBots && !bot_on)
    {
        
fake_make()
        
fake_make2()
        
fake_make3()    
    }   
}
 
public 
client_connect(id)
{
    new 
players[32], num
    get_players
(playersnum"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 aEEk; 10-07-2016 at 19:30.
aEEk is offline
Send a message via Yahoo to aEEk Send a message via Skype™ to aEEk
Amine Belokda
Senior Member
Join Date: Oct 2015
Location: ML_NOT_FOUND
Old 10-07-2016 , 20:00   Re: Bot Spec
Reply With Quote #3

Quote:
Originally Posted by james 007 View Post
hello someone can help me in this plugin I wanted to do the following +16 bots kick players -16 bots players connect to the server



Code:
#include <amxmodx> #include <cstrike> #include <fakemeta>   #define PLUGIN  "botespectador" #define AUTHOR  "MpL# James Configurador" #define VERSION "1.0"   new szname_bot[] = "Manipulation# Community";                   ////////// NOME BOT 1 new szname_bot2[] = "VIP 2 euros SVIP 2.50 euros";             ////////// NOME BOT 2 new szname_bot3[] = "IP Ts3: 188.93.234.234:10275";            ////////// 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", "MpL# James Configurador");         cv_KickBots = register_cvar("cv_KickBots","20");                      cv_ConnectBots = register_cvar("cv_ConnectBots","16");         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) {     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);      } }
Delet This And Add Plugin "Bot Names"
Add Plugin In directory : plugins and goto amxmodx/plugins.ini add bots-names.amxx
Paste botnames.txt in amxmodx/configs/*.*botnames.txt and open botnames.txt add your bot spec message and Goto amxx.cfg add : amxx_addfake "number bots spec"
__________________
Amine Belokda is offline
Send a message via MSN to Amine Belokda
james 007
Member
Join Date: Dec 2014
Location: Portugal
Old 10-10-2016 , 18:50   Re: Bot Spec
Reply With Quote #4

aEEk no work
james 007 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 05:34.


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