Raised This Month: $51 Target: $400
 12% 

[HELP] I can't detect a player killed by falling


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-08-2018 , 13:49   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #11

It doesn't appear that client_death() triggers on fall death.

Why not use deathmsg?
PHP Code:
register_event"DeathMsg" "Event_DeathMsg" "a" "1=0" "3=world" ); 
__________________
Bugsy is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 04-08-2018 , 13:56   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #12

Tried changin killer to victim, that too didn't help
__________________
CrAzY MaN is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-08-2018 , 14:02   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #13

Quote:
Originally Posted by CrAzY MaN View Post
Not working
Try also iKiller == iVictim, mby it'll work.
DarthMan is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-08-2018 , 14:02   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #14

Try doing a client_print() with no conditions within client_death() and do a fall death. It is not displaying anything for me but when I kill a player it does print. Again, why not use DeathMsg?
__________________
Bugsy is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 04-08-2018 , 14:32   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #15

Quote:
Originally Posted by Bugsy View Post
Try doing a client_print() with no conditions within client_death() and do a fall death. It is not displaying anything for me but when I kill a player it does print. Again, why not use DeathMsg?
For DeathMsg, i think greanade kills doesnt make sense. So i changed it to client_death().

It would be great if someone find this
__________________
CrAzY MaN is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-08-2018 , 14:35   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #16

Weapon will not be world for a grande kill, c4 either. Test it and see.
__________________
Bugsy is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-08-2018 , 22:26   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #17

PHP Code:
register_event("DeathMsg""xDeathMsg""a""1>0")

    new 
iKiller read_data(1);
    new 
iVictim read_data(2);
    
    static 
sWeapon[16]; 
    
read_data4sWeaponsizeofsWeapon ) - );
            
    if( 
iKiller == iVictim && equalsWeapon"world") ) return
        
// suicide
        
    
if( !iKiller && equalsWeapon"world") ) return
        
// falled    
etc etc etc 

Last edited by iceeedr; 04-08-2018 at 22:27.
iceeedr is offline
Send a message via Skype™ to iceeedr
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 04-08-2018 , 22:56   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #18

Quote:
Originally Posted by iceeedr View Post
PHP Code:
register_event("DeathMsg""xDeathMsg""a""1>0")

    new 
iKiller read_data(1);
    new 
iVictim read_data(2);
    
    static 
sWeapon[16]; 
    
read_data4sWeaponsizeofsWeapon ) - );
            
    if( 
iKiller == iVictim && equalsWeapon"world") ) return
        
// suicide
        
    
if( !iKiller && equalsWeapon"world") ) return
        
// falled    
etc etc etc 
I know this, but if u can do it with client_death,it would be fine
__________________
CrAzY MaN is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-08-2018 , 23:11   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #19

Again, I don't think client_death() works for fall or possibly suicide death either. I don't understand why you won't just use DeathMsg since it's confirmed working.
__________________
Bugsy is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-08-2018 , 23:23   Re: [HELP] I can't detect a player killed by falling
Reply With Quote #20

Quote:
Originally Posted by Bugsy View Post
Again, I don't think client_death() works for fall or possibly suicide death either. I don't understand why you won't just use DeathMsg since it's confirmed working.
Because it wants this function to implement in the "xp" plugin. However, it uses the client_death functions of hit_place, but it can use the DeathMsg and Client_death to "catch" the two information and use, I do not know why all this problem ...
iceeedr is offline
Send a message via Skype™ to iceeedr
Reply



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 16:45.


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