Raised This Month: $ Target: $400
 0% 

Why is it not working? ( fw_TakeDamage )


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-22-2011 , 08:45   Why is it not working? ( fw_TakeDamage )
Reply With Quote #1

PHP Code:
 
public fw_TakeDamage(victiminflictorattackerFloat:damage)
{
 if(
victim == attacker)
  return 
HAM_IGNORED
 
if(!is_user_connected(attacker))
  return 
HAM_IGNORED
 
if(zp_get_user_zombie(attacker) || zp_get_user_survivor(attacker))
  return 
HAM_IGNORED
 
if ( is_valid_player(attacker) && get_user_weapon(attacker) == CSW_M4A1 && g_HasLm4a1_b[attacker] )
 {
  
g_damage_m4a1br[attacker]+damage
  
if(g_damage_m4a1br[attacker] > float(get_pcvar_num(g_m4a1_b_dmg_r))) 
  {
  
zp_set_user_ammo_packs(attackerzp_get_user_ammo_packs(attacker)+1)
  
g_damage_m4a1br[attacker] -= float(get_pcvar_num(g_m4a1_b_dmg_r))
  }
 }
 if ( 
is_valid_playerattacker ) && get_user_weapon(attacker) == CSW_M4A1 && g_HasLm4a1_b[attacker] )
 {
  
damage *= get_pcvar_float(cvar_dmgmultiplier)
  
SetHamParamFloat(4damage)
 }
   return 
HAM_IGNORED

Is something wrong in my code?
.Dare Devil. 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 19:56.


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