Raised This Month: $ Target: $400
 0% 

player died in worldspawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Howdy!
Senior Member
Join Date: Feb 2007
Old 03-07-2007 , 08:09   player died in worldspawn
Reply With Quote #1

[__EDIT__]
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]

Last edited by Howdy!; 08-07-2008 at 11:31.
Howdy! is offline
FormulaZero
BANNED
Join Date: Feb 2007
Location: Sector 7G
Old 03-07-2007 , 08:22   Re: player died in worldspawn
Reply With Quote #2

I think:
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("DeathMsg""hook_death""a"
}

public 
hook_death()
{
        new 
killer read_data(1)
    
    if(
killer == world_spawn)
                return 
This is probably wrong and untested, but try it ;)
FormulaZero is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 03-07-2007 , 09:48   Re: player died in worldspawn
Reply With Quote #3

No.

Wordspawn is a entity.
Code:
public death(id) {     new KillerID = read_data(1)     new classname[32];     pev(KillerID,pev_classname,classname,31)     if(equali(classname,"worldspawn")) {          console_print(0,"[AMXX] Someone died by worldspawn!");     } }

I just typed this at school, so not tested.
Drak is offline
Send a message via MSN to Drak
Old 03-07-2007, 10:10
organizedKaoS
This message has been deleted by organizedKaoS.
Howdy!
Senior Member
Join Date: Feb 2007
Old 03-07-2007 , 10:14   Re: player died in worldspawn
Reply With Quote #4

[__EDIT__]
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]

Last edited by Howdy!; 08-07-2008 at 11:31.
Howdy! is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-07-2007 , 13:07   Re: player died in worldspawn
Reply With Quote #5

SixTwin's way will work but not for all of the cases. For example will not work if death caused by a trigger_hurt entity (killer index will be 0 as well).

Last edited by VEN; 03-07-2007 at 13:10.
VEN is offline
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 10:43.


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