PlaytimeReward: try number 124213532

This commit is contained in:
neon 2018-12-16 14:29:55 +01:00
parent 93aa3d03b7
commit b27f82bd3f

View File

@ -52,14 +52,15 @@ public Action Timer_CheckConnectionTime(Handle hThis)
if (!IsValidClient(i))
continue;
g_iClientConnectionTime[i] += 30;
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", iTime / 60);
Format(sPlayerEvent, sizeof(sPlayerEvent), "staying_server_%d", g_iClientConnectionTime[i] / 60);
LogPlayerEvent(i, "triggered", sPlayerEvent);
break;