Raised This Month: $ Target: $400
 0% 

Trying to make simple plugin to kick HLTV if server is full


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-04-2013 , 16:16   Re: Trying to make simple plugin to kick HLTV if server is full
Reply With Quote #1

I already gave you a solution:
Code:
#include < amxmodx > public client_putinserver( Client ) {     if( is_user_hltv( Client ) )     {         static Name[ 32 ];         get_user_name( Client, Name, charsmax( Name ) );         server_cmd( "amx_kick ^"%s^"", Name );         return 1;     }     return 0; }
TheDS1337 is offline
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 06-04-2013 , 18:03   Re: Trying to make simple plugin to kick HLTV if server is full
Reply With Quote #2

Quote:
Originally Posted by DeagLe.Studio View Post
I already gave you a solution:
Code:
#include < amxmodx > public client_putinserver( Client ) {     if( is_user_hltv( Client ) )     {         static Name[ 32 ];         get_user_name( Client, Name, charsmax( Name ) );         server_cmd( "amx_kick ^"%s^"", Name );         return 1;     }     return 0; }
It will just kick all HLTV's which join to the server.

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.
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
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 16:25.


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