[Plugin] Spec Bot 2021 (fake bots nedetectabil)

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Scooby-Doo
Membru, skill +1
Membru, skill +1
Posts: 271
Joined: 23 Oct 2014, 23:27
Detinator Steam: Da
CS Status: ~Online~
Detinator server CS: ZOMBIE.OLDGODS.RO
SteamID: darian433
Fond eXtream: 0
Location: Romania
Discord: Darian433#0850
Has thanked: 21 times
Been thanked: 16 times
Contact:

10 Oct 2021, 16:11

Descriere: Adauga 3 boti la spec, acestia nu sunt detectati de gametracker, botii se deconecteaza la X jucatori si se reconecteaza cand jucatorii scad sub X (x=cvar). Pluginul este testat si creat pentru reHLDS folosind amx 1.9.0.

Descarcare: click!

Nume: Spec Bot
Versiune: 1.2
Link oficial: https://oldgods.ro/forum/index.php?/top ... etectabil/

Instalare:
1. Fisierul nume_plugin.sma il puneti in addons/amxmodx/scripting
2. Fisierul nume_plugin.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
nume_plugin.amxx

4. Alti pasi necesari....

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):
bs_enable 0/1 - activeaza / dezactiveaza botii
bs_botname "nume" - numele primului bot
bs_botname2 "nume" - numele la al doilea bot
bs_botname3 "nume" - numele la al trilea bot
bs_maxplayers "nr" - la cati jucatori sa se deconecteze botii - cand jucatorii scad sub aceasta valoare, botii se vor reconecta. - VALOARE MAXIM 29 - nu folositi valoare mai mare de 29! Daca aveti mai putin de 32 slot-uri, folositi nr. slot -3 (=21).

5. SMA
SMA | Afiseaza codul
#include <amxmodx>
#include <fakemeta>
#include <amxmisc>

#define PLUGIN "Spec-Bots"
#define VERSION "1.0"
#define AUTHOR "Author"

new g_pEnable;
new g_pMaxPlayers;
new g_pBotName, g_pBotName2, g_pBotName3
new bool:bot_on, bot_on2, bot_on3;

public plugin_init() {
    // Plugin registration
    register_plugin(PLUGIN, VERSION, AUTHOR);
    
    // Plugin OFF-ON on values 0-1
    g_pEnable = register_cvar("bs_enable", "1");

    // Bot nicknames
    g_pBotName = register_cvar("bs_botname", "RESPAWN.OLDGODS.RO (dns)");
    g_pBotName2 = register_cvar("bs_botname2", "89.40.233.100:27015 (IP)");
    g_pBotName3 = register_cvar("bs_botname3", "forum: oldgods.ro/forum");
    
    // Min-Max values 5 & 29 - Disconnect happens at value + 1
    g_pMaxPlayers = create_cvar("bs_maxplayers", "29.0", FCVAR_NONE, _, true, 5.0, true, 29.0);

    // Sets bot connection confirmations off on each map change
    bot_on = false;
    bot_on2 = false;
    bot_on3 = false;

    // Checks and connects bots every 60s if requirements are met
    if(get_pcvar_num(g_pEnable)) {
        set_task(60.0, "AddBots", 0, _, _, "b");
    }

}

// On every client connection removes bots if threshold + 1 has been reached or surpassed
public client_connect(id) {
    if(get_pcvar_num(g_pEnable)) {
        if(get_playersnum(1) >= get_pcvar_num(g_pMaxPlayers) + 1) {
            RemoveBots();
        }
    }
}

// Removal of bots
public RemoveBots() {
        new szBotName[35];
        get_pcvar_string(g_pBotName, szBotName, charsmax(szBotName));
        server_cmd("kick ^"%s^"", szBotName);
        bot_on = false;
        new szBotName2[35];
        get_pcvar_string(g_pBotName2, szBotName2, charsmax(szBotName2));
        server_cmd("kick ^"%s^"", szBotName2);
        bot_on2 = false;
        new szBotName3[35];
        get_pcvar_string(g_pBotName3, szBotName3, charsmax(szBotName3));
        server_cmd("kick ^"%s^"", szBotName3);
        bot_on3 = false;
}

// Adds up to 3 bots if they're not connected and there's less players than the threshold
public AddBots() {
    if(get_playersnum(1) < get_pcvar_num(g_pMaxPlayers) && !bot_on) {
        AddBot();
        if(get_playersnum(1) < get_pcvar_num(g_pMaxPlayers) && !bot_on2) {
            AddBot2();
            if(get_playersnum(1) < get_pcvar_num(g_pMaxPlayers) && !bot_on3) {
                AddBot3();
            }
        }
    }
}

