Trying to make simple plugin to kick HLTV if server is full
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:
|
Re: Trying to make simple plugin to kick HLTV if server is full
is_user_hltv( )
|
Re: Trying to make simple plugin to kick HLTV if server is full
Quote:
|
Re: Trying to make simple plugin to kick HLTV if server is full
Quote:
|
Re: Trying to make simple plugin to kick HLTV if server is full
Code:
if( is_user_hltv( Client ) ) |
Re: Trying to make simple plugin to kick HLTV if server is full
Quote:
PHP Code:
|
Re: Trying to make simple plugin to kick HLTV if server is full
Someone help pls) I need to use get_players and then kick one of HLTV's. However i don't understand how to use it...
|
Re: Trying to make simple plugin to kick HLTV if server is full
I already gave you a solution:
Code:
|
Re: Trying to make simple plugin to kick HLTV if server is full
Quote:
I need to kick HLTV if where are more 32 players in the server at the moment when new player joins. Not when HLTV joins. |
Re: Trying to make simple plugin to kick HLTV if server is full
So what is your Scripting question?
|
| All times are GMT -4. The time now is 16:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.