CSGO is not able to display MOTD at any other time than server connect, before picking teams.
This commit is contained in:
parent
c253ff0d77
commit
2e23074437
@ -188,7 +188,7 @@ public OnPluginStart()
|
|||||||
|
|
||||||
switch (gamemod)
|
switch (gamemod)
|
||||||
{
|
{
|
||||||
case Game_L4D, Game_INSMOD, Game_GES:
|
case Game_L4D, Game_INSMOD, Game_GES, Game_CSGO:
|
||||||
{
|
{
|
||||||
g_bGameCanDoMotd = false;
|
g_bGameCanDoMotd = false;
|
||||||
}
|
}
|
||||||
@ -360,10 +360,14 @@ get_server_mod()
|
|||||||
new String: game_description[64];
|
new String: game_description[64];
|
||||||
GetGameDescription(game_description, sizeof(game_description), true);
|
GetGameDescription(game_description, sizeof(game_description), true);
|
||||||
|
|
||||||
if (StrContains(game_description, "Counter-Strike", false) != -1)
|
if (StrContains(game_description, "Counter-Strike: Source", false) != -1)
|
||||||
{
|
{
|
||||||
gamemod = Game_CSS;
|
gamemod = Game_CSS;
|
||||||
}
|
}
|
||||||
|
if (StrContains(game_description, "Counter-Strike: Global Offensive", false) != -1)
|
||||||
|
{
|
||||||
|
gamemod = Game_CSGO;
|
||||||
|
}
|
||||||
else if (StrContains(game_description, "Day of Defeat", false) != -1)
|
else if (StrContains(game_description, "Day of Defeat", false) != -1)
|
||||||
{
|
{
|
||||||
gamemod = Game_DODS;
|
gamemod = Game_DODS;
|
||||||
|
Loading…
Reference in New Issue
Block a user