Raised This Month: $ Target: $400
 0% 

Change the damage of the knife


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-24-2008 , 04:54   Re: Change the damage of the knife
Reply With Quote #3

This : !(1 <= id <= g_iMaxPlayers) is not needed since the forward is registered with classname "player".
Also i think is_user_alive(id) is not needed.
Last, you should check if inflictor is same as attacker.
When a player is hit by a hegrenade, when damage is proceeded, attacker can have his knife on, so if inflictor is not same as attacker, just return the function.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 09:17.


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