sorry about the fucked up indenting

This commit is contained in:
jenz 2024-06-26 20:01:38 +02:00
parent ebeee260e4
commit 4e945bb6b4

View File

@ -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;
}
//----------------------------------------------------------------------------------------------------