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

disable the kick through the menu. HELP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rafa10
Junior Member
Join Date: Jul 2019
Old 07-14-2019 , 17:25   disable the kick through the menu. HELP
Reply With Quote #1

Hello, can anyone tell me how to disable the kick through the menu? So only admins can manage. Thanks for any help.
Rafa10 is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 07-15-2019 , 01:36   Re: disable the kick through the menu. HELP
Reply With Quote #2

Quote:
Originally Posted by Rafa10 View Post
Hello, can anyone tell me how to disable the kick through the menu? So only admins can manage. Thanks for any help.
you mean via ESC Menu? change sv_allow_votes "1" in your server.cfg or gamemode file to "0"
freak.exe_uLow is offline
dustinandband
Senior Member
Join Date: May 2015
Old 07-15-2019 , 03:08   Re: disable the kick through the menu. HELP
Reply With Quote #3

PHP Code:
#pragma semicolon 1
#pragma newdecls required
 
//Sourcemod Includes
#include <sourcemod>

public Plugin myinfo =
{
    
name "[L4D2] block kick votes",
    
author "",
    
description "",
    
version "1.0.0",
    
url ""
};

public 
void OnPluginStart()
{
    
AddCommandListener(Listener_CallVote"callvote");
}

public 
Action Listener_CallVote(int client, const char[] commandint argc)
{
    
char sIssue[64];
    
GetCmdArg(1sIssuesizeof(sIssue));
    
    if (
StrEqual(sIssue"kick"false) && !isValidAdmin(client))
    {
        
PrintToChat(client"[SM] kick votes blocked.");
        return 
Plugin_Handled;
        
    }
    
    return 
Plugin_Continue;
}

public 
bool isValidAdmin(int client)
{
    return 
client <= MaxClients && GetUserAdmin(client) != INVALID_ADMIN_ID;

dustinandband 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 23:55.


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