Yes, I got such problem..... 4 days./
here working example how to set ID and remove it
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
#define TASK_MINMODELS 777
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","hook_Death","a"); // For Death
}
public client_putinserver(plr)
{
set_task(5.0,"force_minmodels", plr + TASK_MINMODELS)
}
public force_minmodels(plr)
{
plr -= TASK_MINMODELS
set_hudmessage(200, 100, 0, 0.05 , 0.86, 0, 6.0, 8.0, 0.1, 0.1, -1)
show_hudmessage(0, " Rocket Launcher ")
client_cmd(plr, "cl_dlmax 120")
client_print(plr, print_center, "Task is active")
}
public hook_Death()
{
new victim = read_data(2);
remove_task(victim + TASK_MINMODELS);
client_print(victim,print_center,"remove task")
}
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc