as i said :
Quote:
in future use..and we can also use a function that can be run when client dead in fn_CheckIfDead..
|
and dead cache is just for example
ex :
PHP Code:
#include <amxmodx>
new g_IsDead=0
public plugin_init()
{
register_plugin("Get Client Dead","1.0","Nea")
register_message(get_user_msgid("ScoreAttrib"),"fn_CheckIfDied")
}
public fn_CheckIfDied(_1,_2,_3/*i don't care about them anyway*/)
{
new id = get_msg_arg_int(1) // We Get User ID
new flag = get_msg_arg_int(2) // Get User Status
if(flag ==1) // He's Dead Now
{
g_IsDead |= (1<<(id & 31))
fn_ClientDied(id)
}
else // He's Alive
g_IsDead &= ~ ( 1<< ( id & 31) )
}
public fn_ClientDied(id)
{
// So Here We Can Put Block Of Code
}
But it will be good idea? that's the question..