Raised This Month: $ Target: $400
 0% 

Name of the attacker of an entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Speed!
BANNED
Join Date: Jan 2009
Old 02-03-2009 , 20:43   Re: Name of the attacker of an entity
Reply With Quote #6

it isnt working :S
im doint this

PHP Code:
RegisterHam(Ham_KilledENT_CLASS_NAME"fw_somethingKilled"
PHP Code:
public fw_somethingKilled(victimattackershouldgib)
{
    new 
owner;
    
owner pev(victim,LASERMINE_OWNER);
    new 
name1[2];
    new 
name2[2];
    
get_user_name(ownername1sizeof name1 1);
    
get_user_name(attackername2sizeof name2 1);
    
client_print(ownerprint_chat,"%s blablabla %s"name2name1);
    
client_print(attackerprint_chat,"%s blablabla %s"name2name1);

PHP Code:
    set_pev(i_Ent,pev_classname,ENT_CLASS_NAME);

    
engfunc(EngFunc_SetModel,i_Ent,ENT_MODELS);

    
set_pev(i_Ent,pev_solid,SOLID_NOT);
    
set_pev(i_Ent,pev_movetype,MOVETYPE_FLY);

    
set_pev(i_Ent,pev_frame,0);
    
set_pev(i_Ent,pev_body,3);
    
set_pev(i_Ent,pev_sequence,TRIPMINE_WORLD);
    
set_pev(i_Ent,pev_framerate,0);
    
    
set_pev(i_Ent,pev_takedamage,DAMAGE_YES);
    
    
set_pev(i_Ent,pev_dmg,100.0);
    
set_user_health(i_Ent,get_pcvar_num(g_LHEALTH)); 
message is never shown
Speed! 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 01:40.


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