AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   StatsX 0.9.8b (CS 1.6) (https://forums.alliedmods.net/showthread.php?t=661)

XAD 03-30-2004 03:15

StatsX 0.9.8b (CS 1.6)
 
1 Attachment(s)
This plugin is included with AMX Mod X 0.20. You only need to download this if you use AMX Mod X 0.16. This plugin is also locked for replies, do not post bug reports or questions as it's a finished product. -- BAILOPAN

This AMX-plugin for CS 1.6 will display game stats as HUD and chat messages.

Example of stats are: killing stats, most damage, best score,
accuracy, efficiency, attackers list, victims list, team scores.

IMPORTANT!
- Please read the source code header before installing or next post!
- Stats configuration, "amx_statscfgmenu", must be executed after install as the options are different from the default "stats" plugin.

Modlog: (last change)
----------------------------
2004-03-29
- Updated for AMX Mod X 0.16.
- Changed the code to support non-zero initializing Small compilers.
- Removed support for 79 char limit HUD-message.

XAD 03-30-2004 03:15

And for you who dont want to read the code...

Description:
------------
This AMX-plugin will display game stats as HUD and chat messages.

Example of stats are: killing stats, most damage, best score,
accuracy, efficiency, attackers list, victims list, team scores.

All effeciency stats are calculated per game, not per round.
The accuracy stats are calculated per round, except for "/score"
which is per game.

Plugin support players switching teams and awarded players
disconnecting from server before round end. It also supports
game restart, ie all stats are resetted.

Plugin also support players switching of the stats announcements
on the HUD. The setting is a client parameter and therefore
saved between playing sessions.

Known bugs (reported):
-----------------------
Code:

  None.
Fixed bugs:
-----------------------
Code:

  None.
============================================= ==

Requirements/Limitations:
-------------------------
Code:

  - AMX Mod X v0.16: Tested.
  - Replaces "stats.amx" by OLO.
  - Requires the AMX Mod X module "csstats_amx".
  - You are recommended to not run any other death or
    end-round plugins.
  - If HUD-statistics are activated it is recommended that
    other HUD-messages are deactivated as these otherwise
    will disrupt HUD-statistics, such as PTB's. This is a
    HalfLife-engine limitation.
  - It is not recommended to use "mp_freezetime" less than
    1.0 sec.

Installation:
-------------
Code:

  - Copy the StatsX file "statsx.amx" to the AMX plugins
    folder.
  - In the AMX Mod X plugin configuration file ("plugins.ini"),
    replace the line "stats.amx" with "statsx.amx".
  - Add StatsX cvar to the server or AMX Mod X configuration file.
    If menu configuration will not be used then also add
    the "amx_statscfg" commands to one of the configuration
    files.
  - Restart server. Normally changing map is sufficient but
    restarting the server is the "safe" procedure.
  - If menu configuration is used then reconfigure the
    stats settings using the "amx_statscfgmenu" command.

============================================= ==

Server Config:
--------------
Code:

  Duration of HUD-statistics. (Default 12 sec.)
    amx_statsx_duration < time in seconds >

  HUD-statistics display limit relative round freeze end.
  Negative time will clear the HUD-statstics before the
  round freeze time has ended. (Default -2 sec.)
    amx_statsx_freeze < time in seconds >

  When activating this plugin the Stats Settings Plugin,
  "statscfg", should also be activated.
  Activating the Stats Settings Plugin allows configuration
  to be done either with client GUI menus or in server
  configuration files.
    amx_statscfg < "on" or "off" > < option >

    StatsX options:
      "KillerChat"    - show killer stats in the chat section
      "ShowAttackers"  - show attackers on HUD (deactivated)
      "ShowVictims"    - show victims on HUD (deactivated)
      "ShowKiller"    - show killer on HUD
      "ShowTeamScore"  - shows team score at round end (deactivated)
      "ShowTotalStats" - shows round total stats (deactivated)
      "ShowBestScore"  - shows rounds best scored player
      "ShowMostDisruptive"
                      - shows rounds most disruptive player
      "EndPlayer"      - display player stats MOTD at map end
      "EndTop15"      - display top15 MOTD at the end of map
      "SayHP"          - allow for say /hp
      "SayStatsMe"    - allow for say /statsme
      "SayRankStats"  - allow for say /rankstats
      "SayMe"          - allow for say /me
      "SayRank"        - allow for say /rank
      "SayReport"      - allow for say /report
      "SayScore"      - allow for say /score
      "SayTop15"      - allow for say /top15
      "SayStatsAll"    - allow for say /stats
      "SayMiscFunc"    - allow for say /timeleft, /thetime,
                        /currentmap, /ff
      "ShowStats"      - client HUD-stats switched on by default
      "ShowDistHS"    - show distance and HS in attackers and
                        victims HUD lists
      "SpecRankInfo"  - displays rank info when spectating

  Stats plugin options (flags) to define what to display to
  the clients.
  NOTE! To deactivate all options set flags to " "
  (one quoted space).
    amx_statsx_mode < flags >
        "a" - delay (0.01s) HUD stats on HUD reset


Client Commands:
----------------
Code:

  Display info about your killer in the chat section.
    say /hp

  Display info about your stats, on the current map,
  in a MOTD window.
    say /statsme

  Display your rank stats, in a MOTD window.
    say /rankstats

  Display your current round hit-stats in the chat section.
    say /me

  Display your rank in the chat section.
    say /rank

  Display the game score and stats in the chat section.
    say /score
   
  Display players current weapon status, as a say team command.
    say /report
   
  Display the 15 highest ranked players in a MOTD window.
    say /top15

  Display all players stats and rank in a MOTD window. The
  displayed player is selection from a menu.
    say /stats

  Display time left on the map, as a say command.
    say /timeleft
 
  Display the current time, as a say command.
    say /thetime
 
  Display the current map, as a say command.
    say /currentmap
   
  Display the current status on friendly fire flag,
  as a say command.
    say /ff
   
  Switch on or off all HUD-stats announcements ("_amxstatsx").
    say /switch

============================================= ==

Tips:
-----
Code:

  NOTE! All statistics collection is done by the module
    "csstats_amx" and questions or issues should be directed
    to the module author.

  - To reset the player statistics in AMX Mod X 0.16, enter
    "csstats_reset 1" in the server consol. At the next
    mapchange the stats will be reset and the cvar
    "csstats_reset" will be set back to "0". If you put
    this command in the server.cfg the stats will be reset
    at every mapchange.
  - In AMX Mod X 0.16 statistics are by default only saved if the
    difference between kills and deaths are greater than 0.

Comments:
---------
Code:

  This code is based on/parts taken from OLO's stats v0.8.
  - Added "endround" and some other functionality from
    StatsMe 2.7 source code and config files.
  - This plugin has been updated with new functionality
    added to "stats" (by OLO), v0.8 to v0.9.6.
  - New functions and configuration flags have been added.
  - Original "/rank" is changed to "/rankstats".
  - Attackers/victims is displayed before next round end.
  - Last shot and kill included in all stats.
  - Changed HUD number on killer stats to "2" to make
    round end stats work with PTB.
  - All statistics collection is done by the module
    "csstats_mm" and questions or issues should be directed
    to the module author.

  Money is not supported in "say /report" (requires fun-module).

/X

BigBaller 03-30-2004 08:28

Thanks XAD

This will be a great addition to my server ;)

