Quote:
Originally Posted by loki_himself
i tired that hull code from above and removed "&& !get_user_noclip(player) && !(pev(player,pev_solid) & SOLID_NOT)". i use resemiclip and when a player spawns on a teammate, he is considered stuck although he is not due to the semiclip. is that part above relevant for that?
|
It's because of the error Natsheh pointed out, it should be &&(pev(player,pev_solid)!=SOLID_NOT)
Anyway, I tried this code and it removed a faulty spawn successfully, give it a shot
PHP Code:
#include <amxmodx>
#include <engine>
public plugin_init()
{
register_plugin("Bad Spawn Remover", "1.0", "zXCaptainXz")
new ent = -1
new Float:origin[3]
while((ent = find_ent_by_class(ent, "info_player_start")))
{
entity_get_vector(ent, EV_VEC_origin, origin)
if(trace_hull(origin, HULL_HUMAN)&3)
{
remove_entity(ent);
}
}
ent = -1
while((ent = find_ent_by_class(ent, "info_player_deathmatch")))
{
entity_get_vector(ent, EV_VEC_origin, origin)
if(trace_hull(origin, HULL_HUMAN)&3)
{
remove_entity(ent);
}
}
}