fw_TakeDamage, about armor/health/zombies (Not ZP)
So i want that if the human got armor, zombies need to reduce the armor to infect the player, but i don't know correct the method for it. if somebody could teach me, or simply correct the code.
i will not post full code, you do not need it and its private. i want it pretty much like zp 4.3. PHP Code:
the user cannot get infected if the user have any sort of armor, but zombies can reduce the armor, but not the health. hope you understand, got any questions post them below:) Thank you. |
Re: fw_TakeDamage, about armor/health/zombies (Not ZP)
PHP Code:
|
Re: fw_TakeDamage, about armor/health/zombies (Not ZP)
Quote:
|
Re: fw_TakeDamage, about armor/health/zombies (Not ZP)
Yes, that's why the upper part of the code is doing. But I was talking about that check, what do you think? It checks if the damage is 0.0, therefore there is no damage received.
|
Re: fw_TakeDamage, about armor/health/zombies (Not ZP)
Quote:
Edit: Took a code from zp 4.3. but do not know how to add it in the code. because i suck. PHP Code:
|
Re: fw_TakeDamage, about armor/health/zombies (Not ZP)
You need to reword your question. What do you need help with exactly?
PHP Code:
|
Re: fw_TakeDamage, about armor/health/zombies (Not ZP)
Quote:
also, I don't recall cs_set_user_armor using float |
Re: fw_TakeDamage, about armor/health/zombies (Not ZP)
Quote:
Edit: I was tired, and fixed the code, but now i get loose intendtion, even though i have intended it. PHP Code:
|
Re: fw_TakeDamage, about armor/health/zombies (Not ZP)
Because your identation was wrong.
PHP Code:
|
Re: fw_TakeDamage, about armor/health/zombies (Not ZP)
Quote:
|
| All times are GMT -4. The time now is 21:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.