1.1 --- a/plugins/basechat.sp Sun Feb 08 15:40:48 2009 -0500
1.2 +++ b/plugins/basechat.sp Wed Feb 18 02:19:22 2009 -0600
1.3 @@ -53,9 +53,13 @@
1.4
1.5 new bool:g_DoColor = true;
1.6
1.7 +new g_GameEngine = SOURCE_SDK_UNKNOWN;
1.8 +
1.9 public OnPluginStart()
1.10 {
1.11 LoadTranslations("common.phrases");
1.12 +
1.13 + g_GameEngine = GuessSDKVersion();
1.14
1.15 g_Cvar_Chatmode = CreateConVar("sm_chat_mode", "1", "Allows player's to send messages to admin chat.", 0, true, 0.0, true, 1.0);
1.16
1.17 @@ -63,7 +67,13 @@
1.18 RegConsoleCmd("say_team", Command_SayAdmin);
1.19 RegAdminCmd("sm_say", Command_SmSay, ADMFLAG_CHAT, "sm_say <message> - sends message to all players");
1.20 RegAdminCmd("sm_csay", Command_SmCsay, ADMFLAG_CHAT, "sm_csay <message> - sends centered message to all players");
1.21 - RegAdminCmd("sm_hsay", Command_SmHsay, ADMFLAG_CHAT, "sm_hsay <message> - sends hint message to all players");
1.22 +
1.23 + /* HintText does not work on Dark Messiah */
1.24 + if (g_GameEngine != SOURCE_SDK_DARKMESSIAH)
1.25 + {
1.26 + RegAdminCmd("sm_hsay", Command_SmHsay, ADMFLAG_CHAT, "sm_hsay <message> - sends hint message to all players");
1.27 + }
1.28 +
1.29 RegAdminCmd("sm_tsay", Command_SmTsay, ADMFLAG_CHAT, "sm_tsay [color] <message> - sends top-left message to all players");
1.30 RegAdminCmd("sm_chat", Command_SmChat, ADMFLAG_CHAT, "sm_chat <message> - sends message to admins");
1.31 RegAdminCmd("sm_psay", Command_SmPsay, ADMFLAG_CHAT, "sm_psay <name or #userid> <message> - sends private message");