Raised This Month: $ Target: $400
 0% 

DoD, need a helping hand with faking a death message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-28-2004 , 20:06   DoD, need a helping hand with faking a death message
Reply With Quote #1

hey people, i need some help with faking a death message,
i tried it, but it always shows the "splash" like suicide instead
of the gun (garand in my case.)

so i would be really glad if someone could help me out here.

here's the code part:

Code:
public client_damage(attacker,victim,damage,wpnindex,hitplace,TA){    if(get_cvar_num("amx_ubergarand") == 1){         if((wpnindex == DODW_GARAND) && (is_user_alive(victim) == 1)){                 new gunname[32]                 xmod_get_wpnname(wpnindex,gunname,31)                 set_user_health(victim,0)                 new aKills = dod_get_user_kills(attacker)                 dod_set_user_kills(attacker,(aKills += 1))                 message_begin( MSG_ALL, get_user_msgid("DeathMsg"),{0,0,0},0)         write_byte(attacker)         write_byte(victim)         write_byte(0)         write_string(gunname)         message_end()                 }    } }

i already tried "xmod_get_wpnlogname" instead, but it doesn't work either.

thanks for your help!
FeuerSturm 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 17:13.


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