Raised This Month: $32 Target: $400
 8% 

Solved CSGO - Friendly Fire Disable for Zues


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 10-18-2021 , 07:44   CSGO - Friendly Fire Disable for Zues
Reply With Quote #1

how can i disable zues damage for teammates.?
__________________

Last edited by raj kaul; 10-18-2021 at 20:18.
raj kaul is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-18-2021 , 16:57   Re: CSGO - Friendly Fire Disable for Zues
Reply With Quote #2

:/
PHP Code:

#include <cstrike>
#include <sdkhooks>

public void OnPluginStart()
{
    for(
int i 1<= MaxClientsi++)
    {
        if(
IsClientInGame(i)) OnClientPutInServer(i);
    }
}

public 
void OnClientPutInServer(int client)
{
    
SDKHook(clientSDKHook_OnTakeDamageAliveOnTakeDamageAlive);
}


public 
Action OnTakeDamageAlive(int victimint &attackerint &inflictorfloat &damageint &damagetype)
{

    if(
attacker >= && attacker <= MaxClients && attacker == inflictor && GetClientTeam(victim) == GetClientTeam(attacker))
    {
        
int weaponindex GetEntPropEnt(attackerProp_Send"m_hActiveWeapon");
        
        if(
weaponindex == -|| !HasEntProp(weaponindexProp_Send"m_iItemDefinitionIndex"))
            return 
Plugin_Continue;

        
weaponindex GetEntProp(weaponindexProp_Send"m_iItemDefinitionIndex");

        
CSWeaponID weaponid CS_ItemDefIndexToID(weaponindex);

        if(
weaponid == CSWeapon_TASER)
            return 
Plugin_Handled;
    }
    
    return 
Plugin_Continue;

__________________
Do not Private Message @me
Bacardi is offline
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 10-18-2021 , 20:17   Re: CSGO - Friendly Fire Disable for Zues
Reply With Quote #3

thank you , its working fine
__________________
raj kaul is offline
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 19:33.


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