Raised This Month: $32 Target: $400
 8% 

Solved [CSS] !votekick: You do not have access to this command.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sister_nancy
New Member
Join Date: Jan 2023
Old 01-28-2023 , 09:20   [CSS] !votekick: You do not have access to this command.
Reply With Quote #1

Hi,

when a normal (non-admin) player types `!votekick`, the message "[SM] You do not have access to this command." is displayed.

How can I allow every player on my server to votekick, voteban and votemap?

- "sv_allow_votes" is set to "1"
- The file /cstrike/addons/sourcemod/configs/admin_overrides.cfg looks as follows:

PHP Code:
Overrides
{
    
"votemap"      ""
    "votekick"     ""
    "voteban"      ""

Any ideas?

PS: As an admin it works. However, I need to type the user name. Other servers have a menu displayed. How do I get a menu where the user to votekick can be selected?

PS: This is what "sm plugins list" prints:

PHP Code:
[SMListing 24 plugins:
  
01 "Client Preferences" (1.11.0.6927by AlliedModders LLC
  02 
"Reserved Slots" (1.11.0.6927by AlliedModders LLC
  03 
"Nextmap" (1.11.0.6927by AlliedModders LLC
  04 
"Fun Commands" (1.11.0.6927by AlliedModders LLC
  05 
"Extra Cash" (0.2by Peoples Army
  06 
"Basic Votes" (1.11.0.6927by AlliedModders LLC
  07 
"Basic Chat" (1.11.0.6927by AlliedModders LLC
  08 
"Admin Buy" (1.04by brizad
  09 
"CSS Anti Team Flash" (1.2.3by Twisted|Panda (OrigSAMURAI16/Kigen)
  
10 "Admin File Reader" (1.11.0.6927by AlliedModders LLC
  11 
"Player Commands" (1.11.0.6927by AlliedModders LLC
  12 
"Basic Comm Control" (1.11.0.6927by AlliedModders LLC
  13 
"Basic Ban Commands" (1.11.0.6927by AlliedModders LLC
  14 
"Anti-Flood" (1.11.0.6927by AlliedModders LLC
  15 
"Basic Info Triggers" (1.11.0.6927by AlliedModders LLC
  16 
"Sound Commands" (1.11.0.6927by AlliedModders LLC
  17 
"Fun Votes" (1.11.0.6927by AlliedModders LLC
  18 
"Welcome Sound" (0.0.1by R-Hehl
  19 
"Quake Sounds v3" (3.5.0by Spartan_C001
  20 
"Basic Commands" (1.11.0.6927by AlliedModders LLC
  21 
"Admin Menu" (1.11.0.6927by AlliedModders LLC
  22 
"RankMe" (2.8.3by lok1
  23 
"Map configs" (1.3by Berni
  24 
"Admin Help" (1.11.0.6927by AlliedModders LLC 

Last edited by sister_nancy; 01-28-2023 at 12:50.
sister_nancy is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 01-28-2023 , 11:39   Re: [CSS] !votekick: You do not have access to this command.
Reply With Quote #2

open this file > addons\sourcemod\scripting\basevotes.sp

you need to replace these 3 lines below

PHP Code:
    RegAdminCmd("sm_votemap"Command_VotemapADMFLAG_VOTE|ADMFLAG_CHANGEMAP"sm_votemap <mapname> [mapname2] ... [mapname5] ");
    
RegAdminCmd("sm_votekick"Command_VotekickADMFLAG_VOTE|ADMFLAG_KICK"sm_votekick <player> [reason]");
    
RegAdminCmd("sm_voteban"Command_VotebanADMFLAG_VOTE|ADMFLAG_BAN"sm_voteban <player> [reason]"); 
To:

PHP Code:
    RegConsoleCmd("sm_votemap"Command_Votemap"sm_votemap <mapname> [mapname2] ... [mapname5] ");
    
RegConsoleCmd("sm_votekick"Command_Votekick"sm_votekick <player> [reason]");
    
RegConsoleCmd("sm_voteban"Command_Voteban"sm_voteban <player> [reason]"); 
Save it, the compile it, and drop it to your plugins folder
__________________
alasfourom is offline
sister_nancy
New Member
Join Date: Jan 2023
Old 01-28-2023 , 12:48   Re: [CSS] !votekick: You do not have access to this command.
Reply With Quote #3

Thank your for your help @alasfourom! It works

This allows users typing `!votekick <username> <reason>`. However typing the user name can be cumbersome. Do you know how I can configure the server to dispaly a graphical user menu that lists all maps in case of `!votemap`? I feel like all plugins are outdated and do not work. On the other hand, nearly every server has such menu.

Last edited by sister_nancy; 01-28-2023 at 13:35.
sister_nancy is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-28-2023 , 13:00   Re: [CSS] !votekick: You do not have access to this command.
Reply With Quote #4

Just for info, SourceMod admin system can override SM commands.

From ...addons\sourcemod\configs\admin_overrides.c fg
Code:
Overrides
{
	/**
	 * By default, commands are registered with three pieces of information:
	 * 1)Command Name 		(for example, "csdm_enable")
	 * 2)Command Group Name	(for example, "CSDM")
	 * 3)Command Level		(for example, "changemap")
	 *
	 * You can override the default flags assigned to individual commands or command groups in this way.
	 * To override a group, use the "@" character before the name.  Example:
	 * Examples:
	 *		"@CSDM"			"b"				// Override the CSDM group to 'b' flag
	 * 		"csdm_enable"	"bgi"			// Override the csdm_enable command to 'bgi' flags
	 *
	 * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
	 * any setting that csdm_enable previously had.
	 *
	 * You can make a command completely public by using an empty flag string.
	 */


	"sm_votekick"	""
}
...so you not need edit and compile plugins.

But this affect only command access.

If command not work how you like, then you need edit plugin source code for your needs.
__________________
Do not Private Message @me
Bacardi is offline
sister_nancy
New Member
Join Date: Jan 2023
Old 01-28-2023 , 13:04   Re: [CSS] !votekick: You do not have access to this command.
Reply With Quote #5

Thanks for the hint @Bacardi
sister_nancy is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 01-28-2023 , 13:25   Re: [CSS] !votekick: You do not have access to this command.
Reply With Quote #6

modified only votekick and voteban scripts, they are untested > made them public + created a menu to select players

extract them, then simple drag and drop in: addons\sourcemod
Attached Files
File Type: zip sourcemod.zip (25.9 KB, 57 views)
__________________
alasfourom is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 01-28-2023 , 13:26   Re: [CSS] !votekick: You do not have access to this command.
Reply With Quote #7

Quote:
Originally Posted by Bacardi View Post
Just for info, SourceMod admin system can override SM commands.

From ...addons\sourcemod\configs\admin_overrides.c fg
Code:
Overrides
{
	/**
	 * By default, commands are registered with three pieces of information:
	 * 1)Command Name 		(for example, "csdm_enable")
	 * 2)Command Group Name	(for example, "CSDM")
	 * 3)Command Level		(for example, "changemap")
	 *
	 * You can override the default flags assigned to individual commands or command groups in this way.
	 * To override a group, use the "@" character before the name.  Example:
	 * Examples:
	 *		"@CSDM"			"b"				// Override the CSDM group to 'b' flag
	 * 		"csdm_enable"	"bgi"			// Override the csdm_enable command to 'bgi' flags
	 *
	 * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
	 * any setting that csdm_enable previously had.
	 *
	 * You can make a command completely public by using an empty flag string.
	 */


	"sm_votekick"	""
}
...so you not need edit and compile plugins.

But this affect only command access.

If command not work how you like, then you need edit plugin source code for your needs.
Didnt know that, Thank you
__________________
alasfourom is offline
sister_nancy
New Member
Join Date: Jan 2023
Old 01-28-2023 , 13:32   Re: [CSS] !votekick: You do not have access to this command.
Reply With Quote #8

Quote:
Originally Posted by alasfourom View Post
modified only votekick and voteban scripts, they are untested > made them public + created a menu to select players

extract them, then simple drag and drop in: addons\sourcemod
This is awesome. Exactly what I wanted and were looking for forever. Thank you so much <3

Last edited by sister_nancy; 01-28-2023 at 13:36.
sister_nancy 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 02:14.


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