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)
|
public Action RandomizeNames(Handle timer)
|
||||||
{
|
{
|
||||||
ArrayList hNames = g_hNames.Clone();
|
ArrayList hNames = g_hNames.Clone();
|
||||||
ArrayList hClanNames = g_hClanNames.Clone();
|
ArrayList hClanNames = g_hClanNames.Clone();
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
if(g_bFakePopulation[i] || IsClientAutismBot(i))
|
if(g_bFakePopulation[i] || IsClientAutismBot(i))
|
||||||
{
|
{
|
||||||
int iRand = GetRandomInt(0, hNames.Length - 1);
|
int iRand = GetRandomInt(0, hNames.Length - 1);
|
||||||
char sName[MAX_NAME_LENGTH];
|
char sName[MAX_NAME_LENGTH];
|
||||||
hNames.GetString(iRand, sName, sizeof(sName));
|
hNames.GetString(iRand, sName, sizeof(sName));
|
||||||
hNames.Erase(iRand);
|
hNames.Erase(iRand);
|
||||||
SetClientName(i, sName);
|
SetClientName(i, sName);
|
||||||
|
|
||||||
if (GetRandomInt(0, 5) >= 3)
|
if (GetRandomInt(0, 5) >= 3)
|
||||||
{
|
{
|
||||||
@ -290,11 +290,11 @@ public Action RandomizeNames(Handle timer)
|
|||||||
{
|
{
|
||||||
CS_SetClientClanTag(i, "");
|
CS_SetClientClanTag(i, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete hNames;
|
delete hNames;
|
||||||
delete hClanNames;
|
delete hClanNames;
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user