Raised This Month: $ Target: $400
 0% 

event when terro dies


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 12-29-2009 , 18:43   event when terro dies
Reply With Quote #1

Hello guys, I need event when terro dying. In this event I need killer's id.
FiFiX is offline
Send a message via Skype™ to FiFiX
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-29-2009 , 20:36   Re: event when terro dies
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
    
register_plugin("pepito""1.0""Mxnn")
    
    
register_event("DeathMsg""Event_DeathMsg""a")
}

Event_DeathMsg() {
    
    new 
victim read_data(2)
    if (
cs_get_user_team(victim) == CS_TEAM_T) {
        new 
attacker read_data(1
    }


Last edited by Mxnn; 12-29-2009 at 21:22.
Mxnn is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 12-29-2009 , 21:15   Re: event when terro dies
Reply With Quote #3

wtf mxnn..

PHP Code:
// [ ... ]
register_event("DeathMsg""Event_DeathMsg""a")

// [ ... ]
public Event_DeathMsg()
{
    new 
attacker read_data(1)
    new 
victim read_data(2)

    if (
cs_get_user_team(victim) == CS_TEAM_T)
                
// terrorist died

§
__________________

Last edited by IneedHelp; 12-29-2009 at 21:17.
IneedHelp is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-29-2009 , 21:21   Re: event when terro dies
Reply With Quote #4

Yes HAJAAHAH i'm wrong sory. I'm do a plugin and i do this very quickly. Sry i will fix it
Mxnn is offline
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 12-30-2009 , 04:18   Re: event when terro dies
Reply With Quote #5

Thank you guys
FiFiX is offline
Send a message via Skype™ to FiFiX
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 04:12.


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