Raised This Month: $ Target: $400
 0% 

Making a person "unkillable" for one player only (for TS)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TiToTal
Member
Join Date: Feb 2006
Old 09-27-2006 , 18:06   Making a person "unkillable" for one player only (for TS)
Reply With Quote #1

As the Title says, I am trying to make all damage made by a specific player be 0.

One specific player cant kill another specific player... And others can so.
TiToTal is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 09-27-2006 , 19:58   Re: Making a person "unkillable" for one player only (for TS)
Reply With Quote #2

I'd like to clarify what you want done.

Here's an example:

PLAYERS: A B C D

A can't kill B
C can kill B
D can kill B

B can kill A,C,D

A,C,D can kill each other.
stupok is offline
TiToTal
Member
Join Date: Feb 2006
Old 09-27-2006 , 20:16   Re: Making a person "unkillable" for one player only (for TS)
Reply With Quote #3

Yes... exactly...
TiToTal is offline
TiToTal
Member
Join Date: Feb 2006
Old 09-27-2006 , 20:19   Re: Making a person "unkillable" for one player only (for TS)
Reply With Quote #4

If A and B can't kill each other would be nice too... one or other is okay for me...


(Sorry my newbie english, lol...)
TiToTal is offline
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 09-27-2006 , 20:23   Re: Making a person "unkillable" for one player only (for TS)
Reply With Quote #5

PHP Code:
public client_damage(attackervictimdamagewpnindexhitplaceTA)
{
set_user_health(id,get_user_health(id) + damage)
    return 
PLUGIN_HANDLED

Maybe this :\?
wonsae is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-27-2006 , 21:52   Re: Making a person "unkillable" for one player only (for TS)
Reply With Quote #6

No. I would recomend set_user_hitzones() in the fun module, but it's known to be extremly buggy. You should look into surf tools or something, as this requires the programmer to manually hook traceline and what not and block some stuff.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 09-27-2006 , 21:56   Re: Making a person "unkillable" for one player only (for TS)
Reply With Quote #7

Quote:
Originally Posted by wonsae View Post
PHP Code:
public client_damage(attackervictimdamagewpnindexhitplaceTA)
{
set_user_health(id,get_user_health(id) + damage)
    return 
PLUGIN_HANDLED

Maybe this :\?
I think in order for this to work you'd need to check if the attacker was some person first... eg:

Code:
public client_damage(attacker, victim, damage, wpnindex, hitplace, TA) { if(get_user_attacker(id) == )//<-- put person here { set_user_health(id,get_user_health(id) + damage)     return PLUGIN_HANDLED; } }
Jordan is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 09-27-2006 , 23:08   Re: Making a person "unkillable" for one player only (for TS)
Reply With Quote #8

does the damage type include headshot, if headshot, is there a chance to set their health?
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Silencer123
Veteran Member
Join Date: Jul 2006
Old 09-28-2006 , 08:20   Re: Making a person "unkillable" for one player only (for TS)
Reply With Quote #9

There is one Problem:
Lets say A has 100 health. B has AWP and hits A in his Head.
A gets 400 damage has -300 health and dies.
A gets 400 health and is dead with 100 Health.
You must do a forward, which I do not know much about, yet.
__________________
EAT YOUR VEGGIES
Silencer123 is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 09-28-2006 , 08:36   Re: Making a person "unkillable" for one player only (for TS)
Reply With Quote #10

Quote:
Originally Posted by Zenith77 View Post
No. I would recomend set_user_hitzones() in the fun module, but it's known to be extremly buggy. You should look into surf tools or something, as this requires the programmer to manually hook traceline and what not and block some stuff.
You should use set_user_hitzones() as Zenith says. And it is not buggy. People often make a bug report becuase "it doesn't work" but that is because they aren't using it correctly. It works fine.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
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 04:50.


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