Raised This Month: $51 Target: $400
 12% 

Kick 11th player if not HLTV?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blood2k
Senior Member
Join Date: Mar 2014
Old 11-19-2017 , 17:20   Kick 11th player if not HLTV?
Reply With Quote #1

My HLTV keeps dropping because people are stealing its spot
is it possible to kick 11th player connecting if not an HLTV? this happenns rarely but somehow ppl are stealing the slot even when the hltv is set to autoretry.. it technically should never drop.
blood2k is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-19-2017 , 17:35   Re: Kick 11th player if not HLTV?
Reply With Quote #2

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         // Add your code here... } public client_putinserver(id) {     new players[32], num     get_players(players, num, "h")         if(num == 11) {         server_cmd("kick #%d", get_user_userid(id))     } }
__________________

Last edited by Napoleon_be; 11-19-2017 at 17:36.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
blood2k
Senior Member
Join Date: Mar 2014
Old 11-20-2017 , 01:08   Re: Kick 11th player if not HLTV?
Reply With Quote #3

would this tell the difference between 11th player being HLTV or an actual human?
blood2k is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 11-20-2017 , 05:52   Re: Kick 11th player if not HLTV?
Reply With Quote #4

the code gets all the players in the server excluding hltv. if he has connected 11th, he gets kicked
__________________
retired chump
DjSoftero is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 11-20-2017 , 06:07   Re: Kick 11th player if not HLTV?
Reply With Quote #5

The code is for an pugmod?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
blood2k
Senior Member
Join Date: Mar 2014
Old 11-20-2017 , 12:54   Re: Kick 11th player if not HLTV?
Reply With Quote #6

Okay I'll test

@Smiley

yes this is for my pug server

how to make it KICK with a msg "You've been kicked because this is an HLTV slot"

Last edited by blood2k; 11-20-2017 at 13:02.
blood2k is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 11-21-2017 , 06:58   Re: Kick 11th player if not HLTV?
Reply With Quote #7

Quote:
Originally Posted by blood2k View Post
Okay I'll test

@Smiley

yes this is for my pug server

how to make it KICK with a msg "You've been kicked because this is an HLTV slot"
PHP Code:
server_cmd("kick #%d"get_user_userid(id)) 
-->>
PHP Code:
server_cmd("kick #%d ^"You have been kicked because this is an HLTV slot^""get_user_userid(id)) 

Last edited by LithuanianJack; 11-21-2017 at 06:58.
LithuanianJack is offline
blood2k
Senior Member
Join Date: Mar 2014
Old 11-21-2017 , 08:14   Re: Kick 11th player if not HLTV?
Reply With Quote #8

thank you sir.
blood2k is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode