Raised This Month: $ Target: $400
 0% 

Setting client <ammout> damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-22-2009 , 09:37   Re: Setting client <ammout> damage
Reply With Quote #3

This will make the damage amt a player takes always 100. However, if the user has armor then this will not be the amount of health the player actually loses since armor absorbs some of the damage.
PHP Code:
public plugin_init() 
{
     
RegisterHamHam_TakeDamage "player" "fw_HamTakeDamage" ); 


public 
fw_HamTakeDamageidVictim iInflictor idAttacker Float:fDamage DamageBits 
{
     
//The 4th parameter of this forward is fDamage, the below will alter this value.
     //Example: A player can be shot in the foot with a glock or can be shot in the head with an awp
     //and the damage taken will always be 100.
     
SetHamParamFloat100.0 );  
     return 
HAM_HANDLED

__________________

Last edited by Bugsy; 08-22-2009 at 10:38.
Bugsy 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 15:03.


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