Re: Spec Bots Plugin 2017
Quote:
|
Re: Spec Bots Plugin 2017
Quote:
If they know my server is banned ! |
Re: Spec Bots Plugin 2017
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 |
Re: Spec Bots Plugin 2017
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? |
Re: Spec Bots Plugin 2017
Quote:
|
Re: Spec Bots Plugin 2017
Quote:
https://www.gametracker.com/search/cs/PT/ |
Re: Spec Bots Plugin 2017
Quote:
2rd... You Cannot Answer By Staff... ;) 3rd... Thanks By The Tips. But At That Time I As Newbie At Programming ;)... 4rd... If You Want Remake The Code Fell Free To Do It ;) Just Let Little Credit To Basic Idea Or Basic Code To Me... ;) |
Re: Spec Bots Plugin 2017
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> |
Re: Spec Bots Plugin 2017
Way too hardcoded and it is against valve's policy of trust.
|
Re: Spec Bots Plugin 2017
Hello! I put this plugin on my server, i change the name bots, i save, i restart the server but the bots name doesn't changed. Please, help me.
#include <amxmodx> #include <cstrike> #include <fakemeta> #define PLUGIN "botespectador" #define AUTHOR "_|Polimpo4|_" #define VERSION "1.0" new szname_bot[] = "WWW.VIPGAME.RO"; ////////// NOME BOT 1 new szname_bot2[] = "TS.VIPGAME.RO"; ////////// NOME BOT 2 new szname_bot3[] = "89.34.25.20:27015"; ////////// 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|_"); 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,sznam e_bot); if(bot_id > 0) { engfunc(EngFunc_FreeEntPrivateData,bot_id); dllfunc(DLLFunc_ClientConnect,bot_id,szname_b ot,"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,szna me_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,pe v_spawnflags)|FL_FAKECLIENT); set_pev(bot_id2,pev_flags,pev(bot_id2,pev_fla gs)|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,szna me_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,pe v_spawnflags)|FL_FAKECLIENT); set_pev(bot_id3,pev_flags,pev(bot_id3,pev_fla gs)|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); } } |
All times are GMT -4. The time now is 11:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.