The task id passed to set task acts as the unique id for that task and can also be used to pass a player id (or any integer val) to the called function.
PHP Code:
set_task( 1.0 , "function" , id )
//both of the below will work
remove_task( id )
public function( id )
{
//code
}
__________________