Hello.
I have an AFK kicker on my server, but it never affects HLTV. I have 2 HLTV's in my server (2 upstreams for better perfomance) and i want them to go off if player needs a slot. So i think it would be better to make separate plugin for this.
So basically i need a plugin which will make a check on "public client_putinserver": if players == 32 then kick one HLTV if there is any in the server. If no HLTV on server then just do nothing. 3 sec delay is needed for my ban system to kick players if he(she) is banned. [so players would get disconnected and there will not needed to kick hltv]
The main problem, that i need it to be done silently. HLTV is auto reconnected, so if this message would be shows then there would be too much flood. I need it to be done without any messages (but other admin's kicks and bans should continue to be showed). How can i kick silently? Also i have no idea how to simply detect all hltvs currently in server.
Could someone help with this?
I've started...:
PHP Code:
public client_putinserver(id)
{
set_task(3.0, "check", id)
}
public check(id)
{
if(!is_user_connected(id)) return
if (get_playersnum(1) != 32 ) return
Here we need to detect all HLTV's in server and kick one of them silently (no messages in chat) - how can i do this?
}