/* ------------- BOT CREATION ------------- */
public AddBot() {
    new szBotName[35];
    get_pcvar_string(g_pBotName, szBotName, charsmax(szBotName));
    
    new id = engfunc(EngFunc_CreateFakeClient, szBotName);
    if(!id) {
        return;
    }
    engfunc(EngFunc_FreeEntPrivateData, id);
    set_pev(id, pev_flags, pev(id, pev_flags) | FL_FAKECLIENT);
    
    new szMsg[128];
    dllfunc(DLLFunc_ClientConnect, id, szBotName, "127.0.0.1", szMsg);
    dllfunc(DLLFunc_ClientPutInServer, id);

    bot_on = true;
}

public AddBot2() {
    new szBotName2[35];
    get_pcvar_string(g_pBotName2, szBotName2, charsmax(szBotName2));
    
    new id = engfunc(EngFunc_CreateFakeClient, szBotName2);
    if(!id) {
        return;
    }
    engfunc(EngFunc_FreeEntPrivateData, id);
    set_pev(id, pev_flags, pev(id, pev_flags) | FL_FAKECLIENT);
    
    new szMsg[128];
    dllfunc(DLLFunc_ClientConnect, id, szBotName2, "127.0.0.1", szMsg);
    dllfunc(DLLFunc_ClientPutInServer, id);

    bot_on2 = true;
}

public AddBot3() {
    new szBotName3[35];
    get_pcvar_string(g_pBotName3, szBotName3, charsmax(szBotName3));
    
    new id = engfunc(EngFunc_CreateFakeClient, szBotName3);
    if(!id) {
        return;
    }
    engfunc(EngFunc_FreeEntPrivateData, id);
    set_pev(id, pev_flags, pev(id, pev_flags) | FL_FAKECLIENT);
    
    new szMsg[128];
    dllfunc(DLLFunc_ClientConnect, id, szBotName3, "127.0.0.1", szMsg);
    dllfunc(DLLFunc_ClientPutInServer, id);

    bot_on3 = true;
}
/* ------------- END BOT CREATION ------------- */
Imagini:
Image
Last edited by Scooby-Doo on 04 Nov 2021, 02:15, edited 3 times in total.
Discord: Darian433#0850

RoyalServer
User avatar
Scooby-Doo
Membru, skill +1
Membru, skill +1
Posts: 271
Joined: 23 Oct 2014, 23:27
Detinator Steam: Da
CS Status: ~Online~
Detinator server CS: ZOMBIE.OLDGODS.RO
SteamID: darian433
Fond eXtream: 0
Location: Romania
Discord: Darian433#0850
Has thanked: 21 times
Been thanked: 16 times
Contact:

10 Oct 2021, 16:16

Pentru cine doreste doar 2 boti:
- retras


ATENTIE: plugin-ul trebuie compilat folosind AMX 1.9. (sau versiuni mai mari).

Edit: am scos create_cvar, dadea bataie de cap.
Last edited by Scooby-Doo on 04 Nov 2021, 02:12, edited 2 times in total.
Discord: Darian433#0850

Mero^
Membru, skill +1
Membru, skill +1
Posts: 132
Joined: 17 Dec 2017, 22:41
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: bromybro1
SteamID: bromybro1
Fond eXtream: 0
Has thanked: 4 times
Been thanked: 3 times
Contact:

11 Oct 2021, 02:59

what about amx 1.8.2?
User avatar
Scooby-Doo
Membru, skill +1
Membru, skill +1
Posts: 271
Joined: 23 Oct 2014, 23:27
Detinator Steam: Da
CS Status: ~Online~
Detinator server CS: ZOMBIE.OLDGODS.RO
SteamID: darian433
Fond eXtream: 0
Location: Romania
Discord: Darian433#0850
Has thanked: 21 times
Been thanked: 16 times
Contact:

11 Oct 2021, 07:52

Mero^ wrote:
11 Oct 2021, 02:59
what about amx 1.8.2?
Doesn't compile, maybe you can compile on 1.9. and run it on 1.8.2 but i don't know if it will work. Using an old version doesn't help anyone, so upgrade to 1.9 at least.
Discord: Darian433#0850