BigBaller 03-30-2004 11:33

I must say, the server has been running flawlessly for a few hours now, I believe you have nothing on this plugin to fix, I cant seem to find any bugs and everything is working correctly. Good job bro.

Knuckle$ 03-30-2004 12:46

Is there any reason for me to use this over the last version on amxmod?

BigBaller 03-30-2004 13:39

Quote:

Originally Posted by Knuckle$
Is there any reason for me to use this over the last version on amxmod?

The fact that this version is made for AMXX ??

Blind Man 03-30-2004 14:49

work for czero???

XAD 03-30-2004 14:52

Quote:

Originally Posted by Blind Man
work for czero???

Not sure as I don't have access to a CZ server... you tell me :wink: (I think it will work)...

/X

marpou 03-30-2004 16:42

Great ! I really love to se a WON version since amxx dosent work with /rank /top15 and so on.

/Marpou

Knuckle$ 03-30-2004 17:01

I was only asking because the old statsx works great if you compile it with amxX. I just recompiled my version for 0.9.8 amx and it works fine.

XAD 03-31-2004 01:26

Quote:

Originally Posted by Knuckle$
I was only asking because the old statsx works great if you compile it with amxX. I just recompiled my version for 0.9.8 amx and it works fine.

Knuckle, it sort of works (depending on which version of the Small compiler you are using) but you will miss some of my modifications (check modification log).

