Skip to content

Commit bc1e96e

Browse files
committed
core: hide annoying message about score
1 parent 57c3088 commit bc1e96e

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

addons/amxmodx/scripting/deathrun_core.sma

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#endif
1313

1414
#define PLUGIN "Deathrun: Core"
15-
#define VERSION "1.1.5"
15+
#define VERSION "1.1.6"
1616
#define AUTHOR "Mistrick"
1717

1818
#pragma semicolon 1
@@ -87,6 +87,7 @@ public plugin_init()
8787

8888
register_message(g_msgVGUIMenu, "Message_Menu");
8989
register_message(g_msgShowMenu, "Message_Menu");
90+
register_message(get_user_msgid("TextMsg"), "Message_TextMsg");
9091

9192
DisableHamForward(g_iHamPreThink = RegisterHam(Ham_Player_PreThink, "player", "Ham_PlayerPreThink_Post", true));
9293
unregister_forward(FM_Spawn, g_iForwardSpawn, 0);
@@ -278,6 +279,27 @@ TerroristCheck()
278279
}
279280
ExecuteForward(g_iForwards[NEW_TERRORIST], g_iReturn, g_iTerrorist);
280281
}
282+
public Message_TextMsg(const msg, const dest, const id)
283+
{
284+
enum {
285+
arg_destination_type = 1,
286+
arg_message
287+
}
288+
new dt = get_msg_arg_int(arg_destination_type);
289+
290+
if(dt != print_console) {
291+
return PLUGIN_CONTINUE;
292+
}
293+
294+
new message[16];
295+
get_msg_arg_string(arg_message, message, charsmax(message));
296+
297+
if(equal(message, "#Game_scoring")) {
298+
return PLUGIN_HANDLED;
299+
}
300+
301+
return PLUGIN_CONTINUE;
302+
}
281303
//******** Messages Credits: PRoSToTeM@ ********//
282304
public Message_Menu(const msg, const dest, const id)
283305
{

0 commit comments

Comments
 (0)