|
12 | 12 | #endif
|
13 | 13 |
|
14 | 14 | #define PLUGIN "Deathrun: Core"
|
15 |
| -#define VERSION "1.1.5" |
| 15 | +#define VERSION "1.1.6" |
16 | 16 | #define AUTHOR "Mistrick"
|
17 | 17 |
|
18 | 18 | #pragma semicolon 1
|
@@ -87,6 +87,7 @@ public plugin_init()
|
87 | 87 |
|
88 | 88 | register_message(g_msgVGUIMenu, "Message_Menu");
|
89 | 89 | register_message(g_msgShowMenu, "Message_Menu");
|
| 90 | + register_message(get_user_msgid("TextMsg"), "Message_TextMsg"); |
90 | 91 |
|
91 | 92 | DisableHamForward(g_iHamPreThink = RegisterHam(Ham_Player_PreThink, "player", "Ham_PlayerPreThink_Post", true));
|
92 | 93 | unregister_forward(FM_Spawn, g_iForwardSpawn, 0);
|
@@ -278,6 +279,27 @@ TerroristCheck()
|
278 | 279 | }
|
279 | 280 | ExecuteForward(g_iForwards[NEW_TERRORIST], g_iReturn, g_iTerrorist);
|
280 | 281 | }
|
| 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 | +} |
281 | 303 | //******** Messages Credits: PRoSToTeM@ ********//
|
282 | 304 | public Message_Menu(const msg, const dest, const id)
|
283 | 305 | {
|
|
0 commit comments