Forced nextmap to not load on L4D (bug 3473 r=Liam)

This commit is contained in:
Liam 2008-12-28 03:15:15 -05:00
parent 5564c38a2f
commit 2c9622ea52

View File

@ -54,6 +54,15 @@ new g_CurrentMapStartTime;
public OnPluginStart() public OnPluginStart()
{ {
decl String:desc[128];
GetGameDescription(desc, sizeof(desc));
if(strcmp(desc, "Left 4 Dead", false))
{
SetFailState("The 'nextmap' plugin is not supported on Left 4 Dead.");
return;
}
LoadTranslations("common.phrases"); LoadTranslations("common.phrases");
LoadTranslations("nextmap.phrases"); LoadTranslations("nextmap.phrases");