Raised This Month: $ Target: $400
 0% 

Change Killer Entity ID


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 05-03-2013 , 12:53   Change Killer Entity ID
Reply With Quote #1

I need a change killer ID if it is 0.

PHP Code:
public fw_EvDeathMsgmsg_id msg_dest msg_entity )
{
   static 
id//victim
    
id get_msg_arg_int(2);

    if(!
get_msg_arg_int(1) && vic_he[id])
    {
    
set_msg_arg_int(10777); //777 - for example
    
set_msg_arg_string(4"grenade");
    }
    return 
PLUGIN_CONTINUE;  

It's work, but how can do it for use in next time in DeathMsg event?

PHP Code:
public evDMsg()
{
iKiller read_data(1)
if(
iKiller == 777)
{
//done
}

I trying to change attacker entity/integer ID in HamKilled_Pre, but server was crashed.

Last edited by FromTheFuture; 05-03-2013 at 12:54.
FromTheFuture 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 10:46.


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