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)