ptaha525
Новичок
- Сообщения
- 10
- Реакции
- 3
All files permissions 777
statsx/avatars.update.php
statsx/avatars.update.php
Steam avatars its Done! Update 167 steamids
Код:
<?php
What items to display in the MOTD window
Specify the flags in the order in which you want the items to be displayed
//
a - Fragi A - Nick
b - Deaths B - AuthID
c - Head C - IP
d - HS percentage D - Country flag in front of the nickname
e - Hits E - Player's city
f - Shots F - STEAM avatar in front of the nickname
g - Damage G - GameCMS avatar in front of the nickname
h - Efficiency in % H - Circle green in front of the nickname if online. Red if offline
i - Accuracy in % I - Avatar frame is green if online. Red if offline
j - K:D J - Nickname style from the GameCMS profile
k - HS:K K - New player (after the nickname there will be the inscription "new")
l - Suicide L - Cup instead of numbers in the first three positions
m - Timkillov M - Steam icon after the nickname
n - Attempts to demine N - GS client icon (does not work, they have not yet figured out how to detect it on Steam ID)
o - Defused bombs O - Balance on GameCMS
p - Set a bomb P - Play rounds for T and CT
q - Detonated a bomb Q - STEAM profile link
r - Skill (letter) R - Link to GameCMS profile
s - Rank S - Was banned
t - Experience T - Player's command (output to /hot only)
u - To the next rank U - The flag of the country in front of the city
v - Extra XP V - For add-ons
w - Points anew W - for addons
x - Was online X - for addons
y - Total time in the game Y - for addons
z - Place in stats Z - for add-ons
//
$c_['statsx_top'] = "zTADFGHJKLMN abcd h rsu"; Top Window
$c_['statsx_rankstats'] = "GAIJKMNH BCEUQR xyP rstuvwSO | zabcdefghijklmnopq"; player window (the first flag must be an avatar, the left and right of the table are separated by the symbol "|")
Where the styles lie.
//$c_['statsx_style'] = "//shop.fungun.net/downloads/style/";
$c_['statsx_style'] = "style/";
Reduce player nicknames by as many characters
So that a long nickname does not take up much space
$c_['statsx_nick'] = "20";
A new player is considered to be the one who has played less than this number of seconds on the server (1200:hour)
$c_['statsx_new_player'] = "1200";
Assigning a skill
If you use CsStats MySQL, you don't need to configure this quarry, its value will still be loaded from the database
Values: L- L L+ M- M M+ H- H H+ P- P P+ G (Low Middle High Pro GoodLuck)
Default: "0 200 800 1500 3500 4500 5500 8000 10000 11000 12000 13000 17000"
if you use the Skill ELO plugin, then enter the following data in the quar: "0 60 75 85 100 115 130 140 150 165 180 195 210"
If you use an efficiency formula, then: "0 10 20 30 40 50 60 70 80 85 90 95 100"
$c_['statsx_skill'] = "0 65 800 1500 3500 4500 5500 8000 10000 11000 12000 13000 17000";
Title
When using CsStats MySQL, this quart does not need to be filled in, the data will be taken from the database
These quarts can come in handy if you sew any analogue of Army Ranks Ultimate to the statistics
$c['level_name']=[1=>'Cadet', 2=>'Private', 3=>'Junior Sergeant'];
//$c['ar_levels']=[0=>0, 1=>100, 2=>300];
For testing
//$c_['statsx_debug']="1";
Database data from CsStats MySQL is needed for more complete player statistics
You can get them from the Web statistics file: WebStats/inlude/config.php
$c_['csstats_host'] = "127.0.0.1";
$c_['csstats_user'] = "super secret";
$c_['csstats_pass'] = "super secret";
$c_['csstats_db'] = "super secret";
$c_['csstats_table_players'] = "csstats_players";
$c_['csstats_table_settings'] = "csstats_settings";
Database data from GameCMS to make avatars and user balance work
You can get them on the website: /inc/db.php
$c_['gamecms_host'] = "127.0.0.1";
$c_['gamecms_user'] = "super secret";
$c_['gamecms_pass'] = "super secret";
$c_['gamecms_db'] = "super secret";
$c_['gamecms_url'] = "http://super secret/";
DB data from AMXBans, to get the number of bans from the player
You can get them on the server, in the amxbans_rbs.cfg or sql.cfg config or another config from the ban plugin
$c_['amxbans_host'] = "127.0.0.1";
$c_['amxbans_user'] = "super secret";
$c_['amxbans_pass'] = "super secret";
$c_['amxbans_db'] = "super secret";
$c_['amxbans_table'] = "amx_bans";
To upload avatars from Steam, you need to perform several actions
1 - Create an apikey in Steam, you can specify any domain when creating: https://steamcommunity.com/dev/apikey
And enter the key in the quar below, an example of a key: A2ABC532BA5CVF71J08X6EP6DG5UA7J7
2 - To understand from the STEAM ID of the player whether he is a real steam user or not, you need to correctly configure reunion or dproto.
The idea is that the real Steam players have the STEAM_0 prefix, and the rest of the players have the VALVE_ prefix
This is configured in reunion.cfg, put cid_Steam = 1, and for the rest of the emulators any other numbers except 1 and 3. Read more in our documentation
Of course, if you change these settings, then the steam ID of the players will change, and the statistics will crash
3 - You need to configure the cron scheduler so that it runs the avatars.update.php script every hour (this script updates the avatars of steam players from your statistics)
This is done in the web hosting control panel, example: */20 * * wget https://site.ru/statsx/avatars.update.php
It is advisable to first go through the link, and make sure that it works, it can take a long time to load, this is normal
4 - CsStats MySQL statistics should work, as they load players' steam ID
5 - The avatars folder permissions must be 775 (write permissions to have)
$c_['steam_apikey'] = "super secret";
These quarters are responsible for how avatars will be displayed
1 - links to avatars will simply be displayed
The simplest option is that links to Steam avatars will be in the avatars/steam.cache file
and links to avatars from GameCMS will be loaded from the database
However, with this option, there may be problems with HTTPS, which you most likely have enabled, and ITTO windows do not particularly like HTTPS
2 - the avatar files themselves will be uploaded to the avatars folder
Recommended option, since the avatars will already be on your server, and there will be no problems with SSL and error -113
Avatars will also be optimized for the desired size, thereby loading faster for players when opening the MOTD window (10 times faster)
For this option, you need to configure the cron scheduler as described above
$c_['steam_avatars'] = "1";
$c_['gamecms_avatars'] = "1";
?>
Код:
# ========================================================
# REUNION CONFIGURATION
# ========================================================
#
# General rule for modifying this file:
# DONT CHANGE ANYTHING IF YOU DONT KNOW WHAT IT MEANS!
#
# ========================================================
# AUTHID MANAGEMENT
# ========================================================
# ClientID types (for cid_* options)
# 1: Real (or generated by HW) steam (STEAM_xx:xx:xx)
# 2: Real (or generated by HW) valve (VALVE_xx:xx:xx)
# 3: STEAM_ by IP
# 4: VALVE_ by IP
# 5: Deprecated - client will be rejected
# 6: reserved for future use
# 7: HLTV
# 8: STEAM_ID_LAN
# 9: STEAM_ID_PENDING
# 10: VALVE_ID_LAN
# 11: VALVE_ID_PENDING
# 12: STEAM_666:88:666
# Use these options to set authid's for clients
### AUTH CONTROL ###
# For Legit Steam clients (default is real STEAM_xx:xx:xx [1])
cid_Steam = 1
# Client recognized as pending when they sucessfully authorized, but did not get steam id
# REMARK: Actually, it got steamid, but it is useless (STEAM_0:0:0 for example)
# default is Deprecated [5]
cid_SteamPending = 5
# for HLTV (default is Deprecated [5])
cid_HLTV = 5
# for p.47 clients that do not support unique id generation (default is Deprecated [5])
cid_NoSteam47 = 4
# for p.48 clients that do not support unique id generation (default is Deprecated [5])
cid_NoSteam48 = 4
# For players having revEmu ( >= 9.74) on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_RevEmu = 1
# For players having RevEmu 2013 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_RevEmu2013 = 1
# For players having SteamClient 2009 / revEmu > 9.82 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SC2009 = 1
# For players having old revEmu on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_OldRevEmu = 1
# For players having hCupa's SteamEmu on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SteamEmu = 1
# For players having AVSMP (Cracked Steam) on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_AVSMP = 1
# For SETTI ServerScanner
# default is STEAM_xx:xx:xx generated by IP [3]
cid_Setti = 3
# For SXEI Clients
# default is real STEAM_xx:xx:xx [1]
cid_SXEI = 1
# For players having SmartSteamEmu > 1.2.4 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SSE3 = 1
### AUTH SETTINGS ###
# Authorization protocols version. All steamdid's of non-steams players will be changed in common with this value.
# 1: DProto (deprecated)
# 2: Reunion 2015-2018
# 3: Reunion new (recommended)
AuthVersion = 3
# SteamIdHashSalt (string)
# Salt string for SteamIDs hashing. Irreversibly changes SteamIDs. Prevents SteamID stealing.
# Should be more than 16 chars length. If string is empty, hashing is not applied (AuthVersion < 3) or Reunion init will be failed (AuthVersion >= 3).
SteamIdHashSalt = super secret
# SC2009_RevCompatMode (0 / 1)
# Enable fix to make steamids generated for SC2009 compatible with revEmu. Can't be disabled with AuthVersion >= 3.
# Default: 1
SC2009_RevCompatMode = 1
# EnableSXEIdGeneration (0 / 1)
# Turns on steamid generation based on info sent by sXeI client
# Enable this ONLY if you have sXeI server installed!
# Default: 0
EnableSXEIdGeneration = 0
# EnableGenPrefix2 (0 / 1)
# Enable second prefix (STEAM_*:0/1:****) for generated authids. Reduces chance of authid collisions. Works only with configured SteamIdHashSalt. Can't be disabled with AuthVersion >= 3.
# Default: 0
EnableGenPrefix2 = 0
# HLTVExcept_IP (ip addr)
# HLTV from this IP will be able to join the server even if cid_HLTV is set to 5 (deprecated)
HLTVExcept_IP = super secret
### AUTHID PREFIXES ###
# This config section will be ignored when AuthVersion > 2.
# IPGen_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by IP
IPGen_Prefix1 = 0
# IPGen_Prefix2 (int)
# STEAM_a:b:c
# second prefix (b) for authids generated by IP
IPGen_Prefix2 = 4
# Native_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by native auth method (Steam)
Native_Prefix1 = 0;
# RevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by RevEmu
RevEmu_Prefix1 = 1;
# RevEmu2013_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by RevEmu2013
RevEmu2013_Prefix1 = 1;
# SC2009_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by Steamclient 2009
SC2009_Prefix1 = 1;
# OldRevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by old RevEmu
OldRevEmu_Prefix1 = 2;
# SteamEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by SteamEmu
SteamEmu_Prefix1 = 3;
# SteamEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for AVSMP Clients (Cracked steam)
AVSMP_Prefix1 = 4;
# Setti_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for Setti server scanner
Setti_Prefix1 = 5;
# SXEI_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for sXeI clients
SXEI_Prefix1 = 6;
# SSE3_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for SSE3
SSE3_Prefix1 = 7;
# Note that banid will use steamid WITHOUT any prefixes!
# ========================================================
# SERVER QUERIES MANAGEMENT
# ========================================================
# ServerInfoAnswerType (0/1/2)
# Sets server answer type for query requests
# 0 = New style (Steam) (recommended)
# 1 = Old Style (GoldSource Engine)
# 2 = Hybrid mode - Server is visible anywhere, but there are 3 packets generated for every serverinfo request
# Default: 0
ServerInfoAnswerType = 2
# FixBuggedQuery (0 / 1)
# Enable fix for clients with bugged serverbrowser. Prevents hanging on connect.
# Default: 1
FixBuggedQuery = 1
# EnableQueryLimiter (0 / 1)
# Enable ratelimit for server queries (TSource, players, etc). You can use 0 if external protection solutions used.
# Default: 1
EnableQueryLimiter = 1
# QueryRateLimit (128/2048)
# Global rate limit for server queries in packets/sec.
# Default: 256
QueryRateLimit = 512
# QueryFloodBanLevel (320 - 2048).
# Queries/sec level for ip ban. Maximum measured legit level is 80/sec.
# Default: 400
QueryFloodBanLevel = 400
# QueryFloodBanTime (0 - 60).
# Ban time in minutes for server query flooding. Use 0 to disable bans (block only).
# Default: 10
QueryFloodBanTime = 10
[QueryLimiterExceptIP]
super secret
# LogAttacks (0 / 1)
# Log attacks to reunion_attacks.log
# Default: 1
LogAttacks = 1
# AllowSplitPackets (0 / 1)
# Allow splitting of outgoing packets if they size are greater than 1400. Used in original steamclient, but does not supported by some monitorings.
# Default: 0
AllowSplitPackets = 0
# IPClientsLimit (0 - 32)
# Maximum number of clients from single ip. Useful for computer clubs.
# Default: 5
IPClientsLimit = 5
# ========================================================
# OTHER STUFF
# ========================================================
# LoggingMode:
# 0 = None
# 1 = Console
# 2 = Log Files
# 3 = Both
LoggingMode = 3
Вложения
Последнее редактирование: