[ZP] ZP Stats [ v1.1 beta released ]
[ ZP ] ZP Stats The advanced way of ranks and stats in Zombieplague. by SnoW Version 1.0 Description & features ZP Stats brings ranks and top lists to Zombie Plague world. It keeps an eye on all damage players do, damage they take, kills they do, their deaths, when they get infected and when they infect others. Plugin detects if they played on zombie, human, nemesis or survivor and is able to show separate and clear stats anytime to any player. Top lists make possible to players see what the server best ones have done and do different kind of competitions. Some of plugin's features are ammo pack top and full bot support. Images If you have better images, feel free to post and I'll add them here. [IMG]http://img200.**************/img200/4567/zpstatsstats.png[/IMG] [IMG]http://img195.**************/img195/9234/zpstatsdamage.png[/IMG] [IMG]http://img34.**************/img34/6575/zpstatsmenu.png[/IMG] Settings zp_stats_advertisement "1" - Advertises the plugin so players know how to watch their stats. 0 - Off 1 - On chat 2 - With hud Settings you are able to change in the sma: - How many players in every top is displayed. ( Default: 10 ) - Ammo pack top list on/off. ( Default: On ) - Stats admin level ( Default: ADMIN_BAN ) Use Only Admin zp_reset_stats - Resets all stats ( Expect ammo packs. That's because the plugin uses the native the main plugin is offering and doesn't count them itself. ) Normal players /zpstats - Opens ZP Stats menu. Installing Requirements: - Counter strike 1.6 or Condition Zero - Zombie plague v4.3. * Hamsandwich module The plugin creates stats files itself, so there's no need to even download them. So only file is the amxx, which you install normally. Somehow there's some exceptions below. Modifying main plugin ( Optional ) Detecting when player is frozen or in madness isn't possible without editing the main plugin. The damage calculations can give some wrong results if that isn't done. Somehow I managed to make this easy for you, and all you have to do is copy the following code to the end of the main plugin. PHP Code:
How to modify it ( Instructions ): File named zombie_plague40.sma is on the main plugin's downloading zip and you are able to open it with normal text program like notepad. After copying the text and saving the file, you have to compile it. If you don't have a local compiler you can use following web-compiler: http://webcomp.ak-team.com/index.php. Just replace the old amxx plugin with the new one in "plugins" folder and you are ready to go. More info * Tops are updated every plugin load. * Stats are updated in real time. To do - Multilingual * Make your suggestions. Versions 1.0 - First release V1.1 beta Get plugin Get source ( zp_stats.sma - 22.99K ) |
Re: [ZP] ZP Stats
For scripters
I've done a possibility to detect from other plugins if player is on a top and in what place is he. This makes possible to do some kind of zp plugins related to these stats. Give them extras or what ever. If you need any more functions, forwards or possibilities to use information from the stats feel free to post to the thread or PM me. Note that all changes will be added to the next update of the plugin. I did for the plugin zp_is_user_frozen and zp_is_user_nodamage funcs, since they were needed. So I added these two also to the include file and you are able to use them. Just note that they are dynamic natives, so if you will use them without this plugin, you should copy them from the sma. I've also done two tested and commented examples about stats native. They're also included in the zip: Get file ( zp_stats_scripters.zip - 1.27K ) |
Re: [ZP] ZP Stats
Looks great ... ill test it right now :D
*EDIT Okay ... well there is a big bug :D People deal no dmg - well, they get packs for the dmg, but zombs etc. dont loose life. And humans cant get infected by zombs / get killed by nemesis :) |
Re: [ZP] ZP Stats
Cool plugin! Good job
|
Re: [ZP] ZP Stats
Wow cool. What about like a stats counter for individual zombies killed. Like Classics killed: 10 Tank Zombies killed: 5, or something similar to that, that would be pretty bitchin.
|
Re: [ZP] ZP Stats
Quote:
|
Re: [ZP] ZP Stats
good plugin, anyway some suggestion:
suggestion no#1 i think you need to bind it into key like: Quote:
i hate to type when i only want to see the stat :D suggestion no#2 Can you make it more simpler? and clearer? example: Quote:
suggestion #3 Add some sort of global stat, like: Quote:
This stat can be reseted each round, or cummulative (do what your think easier) suggestion #4 Play a sound like Quote:
oh just my 2 cents :D |
Re: [ZP] ZP Stats
Thanks for your suggestions.
#1 Chaning people's settings is somehow slowhacking, cause there can be people that doesn't want their buttons to be binded. It's just like all other commands, which people are able to bind if they want it, or if not then they just type it every time. I think it's better leaving binding for clients. #2 So, was those stats for normal stats or tops? The damage counting isn't that heavy, and it doesn't take anymore CPU was the damage high or not. #3 Those global stats sounds like a nice idea. The zombie, human and ammo pack leaders are obviously showed in the tops, but if you want the round's best ones, I don't know if it's suitable to the plugin, cause it's idea is to offer over all stats. But I'll think some kind of per round stats. #4 The tops are updated currently every plugin load, so they are created straight from the file and like that it can't detect in middle of the game if someone got higher in the top. It would take much more CPU and memory to update and create the tops everytime someone kills or does some damage. |
Re: [ZP] ZP Stats
Quote:
Quote:
Quote:
how avalanche do that on Gungame? i see he use some stat file that keep updated (gungame.stat) maybe you can take a look the code or for simplicity shake just show a hud message when player being a best/top human/zombie Quote:
|
Re: [ZP] ZP Stats
#2 Well, aren't those pretty clear? There's no needed text, but only clear values. "kills / deaths ( damage done / damage taken )"
#4 Plugin loads everytime you start server or change map. This plugin uses similiar file. I believe avalanche reads the file once, but puts all the information to memory and keeps updating it. Still I think that showing those messages is weird including the fact how much more memory and CPU usage it takes. |
All times are GMT -4. The time now is 13:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.