For those of you that use fakemeta, you can do this:
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_Spawn, "Forward_Spawn", 1);
}
public Forward_Spawn(ent)
{
if (!is_user_alive(ent)) // you could also use is_user_connected()
return FMRES_IGNORED;
// Code...
return FMRES_HANDLED;
}
Never tested this before though, so someone let me know if I'm wrong.
__________________