Raised This Month: $ Target: $400
 0% 

[HELP] Takedamage help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-10-2011 , 04:47   Re: [HELP] Takedamage help
Reply With Quote #2

You must check the team of both attacker and victim by using cs_get_user_team()... see cstrike.inc for values and stuff.

Also, you don't have all params placed into the function, see ham_const.inc.

And note, attacker may be a non-player entity aswell, you need to check if is a player, easiest way is to is_user_connected() on attacker.
__________________
Hunter-Digital 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 03:20.


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