Raised This Month: $ Target: $400
 0% 

[REQ] Block Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MonSter .RUCA
Member
Join Date: Feb 2016
Old 03-31-2016 , 11:41   [REQ] Block Damage
Reply With Quote #1

I wanted if the terrorist attacks team to the CT team CT not lose lifeless (not received the damage).
I do not want godmode.

Sorry my bad English!
MonSter .RUCA is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-31-2016 , 12:33   Re: [REQ] Block Damage
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("No T => CT Damage""1.0""OciXCrom")
    
RegisterHam(Ham_TraceAttack"player""eventPlayerAttack")
}

public 
eventPlayerAttack(iVictimiAttackerFloat:flDamageFloat:flDirection[3], iTraceHandleiDamageBits)
{
    if(!
is_user_connected(iAttacker) || !is_user_connected(iVictim) || iVictim == iAttacker)
        return 
HAM_IGNORED
        
    
return (get_user_team(iAttacker) == && get_user_team(iVictim) == 2) ? HAM_SUPERCEDE HAM_IGNORED


Last edited by OciXCrom; 03-31-2016 at 12:33.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
MonSter .RUCA
Member
Join Date: Feb 2016
Old 04-02-2016 , 06:35   Re: [REQ] Block Damage
Reply With Quote #3

Thank you very much!
MonSter .RUCA is offline
Old 11-23-2023, 14:26
Cuttlas
This message has been deleted by Cuttlas.
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 01:26.


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