i tryed to change some models in bio_random_models.sma , and when i try to compile the sma , it gives this error.
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/php73UjRl.sma(6) : fatal error 110: assertion failed: Biohazard functions file required!
Compilation aborted.
1 Error.
and this is the sma...
Code:
#include <amxmodx>
#include <fakemeta>
#tryinclude <biohazard>
#if !defined _biohazard_included
#assert Biohazard functions file required!
#endif
new g_zombie_models[][] =
{
"models/player/extreme1/extreme1.mdl",
"models/player/extreme2/extreme2.mdl",
"models/player/extreme3/extreme3.mdl",
"models/player/extreme4/extreme4.mdl"
}
new cvar_randommodels
public plugin_precache()
{
register_plugin("random models", "0.1", "cheap_suit")
is_biomod_active() ? plugin_precache2() : pause("ad")
}
public plugin_precache2()
{
cvar_randommodels = register_cvar("bh_random_models", "1")
for(new i = 0; i < sizeof g_zombie_models; i++)
precache_model(g_zombie_models[i])
}
public event_infect2(id) if(get_pcvar_num(cvar_randommodels))
{
static ent; ent = fm_find_ent_by_owner(-1, "player_model", id)
if(pev_valid(ent)) engfunc(EngFunc_SetModel, ent, g_zombie_models[random(sizeof g_zombie_models)])
}
stock fm_find_ent_by_owner(index, const classname[], owner, jghgtype = 0)
{
static strtype[11] = "classname", ent; ent = index
switch(jghgtype)
{
case 1: strtype = "target"
case 2: strtype = "targetname"
}
while((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner) {}
return ent
}
could someone give me the amxx for this sma ? i tryed more different ways to compile this... it doesen't work