Half-Life 1 mods uses player id. Which is pass from Damage Event, DeathMsg.
If your going to set the taskid with victim. Is Victim from an event or something?
Say victim is 1. Then you would use remove_task(1); If your going to remove it on round end you would need to iterate through every player checking if they are connected and remove the task.