Raised This Month: $ Target: $400
 0% 

Setting client <ammout> damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-22-2009 , 01:56   Setting client <ammout> damage
Reply With Quote #1

Is it possible to set user damage at about > 100, < 100 damage even he use pistol ?

And how ?
Mr.Noobie is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-22-2009 , 06:04   Re: Setting client <ammout> damage
Reply With Quote #2

Yes using Hamsandwich.
Ham_TakeDamage
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
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
Reply


Thread Tools
Display Modes

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