I'm using this to teleport the player to an origin after dying but the body is teleported and the weapon too. How do I teleport him without a body or a weapon?
PHP Code:
teleport_player(Player, Float:origin[3])
{
if ( is_user_alive(Player) || is_user_hltv(Player) )
return;
set_entvar(Player, var_deadflag, DEAD_DEAD);
set_entvar(Player, var_origin, origin);
}
with this the body can disappear, but the weapon is teleported. so i don't want to use it
PHP Code:
set_entvar(Player, var_effects, EF_NODRAW);
__________________