From dfd1a81bff61382dbed3ffc92d49db10b9aff9c3 Mon Sep 17 00:00:00 2001 From: zaCade Date: Sun, 16 Dec 2018 14:52:35 +0100 Subject: [PATCH] PlaytimeReward: Quick formatting cleanup. xD --- PlaytimeReward/scripting/PlaytimeReward.sp | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/PlaytimeReward/scripting/PlaytimeReward.sp b/PlaytimeReward/scripting/PlaytimeReward.sp index 8e70ef90..b0b53410 100644 --- a/PlaytimeReward/scripting/PlaytimeReward.sp +++ b/PlaytimeReward/scripting/PlaytimeReward.sp @@ -47,26 +47,26 @@ public void EventHook_PlayerDisconnect(Event hEvent, const char[] sName, bool bD public Action Timer_CheckConnectionTime(Handle hThis) { - for (int i = 1; i <= MaxClients; i++) - { - if (!IsValidClient(i)) - continue; + for (int i = 1; i <= MaxClients; i++) + { + if (!IsValidClient(i)) + continue; - if (g_iClientConnectionTime[i] < 36000) + if (g_iClientConnectionTime[i] < 36000) g_iClientConnectionTime[i] += 30; - for(int iTime = 1800; iTime <= 36000; iTime += 1800) - { - if ((g_iClientConnectionTime[i] % iTime) == 0) - { - char sPlayerEvent[32]; - Format(sPlayerEvent, sizeof(sPlayerEvent), "staying_server_%d", g_iClientConnectionTime[i] / 60); + for(int iTime = 1800; iTime <= 36000; iTime += 1800) + { + if ((g_iClientConnectionTime[i] % iTime) == 0) + { + char sPlayerEvent[32]; + Format(sPlayerEvent, sizeof(sPlayerEvent), "staying_server_%d", g_iClientConnectionTime[i] / 60); - LogPlayerEvent(i, "triggered", sPlayerEvent); - break; - } - } - } + LogPlayerEvent(i, "triggered", sPlayerEvent); + break; + } + } + } } stock bool IsValidClient(int client)