#include <server/world.qh>
#endif
+
+#ifdef GAMEQC
+REPLICATE(cvar_cl_allow_uid2name, int, "cl_allow_uid2name");
+REPLICATE(cvar_cl_allow_uidranking, bool, "cl_allow_uidranking");
+REPLICATE(cvar_cl_allow_uidtracking, int, "cl_allow_uidtracking");
+#endif
+
+#ifdef SVQC
+REPLICATE_APPLYCHANGE("cl_allow_uidtracking", { PlayerStats_GameReport_AddPlayer(this); });
+#endif
+
#ifdef SVQC
void PlayerStats_Prematch()
{
strfree(PS_GR_OUT_EVL);
if (PS_GR_OUT_DB >= 0)
+ {
db_close(PS_GR_OUT_DB);
- PlayerStats_GameReport_Init();
+ PlayerStats_GameReport_Init();
+ }
if(PS_GR_OUT_DB < 0)
return;
{
if(CS(p).latency_cnt)
{
- float latency = (CS(p).latency_sum / CS(p).latency_cnt);
+ float latency = max(0, CS(p).latency_sum / CS(p).latency_cnt);
if(latency)
PlayerStats_GameReport_Event_Player(p, PLAYERSTATS_AVGLATENCY, latency);
}
* i: player index
* n: nickname of the player (optional)
* t: team ID
+ * r: player ranking enabled / disabled
* e: followed by an event name, a space, and the event count/score
* event names can be:
* alivetime: total playing time of the player