So let's say we have this, is there any good way to execute a code in the burning_flame function every two seconds?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "White"
#define TASK_BURN 304943
#define ID_BURN (taskid - TASK_BURN)
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
client_cmd("command", "function")
// Add your code here...
}
public function(id)
{
set_task(0.2, "burning_flame", victim+TASK_BURN, _, _, "b")
}
public burning_flame(taskid)
{
}
__________________