Using the Small compiler in version AMX Mod X 0.16, linux, you will for example get strange results after a new round as hits and damages are not initialized if you use "/me".

Also you must use the latest version published if you want any support... but on the other hand you might not care about it.

/X

BigBaller 03-31-2004 01:50

XAD

my I make a suggestion.

STEAM has basically made the show rank and top15 at end of map useless, is there anyway you just would remove those functions or would I have to take that up with the AMXX team, because those are useless functions if they dont work on STEAM and should be removed from the code.

XAD 03-31-2004 02:27

Quote:

Originally Posted by BigBaller
my I make a suggestion.

Suggestions are always welcome, but not necessarely implemented :wink:

Quote:

Originally Posted by BigBaller
STEAM has basically made the show rank and top15 at end of map useless, is there anyway you just would remove those functions or would I have to take that up with the AMXX team, because those are useless functions if they dont work on STEAM and should be removed from the code.

Basically?? Are you saying the "InterMission" ("30") messages are removed??
Regarding "StatsX" it's my plugin and not supported by the AMX Mod X team, so unless you mean changing the default "stats" plugin I wouldn't ask them.

/X

BigBaller 03-31-2004 02:34

What I am saying is, STEAM basically now loads a new map as if you were connecting to the server meaning that those functions would appear for a slipt second and then STEAM would force all clients screens to appear as if they were connecting to the server, I have noticed this since a few steam updates a while back, this also happened on AMX 0.9.7 and such.

XAD 03-31-2004 02:46

Quote:

Originally Posted by BigBaller
What I am saying is, STEAM basically now loads a new map as if you were connecting to the server meaning that those functions would appear for a slipt second and then STEAM would force all clients screens to appear as if they were connecting to the server, I have noticed this since a few steam updates a while back, this also happened on AMX 0.9.7 and such.

OK,... this has always been an issue and is due to a too short "chattime" setting. On our server we like to have 10 sec chat time at map end to say "gg" or other similar very intelligent comments :wink:

So, IF you use end of map stats MOTD you must also use chattime.

Works as designed, case closed :!:

/X

BigBaller 03-31-2004 02:53

-_-

I didnt relize the mp_chattime was needed for that, thanks for the suggestion haha.

|2ob 04-03-2004 16:08

do i remove stats.amx and put in statsx.amx? or do i leave it and just add statsx.amx?

AssKicR 04-03-2004 16:20

Re: StatsX 0.9.8b (CS 1.6)
 
Quote:

Originally Posted by XAD
IMPORTANT!
- Please read the source code header before installing or next post!


Quote:

Originally Posted by XAD
Installation:
-------------
- Copy the StatsX file "statsx.amx" to the AMX plugins
folder.
- In the AMX Mod X plugin configuration file ("plugins.ini"),
replace the line "stats.amx" with "statsx.amx".
- Add StatsX cvar to the server or AMX Mod X configuration file.
If menu configuration will not be used then also add
the "amx_statscfg" commands to one of the configuration
files.
- Restart server. Normally changing map is sufficient but
restarting the server is the "safe" procedure.
- If menu configuration is used then reconfigure the
stats settings using the "amx_statscfgmenu" command.


|2ob 04-03-2004 16:22

Re: StatsX 0.9.8b (CS 1.6)
 
Quote:

Originally Posted by AssKicR
Quote:

Originally Posted by XAD
IMPORTANT!
- Please read the source code header before installing or next post!


oh you smart smart man, you.

_KaszpiR_ 04-05-2004 07:18

/me did nor read .sma yet

any chaces for mysql version to log/read player stats ?

|2ob 04-17-2004 13:32

does this plugin trigger this event?

Code:

L 04/16/2004 - 22:19:08: "DAY WALKER  THE KLAN KILLER<11><STEAM_0:1:2809083><TERRORIST>" triggered "weaponstats2" (weapon "ak47") (head "0") (chest "1") (stomach "1") (leftarm "0") (rightarm "0") (leftleg "0") (rightleg "0")
if so, how do i disable it?

BigBaller 04-17-2004 14:12

that is enabled by the stats_logging.amx plugin, not StatsX

|2ob 04-17-2004 22:53

and if i disable that... what will hapen other than the msg going away? will StatsX still werk?

Dubie 04-17-2004 23:16

If you disable that then how are you going to get stats?
Them are stats that get wrote when the players leaves or mapchances and so on.

So no statsx will not work.
Or are you just wanting weaponstats2 disabled?

