/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>
#define PLUGIN "Botok"
#define VERSION "1.0"
#define AUTHOR "Bence98007"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(1.0, "jatekost_keszit")
}
public plugin_precache()
{
set_task(1.0, "ct_jatekost_keszit")
set_task(1.0, "t_jatekost_keszit")
set_task(1.0, "spec_jatekost_keszit")
}
public ct_jatekost_keszit()
{
new buffer[75]
formatex(buffer, sizeof(buffer) - 1, "[DubStepCity] ADMIN BOT CT")
new bot
bot = engfunc(EngFunc_CreateFakeClient, buffer)
new ptr[128]
dllfunc(DLLFunc_ClientConnect, bot, "127.0.0.1", ptr)
dllfunc(DLLFunc_ClientPutInServer, bot)
set_user_info(bot, "rate", "3500")
set_user_info(bot, "cl_updaterate", "25")
set_user_info(bot, "cl_lw", "1")
set_user_info(bot, "cl_lc", "1")
set_user_info(bot, "cl_dlmax", "128")
set_user_info(bot, "cl_righthand", "1")
set_user_info(bot, "_vgui_menus", "0")
set_user_info(bot, "_ah", "0")
set_user_info(bot, "dm", "0")
set_user_info(bot, "tracker", "0")
set_user_info(bot, "friends", "0")
set_user_info(bot, "*bot", "1")
cs_set_user_team(bot, CS_TEAM_CT, CS_DONTCHANGE)
}
public t_jatekost_keszit()
{
new buffer[75]
formatex(buffer, sizeof(buffer) - 1, "[DubStepCity] ADMIN BOT TE")
new bot
bot = engfunc(EngFunc_CreateFakeClient, buffer)
new ptr[128]
dllfunc(DLLFunc_ClientConnect, bot, "127.0.0.1", ptr)
dllfunc(DLLFunc_ClientPutInServer, bot)
set_user_info(bot, "rate", "3500")
set_user_info(bot, "cl_updaterate", "25")
set_user_info(bot, "cl_lw", "1")
set_user_info(bot, "cl_lc", "1")
set_user_info(bot, "cl_dlmax", "128")
set_user_info(bot, "cl_righthand", "1")
set_user_info(bot, "_vgui_menus", "0")
set_user_info(bot, "_ah", "0")
set_user_info(bot, "dm", "0")
set_user_info(bot, "tracker", "0")
set_user_info(bot, "friends", "0")
set_user_info(bot, "*bot", "1")
cs_set_user_team(bot, CS_TEAM_T, CS_DONTCHANGE)
}
public spec_jatekost_keszit()
{
new buffer[75]
new bot
bot = engfunc(EngFunc_CreateFakeClient, buffer)
new ptr[128]
dllfunc(DLLFunc_ClientConnect, bot, "127.0.0.1", ptr)
dllfunc(DLLFunc_ClientPutInServer, bot)
set_user_info(bot, "rate", "3500")
set_user_info(bot, "cl_updaterate", "25")
set_user_info(bot, "cl_lw", "1")
set_user_info(bot, "cl_lc", "1")
set_user_info(bot, "cl_dlmax", "128")
set_user_info(bot, "cl_righthand", "1")
set_user_info(bot, "_vgui_menus", "0")
set_user_info(bot, "_ah", "0")
set_user_info(bot, "dm", "0")
set_user_info(bot, "tracker", "0")
set_user_info(bot, "friends", "0")
set_user_info(bot, "*bot", "1")
cs_set_user_team(bot, CS_TEAM_SPECTATOR, CS_DONTCHANGE)
}