sorry about the fucked up indenting
This commit is contained in:
parent
ebeee260e4
commit
4e945bb6b4
@ -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;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user