BigBaller 04-18-2004 00:09

He just wants the stats_logging.amx plugin disabled

That plugin was basically made so pyschostats can be used with its head, arm and all that extra stuff.

|2ob 04-18-2004 00:16

i am trying to figure out what is making my server crash, im guessing it was the weapon stats since it always crashes after the weaponstats triggered, it would always crash 15 lines after that (reading from logs)

BigBaller 04-18-2004 01:26

Yes yes I understand what you are saying with the stats_logging.amx

I have had this problem myself just today as a matter of fact, the weaponstats2 or w/e that is written into the log seems to be a buggy plugin it would crash my server after a few maps, remove it and it was all fine.

|2ob 04-18-2004 01:53

i removed it, and it still crashed, no errors in HLDS or Logs... wierd...

BigBaller 04-18-2004 01:58

Then I think we have a similar problem because I didnt have any errors logs or anything, maybe its the CSStats module itself that is causing the problems.

|2ob 04-18-2004 03:20

maybe, it might not b up to snuff with CS:CZ (which is wut im running)

[Gladiator] 04-18-2004 03:38

Quote:

Originally Posted by XAD
Quote:

Originally Posted by Blind Man
work for czero???

Not sure as I don't have access to a CZ server... you tell me :wink: (I think it will work)...

/X

I have helped a friend of putting up a CZero HLDS server and StatsX with amx mod X works great on that one...Have now changed on my server too (was using amx mod before)...Great work XAD... :D

If anyone wants to check it out here are the servers,

CZERO;
S w e d e n ---- S t o c k h o l m ---- V i p e r X [BBB]10mb
213.114.248.29:27015

CS;
Dark Corner 2 [AMXX]
213.114.169.70:27015

XAD 04-18-2004 06:54

Quote:

Originally Posted by [Gladiator
]I have helped a friend of putting up a CZero HLDS server and StatsX with amx mod X works great on that one...Have now changed on my server too (was using amx mod before)...Great work XAD... :D

Thanks for the info Gladiator...

/X

|2ob 04-18-2004 21:06

ummm, im not sure if its StatsX yet but, on my czero server it crashes like, every 4 - 5 hours

_KaszpiR_ 04-19-2004 03:38

are you sure it is amxmodx issue?

XAD 04-19-2004 04:49

Quote:

Originally Posted by |2ob
ummm, im not sure if its StatsX yet but, on my czero server it crashes like, every 4 - 5 hours

PLEASE do NOT post general issues in the plugin's threads.

Unless the server run stable without the specific plugin, in this case if it runs stable if you only remove StatsX, then please post your issues in the correct forum category.

If the StatsX makes the server instable then first only run with the default plugins to make sure it runs stable, then only add StatsX (do not run any other MetaMod plugins). If it then crashes, please post your OS, server info, MetaMod version, AMXX version, in this thread and I will try to help you.

/X

|2ob 04-19-2004 05:45

sry XAD, i dont know what is was, but i took out all stats plugins and it runs fine now. i think it was miscstats.amx since i have had tons of runtime errors in logs.

Kamikatze 04-19-2004 19:47

Hmm.. i have problems with my cz server and statsx. The victims and attacker list will not show up (it's enabled through statscfgmenu)

i've had the same error with stats.amx (hoped that statsx will handle this in another way).. but...

XAD 04-19-2004 20:12

Quote:

Originally Posted by Kamikatze
Hmm.. i have problems with my cz server and statsx. The victims and attacker list will not show up (it's enabled through statscfgmenu)

Do you get any HUD-stats messages such as the killer info or best score/most disruptive??
Did you reconfigure the stats config after installing StatsX?? (Must be done as some parms are different.)

/X

aran384 04-20-2004 16:14

maybe u could add the styled stats like in the normal stats which are wicked but i love the the extra features of statsX could u make it so statsX has the stuff in normal stats with the styles ??

Kamikatze 04-21-2004 19:05

Quote:

Originally Posted by XAD
Do you get any HUD-stats messages such as the killer info or best score/most disruptive??
Did you reconfigure the stats config after installing StatsX?? (Must be done as some parms are different.)

/X

yes i have reconfigure it, what i can see is multikill and headshot and something like that and the chat output who has killed me. but no av list or best score/most disruptive

with stats.amx the av list works sometimes (i think if the player was not dead thgen the av list shows up at end of the round) best score/most disruptive works with stats.amx


All times are GMT -4. The time now is 03:52.

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