By blocking the ClCorpse Event. There two ways you can block it. This code is setup for when CSDM is active. This should work with 2.1 not sure about 2.0
It not an entity either. Think it a brush or a temp entity or something.
PS. Not sure if this will block the ghost body for net problem but this will block the one left by player dying on a longer respawn time then 0.5 secs
Code:
#include <amxmodx>
#include <csdm>
#define OneWay
new ClCorpse;
public plugin_init()
{
register_plugin("Corpses", "1.0", "What");
ClCorpse = get_user_msgid("ClCorpse");
#if !defined OneWay
register_message(ClCorpse, "Corpse");
#endif
}
#if defined OneWay
public csdm_StateChange(csdm_state)
{
switch(csdm_state)
{
case CSDM_ENABLE:
set_msg_block(ClCorpse, BLOCK_SET);
case CSDM_DISABLE:
set_msg_block(ClCorpse, BLOCK_NOT);
}
}
#else
public Corpse()
{
if(csdm_active())
return PLUGIN_HANDLED;
return PLUGIN_CONTINUE;
}
#endif
__________________