Disable nextmap in Synergy and Dystopia (bug 3687, bug 3741; r=liam)
This commit is contained in:
parent
3d573c08a1
commit
9def5e57de
@ -54,10 +54,12 @@ new g_CurrentMapStartTime;
|
|||||||
|
|
||||||
public OnPluginStart()
|
public OnPluginStart()
|
||||||
{
|
{
|
||||||
decl String:desc[128];
|
decl String:game[128];
|
||||||
GetGameFolderName(desc, sizeof(desc));
|
GetGameFolderName(game, sizeof(game));
|
||||||
|
|
||||||
if (StrEqual(desc, "left4dead", false))
|
if (StrEqual(game, "left4dead", false)
|
||||||
|
|| StrEqual(game, "dystopia", false)
|
||||||
|
|| StrEqual(game, "synergy", false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LoadTranslations("common.phrases");
|
LoadTranslations("common.phrases");
|
||||||
@ -81,10 +83,12 @@ public OnMapStart()
|
|||||||
|
|
||||||
public OnConfigsExecuted()
|
public OnConfigsExecuted()
|
||||||
{
|
{
|
||||||
decl String:desc[128];
|
decl String:game[128];
|
||||||
GetGameFolderName(desc, sizeof(desc));
|
GetGameFolderName(game, sizeof(game));
|
||||||
|
|
||||||
if (StrEqual(desc, "left4dead", false))
|
if (StrEqual(game, "left4dead", false)
|
||||||
|
|| StrEqual(game, "dystopia", false)
|
||||||
|
|| StrEqual(game, "synergy", false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
decl String:lastMap[64], String:currentMap[64];
|
decl String:lastMap[64], String:currentMap[64];
|
||||||
|
Loading…
Reference in New Issue
Block a user