Raised This Month: $ Target: $400
 0% 

Solved This Way is Good For Get Client Dead?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nea
Junior Member
Join Date: Jan 2017
Old 03-10-2017 , 10:06   Re: This Way is Good For Get Client Dead?
Reply With Quote #4

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..

Last edited by nea; 03-10-2017 at 10:16.
nea is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode