It would remove the task for all players since all of them are grouped under task id 0. To solve this, use a unique task id as follows:
Code:
public client_putinserver(id)
{
if (is_user_bot(id))
return PLUGIN_HANDLED
if (!connect(sql))
{
log_amx("Error - Couldn't connect to SQL db")
return PLUGIN_HANDLED
}
new idd[1]
idd[0] = id
set_task(60.0, "kac_exists", 50 + id, idd, 1)
return PLUGIN_CONTINUE
}
public client_disconnect(id)
{
remove_task(50 + id);
}
Make sure that you don't set any other tasks with an id between 50, or whatever arbitrary number you want to start with, and 82, or 32 plus your number.