lots of changes
This commit is contained in:
@@ -256,6 +256,17 @@ public Action ZR_OnClientMotherZombieEligible(int client)
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
stock bool IsNemesisMap()
|
||||
{
|
||||
ConVar cvar = FindConVar("sm_info_message_file"); // not every server runs the info message plugin
|
||||
if (cvar == null)
|
||||
return false;
|
||||
|
||||
char sNemesis[32];
|
||||
cvar.GetString(sNemesis, sizeof(sNemesis));
|
||||
return StrEqual(sNemesis, "nemesis");
|
||||
}
|
||||
|
||||
stock bool IsValidClient(int client)
|
||||
{
|
||||
if (client > 0 && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client))
|
||||
@@ -420,9 +431,7 @@ public Action Command_Testround(int client, int args)
|
||||
|
||||
public Action Command_ZShield(int client, int args)
|
||||
{
|
||||
char sNemesis[32];
|
||||
GetConVarString(FindConVar("sm_info_message_file"), sNemesis, sizeof(sNemesis));
|
||||
bool bNemesis = StrEqual(sNemesis, "nemesis");
|
||||
bool bNemesis = IsNemesisMap();
|
||||
|
||||
if(bNemesis)
|
||||
{
|
||||
@@ -520,9 +529,7 @@ public Action Timer_LockMotherZMNames(Handle timer)
|
||||
|
||||
public Action Timer_HandleHPShield(Handle timer)
|
||||
{
|
||||
char sNemesis[32];
|
||||
GetConVarString(FindConVar("sm_info_message_file"), sNemesis, sizeof(sNemesis));
|
||||
bool bNemesis = StrEqual(sNemesis, "nemesis");
|
||||
bool bNemesis = IsNemesisMap();
|
||||
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user