Raised This Month: $ Target: $400
 0% 

Damage problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
damage220
Senior Member
Join Date: Jul 2022
Location: Ukraine
Old 07-10-2022 , 16:38   Re: Damage problem
Reply With Quote #4

First of all, I have to say I am noob in amx scripting). I started just a few days ago. I never created neither special weapon nor "takedamage register with player class". I would register client_damage event and check for the wpnindex. For example, we have CSW_KNIFE damage. If a player reaches level 1, increase damage. If a player hold special version, increase damage. See no problem with it. If you are bothered about copying similar code sections, just create an array of relations normal weapon -> special one and loop through it. If this is not the case, then I need to see the full code.
damage220 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:36.


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