Please help code dosent works
i builted a Power Attack for basebuilder.
when some one is the last human he gets +10% bonus damage for each kill maximum 200% i tested the plugin in my home private server with cmd. the debug show non errors then why the plugin dosent work ? Code : PHP Code:
|
Re: Please help code dosent works
There are wrong things in your code all over the place. I wrote you a example, where you can get some thoughts of. It's not testet nor compiled by me, you have to test it yourself.
PHP Code:
|
Re: Please help code dosent works
Quote:
and you did only when some one die's i want always even at start round if is alone. and the Bonus damage starts from 100% = Normal Damage. 200% = X2 Damage |
Re: Please help code dosent works
Quote:
Quote:
PHP Code:
Quote:
1 kill -> 1.1 * damage (110% damage) 2 kills -> 1.2 * damage (120% damage) . . . 10 kills -> 2.0 * damage (200% damage) . . . 19 kills -> 2.9 * damage (290%) 20 kills -> 3.0 * damage (300%) You can modify it in this line: PHP Code:
|
Re: Please help code dosent works
Quote:
PHP Code:
|
Re: Please help code dosent works
The newround event doesn't provide a client-parameter, stop adding one.
Also your else-if() is the same as a regular else() in this case. I optimized some things for you. Every time a CT becomes the last CT or the last CT kills someone, he gets the hudmessage. PHP Code:
|
| All times are GMT -4. The time now is 21:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.