From 2c9622ea52b69dfc655ab3da252c1c1d58a595b2 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 28 Dec 2008 03:15:15 -0500 Subject: [PATCH] Forced nextmap to not load on L4D (bug 3473 r=Liam) --- plugins/nextmap.sp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/nextmap.sp b/plugins/nextmap.sp index 5d724bf3..280d180b 100644 --- a/plugins/nextmap.sp +++ b/plugins/nextmap.sp @@ -54,6 +54,15 @@ new g_CurrentMapStartTime; 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("nextmap.phrases");