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

kick client


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 09-16-2015 , 10:34   kick client
Reply With Quote #1

Hey, I've got this snippet:

PHP Code:
public Action Command_Kill(int iClient, const char[] sCommandint iArgCount)
{
    if(!
g_bEnabled)
        return 
Plugin_Continue;
    if (!
g_bBlockConsoleKill || iClient == || iClient MaxClients)
        return 
Plugin_Continue;
    
PrintToConsole(iClient"  \x04[HNS] %T""Kill Deny"iClient);
    return 
Plugin_Stop;

How would I go about changing the PrintToConsole output and instead kick the client with a reason.
__________________
CAOSK-ESPORTS.COM
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
Miu
Veteran Member
Join Date: Nov 2013
Old 09-16-2015 , 11:08   Re: kick client
Reply With Quote #2

https://sm.alliedmods.net/api/index....ad=show&id=443
Miu is offline
OtterNas3
Senior Member
Join Date: Apr 2009
Old 09-17-2015 , 13:32   Re: kick client
Reply With Quote #3

PHP Code:
public Action Command_Kill(int iClient, const char[] sCommandint iArgCount)
{
    if(!
g_bEnabled)
        return 
Plugin_Continue;
    if (!
g_bBlockConsoleKill || iClient == || iClient MaxClients)
        return 
Plugin_Continue;
    
//PrintToConsole(iClient, "  \x04[HNS] %T", "Kill Deny", iClient);
    
KickClient(iClient"You must be Frodo to be cool!");
    
LogAction(0iClient"Kicked %N for not being Frodo!"iClient);
    return 
Plugin_Stop;

OtterNas3 is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 09-17-2015 , 16:15   Re: kick client
Reply With Quote #4

Quote:
Originally Posted by OtterNas3 View Post
[PHP]...Command_Kill(...
That reminds me that you can send the "Kill" input to players as a kick command
__________________

Last edited by zipcore; 09-17-2015 at 16:16.
zipcore 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 07:20.


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