From 4e945bb6b47abbfd670a275a6cf50a31651cd2fc Mon Sep 17 00:00:00 2001 From: jenz Date: Wed, 26 Jun 2024 20:01:38 +0200 Subject: [PATCH] sorry about the fucked up indenting --- FakeClients/scripting/FakeClients.sp | 32 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/FakeClients/scripting/FakeClients.sp b/FakeClients/scripting/FakeClients.sp index a7c9b1ef..2bee588e 100755 --- a/FakeClients/scripting/FakeClients.sp +++ b/FakeClients/scripting/FakeClients.sp @@ -267,17 +267,17 @@ public Action RandomizePing(Handle timer) //---------------------------------------------------------------------------------------------------- public Action RandomizeNames(Handle timer) { - ArrayList hNames = g_hNames.Clone(); - ArrayList hClanNames = g_hClanNames.Clone(); - for(int i = 1; i <= MaxClients; i++) - { - if(g_bFakePopulation[i] || IsClientAutismBot(i)) - { - int iRand = GetRandomInt(0, hNames.Length - 1); - char sName[MAX_NAME_LENGTH]; - hNames.GetString(iRand, sName, sizeof(sName)); - hNames.Erase(iRand); - SetClientName(i, sName); + ArrayList hNames = g_hNames.Clone(); + ArrayList hClanNames = g_hClanNames.Clone(); + for(int i = 1; i <= MaxClients; i++) + { + if(g_bFakePopulation[i] || IsClientAutismBot(i)) + { + int iRand = GetRandomInt(0, hNames.Length - 1); + char sName[MAX_NAME_LENGTH]; + hNames.GetString(iRand, sName, sizeof(sName)); + hNames.Erase(iRand); + SetClientName(i, sName); if (GetRandomInt(0, 5) >= 3) { @@ -290,11 +290,11 @@ public Action RandomizeNames(Handle timer) { CS_SetClientClanTag(i, ""); } - } - } - delete hNames; - delete hClanNames; - return Plugin_Continue; + } + } + delete hNames; + delete hClanNames; + return Plugin_Continue; } //----------------------------------------------------------------------------------------------------