Can anyone help me?
I want to create a plugin where it displays an end round result showing most destructive player in T or CT. Not overall like statsx has it, I am new at this whole amxx coding thing and I would love to learn how to do it since I always want my own custom things in addition to the plugins i already have.
EX. HUD MSG Counter-Terrorist MVP: <playername> killing <# of kills> Terrorists! Terrorist MVP: <playername> killing <# of kills> Counter-Terrorists! Most damage done by: <playername> Dealing <amount of dmg> damage overall. |
Re: Can anyone help me?
PHP Code:
|
Re: Can anyone help me?
Also, this should've been in Suggestions/Request.
|
Re: Can anyone help me?
Thank you so much. I've been studying it and now I understand the tracking of players/damage and to differentiate CT and Ts
There is one problem. The HUD doesn't show up after each round end. My guess is that it doesnt have a duration? fixed. Another problem. The stats dont reset after every round. How do I make it reset? |
Re: Can anyone help me?
bump
|
Re: Can anyone help me?
Add:
PHP Code:
Then add PHP Code:
|
Re: Can anyone help me?
Alright, thanks. I tested it and it works but now if the numbers remain 0 like either CT or T kills it will say the instead of playername it will be the servername. Is there a way to get around that so instead it just says something like,
No Ts have been killed this round No CTs have been killed this round No dmg has been done. |
Re: Can anyone help me?
Yes there is, haha.
I'm not exactly sure what is the best way to do this, but you can try this: 1. Remove the format() line. And the HUD message functions. 2. Add this: PHP Code:
|
Re: Can anyone help me?
This will do the same as Red Robsters code
PHP Code:
|
Re: Can anyone help me?
Bugsy, does formatex() return a value the size of string that you just formatted or I guess the size of the string that you just added?
|
| All times are GMT -4. The time now is 07:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.