#include <amxmodx>
#pragma semicolon 1
new Trie:g_tReplaceInfoMsg;
public plugin_init() {
register_plugin("Replace Info Message", "2.1", "maeStro aka 9iky6");
g_tReplaceInfoMsg = TrieCreate();Fill_trie();
register_message(get_user_msgid("TextMsg"), "MessageTextMsg");
}
public Fill_trie(){
TrieSetString(g_tReplaceInfoMsg, "#CTs_Win","some shit");
TrieSetString(g_tReplaceInfoMsg, "#Terrorists_Win","some shit");
TrieSetString(g_tReplaceInfoMsg, "#Target_Bombed","some shit");
TrieSetString(g_tReplaceInfoMsg, "#Target_Saved","some shit");
TrieSetString(g_tReplaceInfoMsg, "#Hostages_Not_Rescued","some shit");
TrieSetString(g_tReplaceInfoMsg, "#Bomb_Planted","some shit");
}
public MessageTextMsg() {
new szMsg[192];
get_msg_arg_string(2, szMsg, charsmax(szMsg));
if(TrieGetString(g_tReplaceInfoMsg, szMsg, szMsg, charsmax(szMsg)))return 1;
return PLUGIN_CONTINUE;
}
public plugin_end()TrieDestroy(g_tReplaceInfoMsg);