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

Kicking the connected client automatically


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BombaciMulayim
Junior Member
Join Date: Jan 2017
Old 03-04-2017 , 16:30   Kicking the connected client automatically
Reply With Quote #1

I was browsing the forum and i found KickClient= new ip xxx.xxx.xx. I can't find it now, can someone send me the post?
BombaciMulayim is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 03-04-2017 , 17:18   Re: Kicking the connected client automatically
Reply With Quote #2

lol.
__________________
coding & free software

Last edited by shanapu; 03-05-2017 at 16:16.
shanapu is offline
stephen473
Senior Member
Join Date: Jan 2017
Location: somewhere on earth
Old 03-05-2017 , 14:23   Re: Kicking the connected client automatically
Reply With Quote #3

HTML Code:
#include <sourcemod>

public Plugin:myinfo = 
{
	name = "Connect Kicker",
	author = "Hardy",
	description = "When player connect,he is kicked auto! [NO TESTED!]",
	version = "1.0",
	url = ""
};

public OnPluginStart()
{	
}

public OnClientPutInServer(client)
{
KickClient(client, "This server closed! New IP : X.X.X.X.X.X");
}
I have not tried and I'm not sure that it works.
Attached Files
File Type: smx connect_kick.smx (3.5 KB, 193 views)
File Type: sp Get Plugin or Get Source (connect_kick.sp - 289 views - 346 Bytes)
stephen473 is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 03-05-2017 , 15:33   Re: Kicking the connected client automatically
Reply With Quote #4

Quote:
Originally Posted by stephen473 View Post
-snip-
That'd work, but there's no point in letting them even get that far in the connection chain.

PHP Code:
#include <sourcemod>

#define SERVER_IP "<INSERT IP HERE>"

public bool OnClientConnect(int clientchar[] rejectmsgint maxlength)
{
    
Format(rejectmsgmaxlength"IP has changed to %s"SERVER_IP);
    return 
false;

headline is offline
stephen473
Senior Member
Join Date: Jan 2017
Location: somewhere on earth
Old 03-05-2017 , 15:54   Re: Kicking the connected client automatically
Reply With Quote #5

I'm new to helping people.It's probably better you send it.And I will use it.
stephen473 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 09:54.


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