User avatar
Scooby-Doo
Membru, skill +1
Membru, skill +1
Posts: 271
Joined: 23 Oct 2014, 23:27
Detinator Steam: Da
CS Status: ~Online~
Detinator server CS: ZOMBIE.OLDGODS.RO
SteamID: darian433
Fond eXtream: 0
Location: Romania
Discord: Darian433#0850
Has thanked: 21 times
Been thanked: 16 times
Contact:

04 Nov 2021, 02:12

Update 1.2 - versiune finala & testata timp de 30 de zile.
Discord: Darian433#0850

mrCiupaca
Membru nou
Membru nou
Posts: 1
Joined: 31 Aug 2022, 16:37
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Discord: Ciupaca#1249

31 Aug 2022, 16:40

cum il setez pentru un server de 12 sau 24 ? ca incerc sa il modific dar se decontecteaza la un numar diferit de maxplayers +1 si nu se deconecteaza frumos unde doar un bot are kick ci toti 3 dispar brusc si nu se mai reconecteaza , please help
User avatar
Laurentiu P.
Fost moderator
Fost moderator
Posts: 2549
Joined: 10 Jul 2013, 21:26
Detinator Steam: Da
Reputatie: Fost super moderator
Fond eXtream: 100
Has thanked: 26 times
Been thanked: 61 times
Contact:

31 Aug 2022, 22:24

mrCiupaca wrote:
31 Aug 2022, 16:40
cum il setez pentru un server de 12 sau 24 ? ca incerc sa il modific dar se decontecteaza la un numar diferit de maxplayers +1 si nu se deconecteaza frumos unde doar un bot are kick ci toti 3 dispar brusc si nu se mai reconecteaza , please help
12 sloturi - bs_maxplayers 9
24 sloturi - bs_maxplayers 21
no...
User avatar
DozerRadu
Membru, skill +1
Membru, skill +1
Posts: 114
Joined: 25 Jun 2017, 00:57
Detinator Steam: Da
CS Status: ACTIVEZ AICI
Detinator server CS: DA
SteamID: rusuraduo
Fond eXtream: 0
Location: Sânnicolau Mare
Has thanked: 23 times
Been thanked: 2 times

25 Sep 2022, 13:48

De ce nu apar boti pe server ?
Viaţa însăşi este magie, iar dacă nu crezi asta, măcar încearcă să o trăieşti ca pe ceva magic.



©Rusu Radu
User avatar
dudu ;x
Membru, skill 0
Membru, skill 0
Posts: 66
Joined: 15 Apr 2015, 16:48
Detinator Steam: Da
CS Status: de_dust2
Detinator server CS: da
Fond eXtream: 0
Location: brasov
Discord: Dudu ;x#3496
Has thanked: 2 times
Contact:

30 Sep 2022, 19:26

fake.sma(28) : error 017: undefined symbol "create_cvar"
Am eroarea asta cand compilez ma poate ajuta cineva?
lexz
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 917
Joined: 02 Nov 2020, 01:57
Detinator Steam: Da
Fond eXtream: 0
Discord: lexzor#0630
Has thanked: 70 times
Been thanked: 136 times

30 Sep 2022, 20:16

dudu ;x wrote:
30 Sep 2022, 19:26
fake.sma(28) : error 017: undefined symbol "create_cvar"
Am eroarea asta cand compilez ma poate ajuta cineva?
ia o versiune mai noua de compiler, 1.9.0, 1.10.0
User avatar
dudu ;x
Membru, skill 0
Membru, skill 0
Posts: 66
Joined: 15 Apr 2015, 16:48
Detinator Steam: Da
CS Status: de_dust2
Detinator server CS: da
Fond eXtream: 0
Location: brasov
Discord: Dudu ;x#3496
Has thanked: 2 times
Contact:

30 Sep 2022, 20:44

lexz wrote:
30 Sep 2022, 20:16
dudu ;x wrote:
30 Sep 2022, 19:26
fake.sma(28) : error 017: undefined symbol "create_cvar"
Am eroarea asta cand compilez ma poate ajuta cineva?
ia o versiune mai noua de compiler, 1.9.0, 1.10.0
Ajuta-ma te rog, nu am mai facut scripting pentru cs de 6 ani, nu stiu ce e cu noile versiuni. Am vazut ca pe amxx studio e 1.8, pe alt site am gasit niste chestii de 1.9, le-am copiat peste 1.8 dar tot la fel arata.

EDIT: Am rezovat. Mersi
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests