Status: Hide the FakeClients
This commit is contained in:
parent
2f628d9846
commit
8a31865ec7
@ -76,7 +76,7 @@ public Action Command_Status(int client, const char[] command, int args)
|
||||
{
|
||||
iTotalClients++;
|
||||
|
||||
if(IsFakeClient(player))
|
||||
if(IsClientSourceTV(player))
|
||||
iFakeClients++;
|
||||
else
|
||||
iRealClients++;
|
||||
@ -148,6 +148,9 @@ public Action Command_Status(int client, const char[] command, int args)
|
||||
if(!GetClientAuthId(player, AuthId_Steam2, sPlayerAuth, sizeof(sPlayerAuth)))
|
||||
FormatEx(sPlayerAuth, sizeof(sPlayerAuth), "STEAM_ID_PENDING");
|
||||
|
||||
if(IsFakeClient(player) && !IsClientSourceTV(player))
|
||||
FormatEx(sPlayerAuth, sizeof(sPlayerAuth), "STEAM_0:%d:%d", GetRandomInt(0, 1), GetRandomInt(10000000, 100000000));
|
||||
|
||||
if(!IsFakeClient(player))
|
||||
{
|
||||
int iHours = RoundToFloor((GetClientTime(player) / 3600));
|
||||
@ -162,6 +165,12 @@ public Action Command_Status(int client, const char[] command, int args)
|
||||
FormatEx(sPlayerPing, sizeof(sPlayerPing), "%d", RoundFloat(GetClientLatency(player, NetFlow_Outgoing) * 800));
|
||||
FormatEx(sPlayerLoss, sizeof(sPlayerLoss), "%d", RoundFloat(GetClientAvgLoss(player, NetFlow_Outgoing) * 100));
|
||||
}
|
||||
else if(!IsClientSourceTV(player))
|
||||
{
|
||||
FormatEx(sPlayerTime, sizeof(sPlayerTime), "%d:%d", GetRandomInt(0, 59), GetRandomInt(10, 59));
|
||||
FormatEx(sPlayerPing, sizeof(sPlayerPing), "%d", GetRandomInt(15, 200));
|
||||
FormatEx(sPlayerLoss, sizeof(sPlayerLoss), "0");
|
||||
}
|
||||
|
||||
if(IsClientInGame(player))
|
||||
FormatEx(sPlayerState, sizeof(sPlayerState), "active");
|
||||
@ -170,10 +179,15 @@ public Action Command_Status(int client, const char[] command, int args)
|
||||
|
||||
if(GetAdminFlag(GetUserAdmin(client), Admin_RCON))
|
||||
{
|
||||
if(!IsFakeClient(player))
|
||||
GetClientIP(player, sPlayerAddr, sizeof(sPlayerAddr));
|
||||
else if(!IsClientSourceTV(player))
|
||||
FormatEx(sPlayerAddr, sizeof(sPlayerAddr), "%d.%d.%d.%d", GetRandomInt(20, 200), GetRandomInt(0, 200), GetRandomInt(0, 200), GetRandomInt(0, 200));
|
||||
|
||||
if (IsFakeClient(player))
|
||||
if(IsClientSourceTV(player))
|
||||
FormatEx(sPlayerType, sizeof(sPlayerType), "FakeClient");
|
||||
else if(IsFakeClient(player))
|
||||
FormatEx(sPlayerType, sizeof(sPlayerType), "SteamLegit");
|
||||
else
|
||||
PM_GetPlayerType(player, sPlayerType, sizeof(sPlayerType));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user