just renaming the hostname
This commit is contained in:
parent
ab55282282
commit
72e76e4f09
@ -292,7 +292,7 @@ public Action ApplySettings(Event event, const char[] name, bool dontBroadcast)
|
|||||||
if (l_iWeapon != -1 && i != 2)
|
if (l_iWeapon != -1 && i != 2)
|
||||||
{
|
{
|
||||||
RemovePlayerItem(client, l_iWeapon);
|
RemovePlayerItem(client, l_iWeapon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1190,8 +1190,18 @@ public Action RetrieveWaveSettings(int wave)
|
|||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int total_days = 23;
|
||||||
|
for (int i = 0; i < sizeof(g_cDaysTitles); i++)
|
||||||
|
{
|
||||||
|
if (strlen(g_cDaysTitles[i]) == 0)
|
||||||
|
{
|
||||||
|
total_days = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
char hostname[512];
|
char hostname[512];
|
||||||
Format(hostname, sizeof(hostname), "UNLOZE | Zombie Riot | Ranking | Day %i: %s", wave, g_cDaysTitles[wave - 1]);
|
Format(hostname, sizeof(hostname), "UNLOZE | [ZRiot: Day %i/%i] %s | Ranking", wave, total_days, g_cDaysTitles[wave - 1]);
|
||||||
ServerCommand("hostname \"%s\"", hostname);
|
ServerCommand("hostname \"%s\"", hostname);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user