floringold 7 Posted January 5, 2019 Share Posted January 5, 2019 Nume:player bot versiune- Descriere detaliata:vreau un plugin bun sa meargă player bot 2 boti sa stea spectatori automat si sa dispară cand le dau eu kick Quote Link to comment Share on other sites More sharing options...
@_@KaiN- 18 Posted January 5, 2019 Share Posted January 5, 2019 1 hour ago, floringold said: Descriere detaliata:vreau un plugin bun sa meargă player bot 2 boti sa stea spectatori automat si sa dispară cand le dau eu kick Nu exista asa ceva , bot-ul este pus sa stea la spec non-stop. Poti doar sa scoti cvar-ul si bot-ul sa nu mai fie pe server. Quote #include <amxmodx> #include <fakemeta> #include <cstrike> #define PLUGIN "Bot-Fake" #define VERSION "1.0" #define AUTHOR "Author" new g_pEnable; new g_pBotName; new g_pMaxPlayers; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); g_pEnable = register_cvar("bw_enable", "1"); g_pBotName = register_cvar("bw_botname", "Nume-bot"); g_pMaxPlayers = register_cvar("bw_maxplayers", "22"); if( get_pcvar_num(g_pEnable) ) { set_task( 5.0, "CreateBot" ); } } public client_connect(id) { if( get_playersnum() >= get_pcvar_num(g_pMaxPlayers) ) { new szBotName[33]; get_pcvar_string(g_pBotName, szBotName, 32); server_cmd("kick ^"%s^"", szBotName); } } public CreateBot() { new szBotName[33]; get_pcvar_string(g_pBotName, szBotName, 32); new id = engfunc(EngFunc_CreateFakeClient, szBotName); 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); } Cvar-uri pentru functionarea bot-ului. Quote bw_enable 1 - 1 activat/0-dezactivat bw_botname "Nume Bot" - Adauga numele botului bw_maxplayers 32- Cand intra n% playeri sa iasa botul de pe server le adaugi in amxx.cfg P.S. Data viitoare incerca sa scrii titlul cu numele plugin-ului pe care îl vrei. Ex: Cerere plugin - BotSpec. Deoarece poate și alte persoane au acceasi întrebare și se crează un nou topic. Mulțumesc frumos de înțelegere. Quote Link to comment Share on other sites More sharing options...
floringold 7 Posted January 6, 2019 Author Share Posted January 6, 2019 pot adauga 2 boti? deodata pe server? Quote Link to comment Share on other sites More sharing options...
@_@KaiN- 18 Posted January 10, 2019 Share Posted January 10, 2019 On 1/6/2019 at 6:24 AM, floringold said: pot adauga 2 boti? deodata pe server? Da Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.