Raised This Month: $ Target: $400
 0% 

TraceAttack -> Damage block -> Dead Status


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-08-2010 , 22:19   Re: TraceAttack -> Damage block -> Dead Status
Reply With Quote #2

If you want to make a player freeze instead of dying, you could just do this:
Code:
//...

RegisterHam(Ham_TakeDamage, "player", "player_damage")

//...

public player_damage(id, iWeapon, attacker, Float:fDamage, iType)
{
   static iHP

   iHP = get_user_health(id)

   if((iHP - fDamage) <= 0)
   {
       SetHamParamFloat(4, iHP - 1.0) // alter damage so it leaves player with 1hp

       /* your freezing/glowing stuff */

       return HAM_HANDLED
   }

   return HAM_IGNORED
}
And after that you can do whatever you want with the player, kill him, unfreeze him, w/e.

If that's not what you need, then explain what exacly you want to do.
__________________

Last edited by Hunter-Digital; 10-08-2010 at 22:23.
Hunter-Digital 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 10:24.


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