Type !eff in the game to turn on/off combo effect.
Type !sound in the game to turn on/off combo sound.
When will save data?
To avoid making the server lag, I just added two triggers for it.
Round end
Player disconnected
Native functions:
Spoiler
PHP Code:
/**
* Gets the version of rank
* @param buffer string buffer
* @return current version of rank system in form of a float
*/
native float SRS_GetVersion();
/**
* Get 4 clients of a rounds MVP
*
* @param buffer1 buffer to store client index
* @param buffer2 buffer to store client's score
* @return none
*/
native void SRS_GetMvp(int[] buffer1, float[] buffer2);
/**
* Get a client's score
*
* @param client client index
* @param srsType SRS Type
* @return score of the client
*/
native int SRS_GetScore (int client, int srsType);
/**
* Get the server score depends on game settings status
*
* @param buffer buffer to store the string
* @param buffer size of the buffer
* @return none
*/
native void SRS_GetScoreStatus (char[] buffer, int size);
/**
* Get a client's rank and score
*
* @param steamId client steamId
* @param rank rank pointer
* @param score score pointer
* @return rank of the client
*/
native void SRS_GetRankAndScore (const char[] steamId, int& rank, float& score);
/**
* Get a online client's rank and score
*
* @param int client index
* @param rank rank pointer
* @param score score pointer
* @return rank of the client
*/
native void SRS_GetOnlinePlayRankAndScore (const int client, int& rank, float& score);
ConVars:
Spoiler
PHP Code:
// This file was auto-generated by SourceMod (v1.10.0.6494)
// ConVars for plugin "l4d2_srs.smx"
// How many Combo for each level?
// -
// Default: "5"
srs_combo_level "5"
// How many seconds to decrease for each level?
// -
// Default: "0.4"
srs_combo_time_decrease "0.4"
// Minimun combo time after decreasing by combo level
// -
// Default: "2.5"
srs_combo_time_min "2.5"
// Add your server commands that open a menu/panel to here so that the panel will not block menu.
// Use ',' to split commands.
// -
// Default: "sm_top,sm_ji,sm_top10,sm_ivoteblock,sm_menu,sm_ivote,sm_ihud,sm_csm,sm_lightmenu,sm_hat,sm_hats,sm_shop,sm_admin,sm_team,sm_teams,sm_buy,sm_market,sm_item,sm_items,sm_usepoint,sm_usepoints,sm_buy_confirm,sm_kill,sm_suicide"
srs_command_white_list "sm_top,sm_ji,sm_top10,sm_ivoteblock,sm_menu,sm_ivote,sm_ihud,sm_csm,sm_lightmenu,sm_hat,sm_hats,sm_shop,sm_admin,sm_team,sm_teams,sm_buy,sm_market,sm_item,sm_items,sm_usepoint,sm_usepoints,sm_buy_confirm,sm_kill,sm_suicide"
// Add [--] country tag before the name?
// 0=Off, 1=On
// -
// Default: "1"
srs_country_tag "1"
// How many score multiply/divide in easy difficulty?
// 1.0=No Multiply/Divide
// -
// Default: "0.5"
srs_difficulty_easy "0.5"
// How many score multiply/divide in hard difficulty?
// 1.0=No Multiply/Divide
// -
// Default: "1.5"
srs_difficulty_hard "1.5"
// How many score multiply/divide in impossible difficulty?
// 1.0=No Multiply/Divide
// -
// Default: "2.0"
srs_difficulty_impossible "2.0"
// How many score multiply/divide in normal difficulty?
// 1.0=No Multiply/Divide
// -
// Default: "1.0"
srs_difficulty_normal "1.0"
// Extra common intected spawn time.
// -1=OFF,0=Depends on amount of players (60 - (survivors*3), min=30.0)
// -
// Default: "45.0"
srs_extra_ci_spawn_time "60.0"
// How many seconds for frame move once? (Affect all timer)
// -
// Default: "0.1"
srs_frame_move_time "0.1"
// How many score multiply/divide in coop gamemod?
// 1.0=No Multiply/Divide
// -
// Default: "1.0"
srs_gamemode_coop "1.0"
// How many score multiply/divide in realism gamemod?
// 1.0=No Multiply/Divide
// -
// Default: "1.0"
srs_gamemode_realism "1.0"
// How many score multiply/divide in scavenge gamemod?
// 1.0=No Multiply/Divide
// -
// Default: "1.0"
srs_gamemode_scavenge "1.0"
// How many score multiply/divide in survival gamemod?
// 1.0=No Multiply/Divide
// -
// Default: "1.0"
srs_gamemode_survival "1.0"
// How many score multiply/divide in teamscavenge gamemod?
// 1.0=No Multiply/Divide
// -
// Default: "1.0"
srs_gamemode_teamscavenge "1.0"
// How many score multiply/divide in teamversus gamemod?
// 1.0=No Multiply/Divide
// -
// Default: "1.0"
srs_gamemode_teamversus "1.0"
// How many score multiply/divide in versus gamemod?
// 1.0=No Multiply/Divide
// -
// Default: "1.0"
srs_gamemode_versus "1.0"
Re: [L4D2] Statistic and Ranking System (SRS) [v2.1 | 23 June 2021]
Finally a new plugin on server statistics is it possible to install it on a local server? to use Listenserver? if i could add local server support it would be prefect :(
marki89
06-23-2021 10:33
Re: [L4D2] Statistic and Ranking System (SRS) [v2.1 | 23 June 2021]
It would also be good if it works for the local sv ;)
VladimirTk
07-06-2021 11:27
Re: [L4D2] Statistic and Ranking System (SRS) [v2.1 | 23 June 2021]
The plugin works fine for Windows Listenserver it was my mistake to assume it wouldn't
Could you add a function or cvar so that the panel doesn't open automatically every time someone joins? they don't always know how to close it
I do not know English in case it is not understood :(
pan0s
07-06-2021 20:56
Re: [L4D2] Statistic and Ranking System (SRS) [v2.1 | 23 June 2021]
Quote:
Originally Posted by VladimirTk
(Post 2752008)
The plugin works fine for Windows Listenserver it was my mistake to assume it wouldn't
Could you add a function or cvar so that the panel doesn't open automatically every time someone joins? they don't always know how to close it
I do not know English in case it is not understood :(
We have the same problem that many players cannot close the menu and therefore no other important menus (classes / perks) are displayed. I exchanged the lines in scripting / l4d2_srs.sp but that didn't change anything.
pan0s
08-11-2021 20:28
Re: [L4D2] Statistic and Ranking System (SRS) [v2.1 | 23 June 2021]
Quote:
Originally Posted by Wolfyy
(Post 2754808)
We have the same problem that many players cannot close the menu and therefore no other important menus (classes / perks) are displayed. I exchanged the lines in scripting / l4d2_srs.sp but that didn't change anything.
The change which is like I said is just edits the default setting, and will not affect players who have already have their own record. It means players who join the game first time, that will not show SRS menu automatically, only if they turn the '4.Options -5.Auto Open SRS' on.
Check your Options setting on the SRS menu (figure.4, the second figure).
The Options setting will be saved to the db, so if you have already a record which has set the auto open SRS to true by default there,
you need to turn the
'4.Options -5.Auto Open SRS' off first by pressing '4' and '5' on the first page of the SRS menu.
Wolfyy
08-20-2021 14:28
Re: [L4D2] Statistic and Ranking System (SRS) [v2.1 | 23 June 2021]
Quote:
Originally Posted by pan0s
(Post 2755091)
The change which is like I said is just edits the default setting, and will not affect players who have already have their own record. It means players who join the game first time, that will not show SRS menu automatically
Sadly it doesnt work.
I put it ready with changed lines in l4d2_srs.sp on a other server and still everyone has it open.