Raised This Month: $ Target: $400
 0% 

How to check if enemy was killed trough walls?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pob18
Member
Join Date: Jun 2014
Old 07-01-2014 , 13:57   Re: How to check if enemy was killed trough walls?
Reply With Quote #5

What I'm doing wrong? If the enemy kills me trough a wall, the message displays "not visible", but if is visible the message stills the same.

PHP Code:
public hook_death()
{
    if(!
is_visible(nKillerread_data(2)))
    {
        
client_print(0,print_chat,"not visible")
    
    }  
    
    if(
is_visible(nKillerread_data(2)))
    {
        
client_print(0,print_chat,"visible")
    
    }  

    if ( (
read_data(3) == 1) && (read_data(5) == 0) )
    {
        
screenFade()
        
set_dhudmessage(RGB, -1.00.1511.01.00.10.1)
        
show_dhudmessage(nKiller"headshot")
    }
    else
        
screenFade()

pob18 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 21:13.


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