Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #10

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
 



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:49.


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