If you have multiple tasks in your plugin and want to remove them individually, you should assign them an unique id.
Code:
const YOUR_TASK_ID = 123800
const ANOTHER_TASK_ID = 123900
The numbers don't matter, but it's important that there's at least 32 numbers between them so they don't get mixed up with player slots. You will be combining these ids with a player id.
Code:
set_task(31.1, "removeweapons", id + YOUR_TASK_ID)
Then in task callback function:
Code:
public removeweapons(id)
{
id -= YOUR_TASK_ID
// your code here...
}
__________________