Hi there,
Is there any way to exclude a hltv from being counted in the get_playersnum function or a similar function. Today i have a piece of coding looking kinda like this:
Code:
public client_disconnect(id)
{
if (get_playersnum(1) <= 1)
{
remove_task(TASKID_RESET);
reset();
}
}
When all of the players are disconnected it stops the reset function.
My dilemma now is that it is ofcource counting the HLTV as a player and therefore it does not remove the task.
I know i can change it to if (get_playersnum(1) <= 2) but then everything depends on the HLTV being connected which it might not be all the time.
I'm very thankfull for your answers. Thx!