Raised This Month: $ Target: $400
 0% 

msgID (death)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 11-20-2010 , 11:02   msgID (death)
Reply With Quote #1

I am hooking it like that:

PHP Code:
register_messageget_user_msgid"DeathMsg" ) , "fw_EvDeathMsg" ); 
Then I have this:

PHP Code:
public fw_EvDeathMsgmsg_id msg_dest msg_entity 
Now what or who/would be msg_id , msg_dest?

Is msg_id the person who died or am I off the mark?

or can I use something like this:

PHP Code:
public fw_EvDeathMsgmsg_id msg_dest msg_entity )
{
    if ( 
cs_get_user_team(msg_id) == )  //died person?
    
{
        
client_print(0print_chat"a Terrorist died.")
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

bibu 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 11:21.


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