Hello
This plugins is does no work.
To run this plugin, what should I do?
PHP Code:
#include <amxmodx>
#include <colorchat>
#include <hamsandwich>
#include <fakemeta>
new Trie:g_tStarts
new Trie:g_tStops
new amxx_timer_prefix
public plugin_init()
{
amxx_timer_prefix = register_cvar("amxx_timer_prefix", "")
RegisterHam(Ham_Use, "func_button", "function_button", 0)
g_tStarts = TrieCreate()
g_tStops = TrieCreate()
}
public function_button(ent, id)
{
new szTarget[32]
pev(ent, pev_target, szTarget, 31)
if(TrieKeyExists(g_tStarts, szTarget))
{
start_timer(id)
}
if(TrieKeyExists(g_tStops, szTarget))
{
end_timer(id)
}
}
public start_timer(id)
{
new prefix[128]
get_pcvar_string(amxx_timer_prefix, prefix, 127)
ColorChat(id, GREEN, "[%s] Timer has start", prefix)
}
public end_timer(id)
{
new prefix[128]
get_pcvar_string(amxx_timer_prefix, prefix, 127)
ColorChat(id, GREEN, "[%s] Timer has end", prefix)
}