#include <amxmodx>
// https://github.com/Garey27/addtofullpack_manager
#include <addtofullpack_manager>
#include <fakemeta_util>
public plugin_precache()
{
precache_model("maps/unnamed.bsp");
}
public plugin_init()
{
register_clcmd("say /test", "cmdTest");
register_forward(FM_CheckVisibility, "fwFmCheckVisibilityPre", false)
}
new test_entity = 0;
public fwFmCheckVisibilityPre(const iIDEnt, const pSet)
{
forward_return(FMV_CELL, 1)
return FMRES_SUPERCEDE;
}
public cmdTest(id)
{
new Float:origin[3];
test_entity = fm_create_entity("func_wall");
//pev(id, pev_origin, origin);
fm_entity_set_model(test_entity, "maps/unnamed.bsp");
fm_entity_set_origin(test_entity, origin);
fm_entity_set_origin(id, origin);
fm_DispatchSpawn(test_entity);
fullpack_semiclip_enable(id, 0);
}