Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define VERSION "0.2a"
new g_SyncObj1;
public plugin_init()
{
register_plugin("MiniAG TimerFix", VERSION, "LetiLetiLepestok");
register_message(SVC_TEMPENTITY, "HookTempentity");
g_SyncObj1 = CreateHudSyncObj();
}
public HookTempentity()
{
if (get_msg_arg_int(1) != TE_TEXTMESSAGE)
return PLUGIN_CONTINUE;
static szMessage[512];
new x = get_msg_arg_int(3);
new y = get_msg_arg_int(4);
if (x == 4096 && y == 81)
return PLUGIN_HANDLED;
if (x == 2457 && y == 4096)
{
get_msg_arg_string(18, szMessage, charsmax(szMessage));
//client_print(0, print_chat, "= %s, [%d] * [%d] * [%d]", szMessage, get_msg_arg_int(14), get_msg_arg_int(15), get_msg_arg_int(16));
//Modify the message = Match "Player" vs "Player" in "time" seconds!
set_hudmessage(0, 255, 0, -1.0, 0.45, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_SyncObj1, "Duelo entre (%s) versus (%s) en (%s) segundos!!!", szMessage);
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
//Modify the message = Match "Player" vs "Player" in "time" seconds!