Disable Reserved Slots plugin on Contagion.

(It doesn't have sv_visiblemaxplayers).
This commit is contained in:
Nick Hastings 2021-11-15 20:53:09 -05:00 committed by Your Name
parent a06a903989
commit b064366169

View File

@ -64,6 +64,18 @@ enum KickType
Kick_Random,
};
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{
if (GetEngineVersion() == Engine_Contagion)
{
// sv_visiblemaxplayers doesn't exist
strcopy(error, err_max, "Reserved Slots is incompatible with this game");
return APLRes_SilentFailure;
}
return APLRes_Success;
}
public void OnPluginStart()
{
LoadTranslations("reservedslots.phrases");