so many codes, ill post one too
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define SK_MINZ Float:{-2.440000, -3.540000, -4.960000 }
#define SK_MAXZ Float:{5.880000, 3.780000, 4.750000}
public plugin_init() {
register_plugin("Skeletons", "1.0", "SAMURAI");
set_msg_block(get_user_msgid("ClCorpse"), BLOCK_SET);
register_event("DeathMsg", "eDeath", "a");
register_event("HLTV", "eNewRound", "a", "1=0", "2=0");
}
public plugin_precache()
precache_model("models/skeleton.mdl");
public eDeath() {
new victim = read_data(2);
static Float:origin[3];
pev(victim, pev_origin, origin);
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
origin[2] -= 32;
engfunc(EngFunc_SetOrigin, ent, origin);
if( !pev_valid(ent) )
return 0;
engfunc(EngFunc_SetModel, ent, "models/skeleton.mdl");
set_pev(ent, pev_classname, "amxx_skeleton");
dllfunc(DLLFunc_Spawn, ent);
set_pev(ent, pev_solid, SOLID_BBOX);
set_pev(ent, pev_movetype, MOVETYPE_FLY);
engfunc(EngFunc_SetSize, ent, SK_MINZ, SK_MAXZ);
engfunc(EngFunc_DropToFloor, ent);
return 0;
}
public eNewRound() {
new skeletons = -1;
while((skeletons = engfunc(EngFunc_FindEntityByString, skeletons, "classname", "amxx_skeleton")))
engfunc(EngFunc_RemoveEntity, skeletons );
}
__________________