PlaytimeReward: Quick formatting cleanup.

xD
This commit is contained in:
zaCade 2018-12-16 14:52:35 +01:00
parent b27f82bd3f
commit dfd1a81bff

View File

@ -47,26 +47,26 @@ public void EventHook_PlayerDisconnect(Event hEvent, const char[] sName, bool bD
public Action Timer_CheckConnectionTime(Handle hThis) public Action Timer_CheckConnectionTime(Handle hThis)
{ {
for (int i = 1; i <= MaxClients; i++) for (int i = 1; i <= MaxClients; i++)
{ {
if (!IsValidClient(i)) if (!IsValidClient(i))
continue; continue;
if (g_iClientConnectionTime[i] < 36000) if (g_iClientConnectionTime[i] < 36000)
g_iClientConnectionTime[i] += 30; g_iClientConnectionTime[i] += 30;
for(int iTime = 1800; iTime <= 36000; iTime += 1800) for(int iTime = 1800; iTime <= 36000; iTime += 1800)
{ {
if ((g_iClientConnectionTime[i] % iTime) == 0) if ((g_iClientConnectionTime[i] % iTime) == 0)
{ {
char sPlayerEvent[32]; char sPlayerEvent[32];
Format(sPlayerEvent, sizeof(sPlayerEvent), "staying_server_%d", g_iClientConnectionTime[i] / 60); Format(sPlayerEvent, sizeof(sPlayerEvent), "staying_server_%d", g_iClientConnectionTime[i] / 60);
LogPlayerEvent(i, "triggered", sPlayerEvent); LogPlayerEvent(i, "triggered", sPlayerEvent);
break; break;
} }
} }
} }
} }
stock bool IsValidClient(int client) stock bool IsValidClient(int client)