Raised This Month: $ Target: $400
 0% 

Damage Question.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 06-13-2006 , 23:43   Damage Question.
Reply With Quote #1

A quick question. How can I return the amount of damage a player does to another player shot by shot?

So the player PLR1 shoots the other player PLR2, now I want to get the amount of damage PLR1 did to PLR2 just then.

How is this possible?

Thanks.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-14-2006 , 00:38  
Reply With Quote #2

Code:
register_event("Damage" , "myCallBack" , "b",  "2!0" );

Code:
//id = victim //iAttackerID = attacker //iWeapon = weapon id //iDamage = amount of damage public myCallBack( id ) {     new iDamage = read_data( 2 );     new iWeapon, iAttackerID = get_user_attacker( id, iWeapon ); }
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 06-14-2006 , 05:56  
Reply With Quote #3

That didn't work because TS doesn't call the damage event.
I didn't want to, but it looks as if I have to use the tsx modules, client_damage forward.

Anyhow, thanks. Lol.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-14-2006 , 08:50  
Reply With Quote #4

Next time specify mod in your question. And yes that is the way to do it.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Reply



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 07:56.


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