Raised This Month: $51 Target: $400
 12% 

TeamMate Damage Prevention


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 07-26-2010 , 11:03   TeamMate Damage Prevention
Reply With Quote #1

When using mp_friendlyfire 1 enabled on the server, is their a way that when a teammate attacks you, there is no damage, yet the damage effects still occur?

Need to implement this into a certain plugin.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-26-2010 , 13:07   Re: TeamMate Damage Prevention
Reply With Quote #2

Code:
#include <amxmodx> #include <hamsandwich> #include <cstrike> new maxplayers public plugin_init() {     register_plugin( "Damage Effects + No Damage", "1.0", "Wrecked" )         RegisterHam( Ham_TakeDamage, "player", "HamTakeDamagePre", 0 )         maxplayers = get_maxplayers() } public HamTakeDamagePre( vic, inf, att, Float:dmg, dmgbits ) {     if( ( 1 <= att <= maxplayers ) && ( vic != att ) && ( cs_get_user_team( vic ) == cs_get_user_team( att ) ) )     {         SetHamParamFloat( 4, 0.0 )     } }

EDIT: Hi, Red. =]
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 07-26-2010 at 13:16.
wrecked_ is offline
Old 07-26-2010, 13:10
RedRobster
This message has been deleted by RedRobster. Reason: Hello, wrecked :)
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 07-26-2010 , 16:11   Re: TeamMate Damage Prevention
Reply With Quote #3

Interesting. Thanks

@ Red : Blah
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
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 22:39.


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