
Code: Select all
#include <amxmodx>#include <amxmisc>#include <cstrike>#include <engine>#include <fakemeta> #define PLUGIN "New Plug-In"#define VERSION "1.0"#define AUTHOR "author" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) set_task(1.0, "spawn_bot")} public spawn_bot() { new Bot = engfunc(EngFunc_CreateFakeClient, "Jonas") if (Bot == 0) return PLUGIN_CONTINUE dllfunc(MetaFunc_CallGameEntity, "player", Bot) set_pev(Bot, pev_flags, FL_FAKECLIENT) set_pev(Bot, pev_model, "") set_pev(Bot, pev_viewmodel2, "") set_pev(Bot, pev_modelindex, 0) set_pev(Bot, pev_renderfx, kRenderFxNone) set_pev(Bot, pev_rendermode, kRenderTransAlpha) set_pev(Bot, pev_renderamt, 0.0) cs_set_user_team(Bot, CS_TEAM_T) return PLUGIN_CONTINUE}