Raised This Month: $ Target: $400
 0% 

displaying who did the damage!? [SOLVED]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
gzus
Member
Join Date: Jan 2007
Old 02-20-2007 , 19:17   displaying who did the damage!? [SOLVED]
Reply With Quote #1

PHP Code:
public MHO_Damage(id)
 {
 new 
damage read_data(2)
 
//new attacker = read_data(1)
 
new szName[32]     get_user_name(idszName31)
 new 
P_A_Name get_user_attacker(id)
 
//get_user_name(idInflictor, P_A_Name[idInflictor], 31)
 
server_print("--MHO MOD-- [DAMAGE] %s took: %i from: %s"szNamedamageP_A_Name)     //PlayerXP[idInflictor] += damage     //ShowHUD(attacker)
 

using this, in the console i get the name of my server as the attacker, any idea what i did wrong?
__________________
71.200.20.142:27017 - testing mho mod
if you need any files visit clan.mosthatedonline.com

Last edited by gzus; 02-20-2007 at 20:49. Reason: solved
gzus 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 00:37.


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