asdf
This commit is contained in:
parent
03bb9e9ce2
commit
21a438179a
@ -159,12 +159,12 @@ public void OnBossKilled(any Boss, any Config, int reason)
|
||||
if (iSortedList[1][0])
|
||||
{
|
||||
Format(sBuffer, sizeof(sBuffer), "%s\n2. %N - %d hits", sBuffer, iSortedList[1][0], iSortedList[1][1]);
|
||||
LogPlayerEvent(iSortedList[0][0], "triggered", "second_most_boss_damage");
|
||||
LogPlayerEvent(iSortedList[1][0], "triggered", "second_most_boss_damage");
|
||||
}
|
||||
if (iSortedList[2][0])
|
||||
{
|
||||
Format(sBuffer, sizeof(sBuffer), "%s\n3. %N - %d hits", sBuffer, iSortedList[2][0], iSortedList[2][1]);
|
||||
LogPlayerEvent(iSortedList[0][0], "triggered", "third_most_boss_damage");
|
||||
LogPlayerEvent(iSortedList[2][0], "triggered", "third_most_boss_damage");
|
||||
}
|
||||
|
||||
Format(sBuffer, sizeof(sBuffer), "%s\n*************************", sBuffer);
|
||||
|
@ -41,6 +41,7 @@ public void OnPluginStart()
|
||||
|
||||
AddCommandListener(Command_SpectateViaConsole, "spectate");
|
||||
AddCommandListener(Command_GoTo, "spec_goto");
|
||||
AddCommandListener(Command_Kill, "kill");
|
||||
}
|
||||
|
||||
public void OnMapStart()
|
||||
@ -152,6 +153,14 @@ public Action Command_SpectateViaConsole(int client, char[] command, int args)
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
public Action Command_Kill(int client, char[] command, int args)
|
||||
{
|
||||
if ((IsPlayerAlive(client) && ZR_IsClientHuman(client)) && GetTeamClientCount(CS_TEAM_T) > 0 && GetTeamAliveClientCount(CS_TEAM_T) > 0)
|
||||
LogPlayerEvent(client, "triggered", "switch_to_spec");
|
||||
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
// Fix spec_goto crash exploit
|
||||
public Action Command_GoTo(int client, const char[] command, int argc)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user