Well I need to set this model into the floor
PHP Code:
public fwdplayerkill(id, attackid)
{
if( !is_user_connected(attackid) )
return HAM_IGNORED
new Float:origin[3]
pev(id, pev_origin, origin)
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
set_pev(ent, pev_classname, "fake_deadbody");
set_pev(ent, pev_solid, SOLID_NOT)
set_pev(ent, pev_movetype, MOVETYPE_NONE)
engfunc(EngFunc_SetModel, ent, BODYMODEL)
engfunc(EngFunc_SetSize, ent, Float:{-100.0, -100.0, -100.0}, Float:{100.0, 100.0, 100.0});
engfunc(EngFunc_SetOrigin, ent, origin)
//engfunc(EngFunc_DropToFloor, ent)
return HAM_IGNORED
}
I try with fm_distance_to_floor but i cant.
__________________