Raised This Month: $ Target: $400
 0% 

Teamspecific FriendlyFire


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Schwabba
Senior Member
Join Date: Apr 2008
Old 11-24-2010 , 13:11   Teamspecific FriendlyFire
Reply With Quote #1

Hi, i try to disable FF for CT Team, but when i use this

PHP Code:
RegisterHam(Ham_TakeDamage "player" "PlayerHurt"0); 
PHP Code:
public PlayerHurt(id,inflictor,attacker,Float:damageDamageBits )
{
    if(
cs_get_user_team(id) == cs_get_user_team(attacker))
    {
        if(
cs_get_user_team(id) == CS_TEAM_CT)
        {
            return 
HAM_SUPERCEDE;
        }
        else
        {
            if(!
friendlyFire)
            {
                return 
HAM_SUPERCEDE;
            }
        }
    }
    return 
HAM_IGNORED;

Then it works, but there is still blood when you shoot someone and FF is disabled. How i can disable the blood?
Schwabba 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 11:24.


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