AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change Killer Entity ID (https://forums.alliedmods.net/showthread.php?t=215080)

FromTheFuture 05-03-2013 12:53

Change Killer Entity ID
 
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.


All times are GMT -4. The time now is 10:46.

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