Crash happens because of this plugin:
1.unprecahcer_ultimate.amxx
2.precache_control.amxx
Plugins are great and work great,but you can not use them on all maps.
To avoid crash,do the following:
Delete all .mdl and .spr in
cstrike
addons
amxmodx
configs
precacheControl
Also in unprecahcer_ultimate.sma delete:
PHP Code:
new const g_Models[][] =
{
"models/player/militia/militia.mdl",
"models/player/spetsnaz/spetsnaz.mdl",
"models/v_c4.mdl",
"models/p_c4.mdl",
"models/w_c4.mdl",
"models/shield/p_shield_deagle.mdl",
"models/shield/p_shield_fiveseven.mdl",
"models/shield/p_shield_flashbang.mdl",
"models/shield/p_shield_glock18.mdl",
"models/shield/p_shield_hegrenade.mdl",
"models/shield/p_shield_p228.mdl",
"models/shield/p_shield_smokegrenade.mdl",
"models/shield/p_shield_usp.mdl",
"models/shield/v_shield_deagle.mdl",
"models/shield/v_shield_fiveseven.mdl",
"models/shield/v_shield_flashbang.mdl",
"models/shield/v_shield_glock18.mdl",
"models/shield/v_shield_hegrenade.mdl",
"models/shield/v_shield_p228.mdl",
"models/shield/v_shield_smokegrenade.mdl",
"models/shield/v_shield_usp.mdl",
"models/shield/v_shield_knife.mdl",
"models/v_shield.mdl",
"models/p_shield.mdl",
"models/w_shield.mdl",
"models/v_shield_r.mdl",
"models/p_shield_r.mdl",
"models/w_shield_r.mdl",
"models/w_backpack.mdl",
"models/hostage01.mdl",
"models/hostage02.mdl",
"models/hostage03.mdl",
"models/hostage04.mdl",
"models/hostage05.mdl",
"models/hostage06.mdl",
"models/hostage07.mdl",
"models/hostage08.mdl",
"models/player/vip/vip.mdl",
"sprites/c4.spr",
"sprites/ic4.spr",
"sprites/ihostage.spr",
"sprites/iplayerc4.spr",
"sprites/iplayervip.spr",
"sprites/ibackpack.spr",
"models/p_awp.mdl",
"models/v_awp.mdl",
"models/p_g3sg1.mdl",
"models/v_g3sg1.mdl",
"models/p_scout.mdl",
"models/v_scout.mdl",
"models/p_m249.mdl",
"models/v_m249.mdl",
"models/p_sg552.mdl",
"models/v_sg552.mdl",
"models/p_aug.mdl",
"models/v_aug.mdl",
"models/p_sg550.mdl",
"models/v_sg550.mdl",
"models/p_m3.mdl",
"models/v_m3.mdl",
"models/w_m3.mdl",
"models/p_mac10.mdl",
"models/v_mac10.mdl",
"models/p_ump45.mdl",
"models/v_ump45.mdl",
"models/p_fiveseven.mdl",
"models/v_fiveseven.mdl",
"models/p_p228.mdl",
"models/v_p228.mdl",
"models/p_mp5.mdl",
"models/v_mp5.mdl",
"models/v_tmp.mdl",
"models/p_tmp.mdl",
"models/p_galil.mdl",
"models/v_galil.mdl"
}
PHP Code:
register_forward(FM_PrecacheModel, "PrecacheModel")
PHP Code:
public PrecacheModel(const szModel[])
{
for(new i = 0; i < sizeof(g_Models); i++)
{
if(containi(szModel, g_Models[i]) != -1 )
{
forward_return(FMV_CELL, 0)
return FMRES_SUPERCEDE
}
}
return FMRES_IGNORED
}
Compile plugin,then add new unprecahcer_ultimate.amxx
After that, you will not have any problems with this mod.