Raised This Month: $32 Target: $400
 8% 

Subplugin Submission [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NAQQASH
Senior Member
Join Date: Dec 2010
Old 12-12-2010 , 12:21   [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #1

Screenshots:

Top15:
[IMG]http://img35.**************/img35/1927/12279079.th.png[/IMG]

Rankstats:
[IMG]http://img529.**************/img529/20/48853583.th.png[/IMG]

Quote:
Originally Posted by PomanoB View Post
[ZP] Web Stats 0.2.5

Description
Statistic Plugin for Zombie Plague 4.3
Includes Ammo Bank
  • Players Stats
  • Weapon Stats
  • Zombie Classes Stats
  • Maps Stats
  • Other
Modules
  • sqlx
  • fakemeta
  • hamasndwitch
Admin Commands
zp_ammo <name|#userid|@Z|@H|@A> <count>
Give ammo to
@Z - All zombie
@H - All human
@A - All players
Client commands
say /hp
Display information about you killer
say /me
Display you information (kills ,infect, damage, last hit)
say /rank [name|ip|steam_id]
Display you/player rank
say /stats [name|ip|steam_id]
say /rankstats [name|ip|steam_id]
Display you/player detail stats
say /top[number]
Display 15 top players, ending with the specified value [number]
say /donate <target> <count>
Present <count> ammo to <target>
CVAR's

zp_stats_host - Database host
zp_stats_db - database
zp_stats_user - MySQL user
zp_stats_password - MySQL password

zp_stats_allow_hp - Allow client command say /hp
zp_stats_allow_me - Allow client command say /me
zp_stats_show_hit - If 1, display zombie hp when player hit
zp_stats_allow_donate - Allow client command say /donate

zp_stats_max_inactive_day - Max inactive day to players in top
zp_stats_min_ammo - Min ammo to players in top
zp_stats_min_online - Min online to players in top

zp_stats_store_class - If 1, players zombie class save in database
zp_stats_store_ammo - If 1, players ammo save in database

zp_stats_limit_ammo - Limits for maximum ammo, 0 - disable

zp_stats_show_adv - If 1, show info about client command's
zp_stats_adv_time - Time to show adv.

zp_stats_show_best_players - Show the best players in round (default 1)
zp_stats_show_rank_on_round_start - Show rank(rank change) on round start (default 1)

zp_stats_auth_type
1 - Steam ID
2 - IP Address
3 - Nickname
above - Steam ID/IP Adress

default - 4
zp_stats_ignore_nick - Tag, which does not take calculate statistics (default "[unreg]")

Defines
Uncomment "//#define ZP_STATS_DEBUG" to detail log

Installation
Copy the 'web/zp_stats' directory to your website
Edit 'web/zp_stats/inc/config.php'
Use the file 'web/zp_stats.sql' to initialize the database

Copy the 'addons' directory to your 'cstrike' folder
Add the plugin name to addons/amxmodx/configs/plugins-zplague.ini
Edit 'configs/zp_web_stats.cfg'

You must install extension 'php5-xsl'
Debian:
Code:
aptitude install php5-xsl
Version History
0.1.0 - First public release
0.2.0 - Global update, change plugin name
0.2.1 - Optimization
0.2.2 - Fixed small bag
0.2.3 - Fixed charset problem
0.2.4 - Added cvar "zp_stats_allow_donate"
0.2.5 - Fixed zp_class_store_ammo bug (thx MmikiM)

Credits
maslyak
CHyCMyMpNk
a.aqua
crazyeffect - translate
ramiax - Lithuanian language translation
MmikiM - Polish translate

Demonstration - http://www.klan-hub.ru/zp_stats/
NOTE:

Quote:
Originally Posted by Hezerf View Post
I guess this is a joke.There is no difference between this and the original one :-j.
Code:
 #define PLUGIN "[ZP] Web Stats"
 #define VERSION "0.2.4"
 #define AUTHOR "PomanoB"
Quote:
Yes. I've changed nothing at all from the original plugin except few things. So, all credit goes to PomanoB and co.
Also, I'll support the bugs related to the motd, for other bugreports ask in the original thread.
How to:

Download and extract (anywhere let me say a dummy location like desktop).

After you extract you'll get "%path%/zp_web_stats"

Copy "%path%/zp_web_stats/web/zp_stats.css" to your webspace (in most cases public_html / htdocs) or wherever your DocumentRoot is.

Copy "%path%/zp_web_stats/addons" to your server directory for me I chose "dir:/steam/steamapps/blah/dedicated server/moddir/"

Now, edit "dir:/steam/steamapps/blah/dedicated server/moddir/addons/amxmodx/scripting/zp_web_stats.sma" using your fav text editor (aka notepad, wordpad etc..) I recommend you to use notepad++. In my case I used notepad.

Find:

Code:
len = format(g_text, max_len, "<html><head><link rel='stylesheet' href='<b><a href="http://localhost/zp_stats.css" target="_blank" rel="nofollow noopener">http://localhost/zp_stats.css</a></b>' type='text/css'><meta http-equiv=^"Content-Type^" content=^"text/html; charset=utf-8^" /></head><center><div id='lala'><table>")

Code:
len = format(g_text, max_len, "<html><head><link rel='stylesheet' href='<b><a href="http://localhost/zp_stats.css" target="_blank" rel="nofollow noopener">http://localhost/zp_stats.css</a></b>' type='text/css'><meta http-equiv=^"Content-Type^" content=^"text/html; charset=utf-8^" /></head><center><div id='lala'><table><font size=^"2^"><tr><td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s<td>%s%s","#", lNick, lZKills, lHKills, lInfect, lDeath, lInfected, lTotalAmmo, g_text)

and change the "http://localhost/zp_stats.css" to wherever you've placed zp_stats.css like "http://my_domain.com/zp_stats.css" (w/o quotes).
Then compile plugin "LOCALLY" and you're done!
Attached Files
File Type: zip zp_web_stats.zip (462.1 KB, 896 views)

Last edited by NAQQASH; 12-13-2010 at 06:12. Reason: Firefox sucks
NAQQASH is offline
Kiryu Zero
Senior Member
Join Date: Apr 2010
Location: Sankt-Peterburg, Russia
Old 12-12-2010 , 12:29   Re: [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #2

Thx=)ZPA Suppord????
__________________
Kiryu Zero is offline
Send a message via ICQ to Kiryu Zero Send a message via Skype™ to Kiryu Zero
Vechta
Veteran Member
Join Date: Jun 2010
Old 12-12-2010 , 12:38   Re: [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #3

All bugs fixed?
Vechta is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 12-12-2010 , 13:15   Re: [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #4

Can you also add a tut, on how to add this plugin to a server and make it run properly bcoz i am a noob with MySQL
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Vechta
Veteran Member
Join Date: Jun 2010
Old 12-12-2010 , 13:24   Re: [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #5

Contact me and I help you
Vechta is offline
Kiryu Zero
Senior Member
Join Date: Apr 2010
Location: Sankt-Peterburg, Russia
Old 12-12-2010 , 13:29   Re: [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #6

I have made already to the server. But only one does not know where to put zp_stats.сss.
__________________
Kiryu Zero is offline
Send a message via ICQ to Kiryu Zero Send a message via Skype™ to Kiryu Zero
Vechta
Veteran Member
Join Date: Jun 2010
Old 12-12-2010 , 13:35   Re: [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #7

You need to put it in amxmodx/data folder
Vechta is offline
Kiryu Zero
Senior Member
Join Date: Apr 2010
Location: Sankt-Peterburg, Russia
Old 12-12-2010 , 14:24   Re: [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #8

Thx you)
__________________
Kiryu Zero is offline
Send a message via ICQ to Kiryu Zero Send a message via Skype™ to Kiryu Zero
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 12-12-2010 , 14:25   Re: [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #9

remove sql pls?
i just need the stats to show on round end
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Vechta
Veteran Member
Join Date: Jun 2010
Old 12-12-2010 , 14:31   Re: [ZP] Addon: Web Stats v0.2.5 by PomanoB (Custom Edition)
Reply With Quote #10

Why don't you make yourself? ^^
Vechta is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode