Raised This Month: $ Target: $400
 0% 

find dead target


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
padilha007
Senior Member
Join Date: Jul 2008
Old 08-01-2008 , 19:33   Re: find dead target
Reply With Quote #2

humnn.... Try this:

PHP Code:
public plugin_init()
{
register_event("DeathMsg",     "event_death",     "a")

PHP Code:
public event_death()
{
g_hasdeath[id] == true

And put a commando.

PHP Code:
if(g_hasdeath[id] == true ) {
Your command

Or

PHP Code:
    new body find_dead_body(id)
    if(!
fm_is_valid_ent(body))
    {

    } 
PHP Code:
stock find_dead_body(id)
{
    static 
Float:origin[3]
    
pev(idpev_originorigin)
    
    new 
ent
    
static classname[32]    
    while((
ent fm_find_ent_in_sphere(entoriginget_pcvar_float(cvar_revival_dis))) != 0
    {
        
pev(entpev_classnameclassname31)
        if(
equali(classname"fake_corpse") && fm_is_ent_visible(ident))
            return 
ent
    
}
    return 
0


Last edited by padilha007; 08-01-2008 at 19:37.
padilha007 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 05:28.


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