[HELP] attack 250 hp = 1 ap
hi, everone i have problem with this scripting
i want make plugin for mod base builder for CT when CT attack zombie every 250 damage CT will win 1 ap i try to make it but not working PHP Code:
sorry for my bad english |
Re: [HELP] attack 250 hp = 1 ap
Where is definition of bb_get_ap1 ?
|
Re: [HELP] attack 250 hp = 1 ap
Quote:
|
Re: [HELP] attack 250 hp = 1 ap
Store damage somewhere and check if the "somewhere" has reached >= , in order to do stuff.
|
Re: [HELP] attack 250 hp = 1 ap
Quote:
|
Re: [HELP] attack 250 hp = 1 ap
Add me on steam, we can create a group called No clue on what I'm doing on AM.
|
Re: [HELP] attack 250 hp = 1 ap
Code:
#include < amxmodx > |
Re: [HELP] attack 250 hp = 1 ap
Quote:
|
Re: [HELP] attack 250 hp = 1 ap
Quote:
About AP, i thought AP was about Armor? Base builder doesn't have ammo packs by default, so if he wants to increase AmmoPacks instead of Armor, than he needs to provide the needed natives. |
Re: [HELP] attack 250 hp = 1 ap
Quote:
@marcelowzd - the counter you made isn't very accurate. If for example you have 249 damage stored in the variable and you need 1 more to get the reward, and then you deal 100 more damage with a single hit, 99 of the damage won't be counted because the counter resets to 0 when 250 is reached. Instead of setting the counter to 0, you should set it to (damage_made - (250 - stored_damage)). |
All times are GMT -4. The time now is 00:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.