statistics: most damages
how to get the name of the player who has made the most damages at the end of round.
|
Re: statistics: most damages
Use a global player array that is a float.
Hook Ham_TakeDamage as post and get damage done from the victim's pev_dmg_take value, and add that value to the attacker's array value. Hook round end and iterate through the array til you find the most damage, then display that player. Also in the round end hook, reset the global array to 0. |
Re: statistics: most damages
Quote:
PHP Code:
|
Re: statistics: most damages
Yea that works too.
|
| All times are GMT -4. The time now is 11:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.