Raised This Month: $ Target: $400
 0% 

How to make a weapon to show damage?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-09-2021 , 15:51   Re: How to make a weapon to show damage?
Reply With Quote #2

Your bullet damage plugin usses the "Damage" event to detect damage.
Your weapon uses the custom_weapon_dmg() function that calls only the client_damage() forward.

This means that the bullet damage plugin cannot detect the damage because it doesn't use the same callback.

You need to include the client_damage() function in your bullet damage plugin just like the "Damage" one is used.

Code:
#include <csx> public client_damage(attacker, id, damage) {     // bullet damage code here... }
__________________

Last edited by OciXCrom; 12-09-2021 at 15:51.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



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 11:35.


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