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

[CSGO] Adding a new group.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 09-03-2015 , 22:47   [CSGO] Adding a new group.
Reply With Quote #1

Hello,

I'm trying to add a VIP group, but it seems like there is something wrong with what I did. I have a zombies server and I'm trying to assign a specific class to the VIP only and this is what I got in the errors log.

Code:
L 09/03/2015 - 09:51:51: [admin-flatfile.smx] Error(s) detected parsing addons\sourcemod\configs\admin_groups.cfg
L 09/03/2015 - 09:51:51: [admin-flatfile.smx]  (line 44) Section beginning without a matching ending
L 09/03/2015 - 09:51:51: [admin-flatfile.smx] Error(s) detected parsing addons\sourcemod\configs\admin_groups.cfg
L 09/03/2015 - 09:51:51: [admin-flatfile.smx]  (line 44) Section beginning without a matching ending
L 09/03/2015 - 09:51:51: [admin-flatfile.smx] Error(s) detected parsing addons\sourcemod\configs\admins.cfg
L 09/03/2015 - 09:51:51: [admin-flatfile.smx]  (line 38) A property was declared outside of a section
L 09/03/2015 - 09:51:51: [zombiereloaded.smx] [Models] [Config Validation] Warning: Invalid model group setting at index 3. Couldn't find SourceMod group "VIP".
L 09/03/2015 - 09:51:51: [zombiereloaded.smx] [Models] [Config Validation] Warning: Invalid model group setting at index 4. Couldn't find SourceMod group "VIP".
L 09/03/2015 - 09:51:51: [zombiereloaded.smx] [Player Classes] [Config Validation] Warning: Invalid group at index 8: "VIP"
L 09/03/2015 - 09:51:51: [zombiereloaded.smx] [Player Classes] [Config Validation] Warning: Invalid class at index 8, disabled class. Class error flags: 16.
L 09/03/2015 - 09:51:51: [zombiereloaded.smx] [Player Classes] [Config Validation] Warning: Invalid group at index 9: "VIP"
L 09/03/2015 - 09:51:51: [zombiereloaded.smx] [Player Classes] [Config Validation] Warning: Invalid class at index 9, disabled class. Class error flags: 16.

And this is my admins.cfg

Code:
/**
 * USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
 *
 * Each admin should have its own "Admin" section, followed by a name.
 * The name does not have to be unique.
 *
 * Available properties: (Anything else is filtered as custom)
 *      "auth"          - REQUIRED - Auth method to use.  Built-in methods are:
 *                        "steam"  - Steam based authentication
 *                        "name"   - Name based authentication
 *                        "ip"	- IP based authentication
 *                        Anything else is treated as custom.
 *					 Note: Only one auth method is allowed per entry.
 *
 *      "identity"      - REQUIRED - Identification string, for example, a steamid or name.
 *					 Note: Only one identity is allowed per entry.
 *
 *      "password"      - Optional password to require.
 *      "group"         - Adds one group to the user's group table.
 *      "flags"         - Adds one or more flags to the user's permissions.
 *		"immunity"		- Sets the user's immunity level (0 = no immunity).
 *						  Immunity can be any value.  Admins with higher 
 *						  values cannot be targetted.  See sm_immunity_mode 
 *						  to tweak the rules.  Default value is 0.
 *
 * Example:
	"BAILOPAN"
	{
		"auth"			"steam"
		"identity"		"STEAM_0:1:16"
		"flags"			"abcdef"
	}
 *
 */
Admins

	"VIP"
	{
"auth" "steam"
"identity" "STEAM_0:00101011"
"flags" "a"
"group" "VIP"
"immunity" "25"
	}
}
Admin_groups.cfg

Code:
Groups
{
	/**
	 * Allowed properties for a group:
	 *
	 *   "flags"           - Flag string.
	 *   "immunity"        - Immunity level number, or a group name.
	 *						 If the group name is a number, prepend it with an 
	 *						 '@' symbol similar to admins_simple.ini.  Users 
	 *						 will only inherit the level number if it's higher 
	 *						 than their current value.
	 */
	"Default"
	{
		"immunity"		"1"
	}
	
	"Full Admins"
	{
		/**
		 * You can override commands and command groups here.
		 * Specify a command name or group and either "allow" or "deny"
		 * Examples:
		 * 		":CSDM"			"allow"
		 *		"csdm_enable"	"deny"
		 */
		 Overrides
		 {
		 }
		"flags"			"abcdefghiz"

		/* Largish number for lots of in-between values. */
		"immunity"		"99"
	}

	"VIP"
	{
		"flags"		"a"
		"immunity"		"25"
	}
}
and this is what I added in thr admins_simple.ini

Code:
"STEAM_0:1:48216629" "az"



Any kind of help would be appreciated, thanks.
__________________
weeeishy is offline
linuxvpsuser
Junior Member
Join Date: Jun 2015
Old 09-04-2015 , 05:22   Re: [CSGO] Adding a new group.
Reply With Quote #2

admins_simple.ini

example:

"STEAM_0:1:48216629" "100:z" //root user.z no need add a letter

"STEAM_0:1:48216629" "100:a" //vip user witch no acces to admin panel

load default files from sm pack

admins.cfg

Admin_groups.cfg

Last edited by linuxvpsuser; 09-04-2015 at 05:22.
linuxvpsuser is offline
Send a message via Skype™ to linuxvpsuser
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-04-2015 , 05:25   Re: [CSGO] Adding a new group.
Reply With Quote #3

Your admins.cfg is missing an open brace between Admins and "VIP".

And that admin_groups.cfg doesn't match that error message since it doesn't even have 44 lines.
__________________

Last edited by asherkin; 09-04-2015 at 05:31.
asherkin is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 09-05-2015 , 16:32   Re: [CSGO] Adding a new group.
Reply With Quote #4

Quote:
Originally Posted by asherkin View Post
Your admins.cfg is missing an open brace between Admins and "VIP".

And that admin_groups.cfg doesn't match that error message since it doesn't even have 44 lines.
So I have to delete the space between vip and admin? or just delete admin?
__________________
weeeishy is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-05-2015 , 17:16   Re: [CSGO] Adding a new group.
Reply With Quote #5

Quote:
Originally Posted by weeeishy View Post
So I have to delete the space between vip and admin? or just delete admin?
No, wtf, you have to add the missing brace.
__________________
asherkin is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 09-05-2015 , 23:55   Re: [CSGO] Adding a new group.
Reply With Quote #6

Quote:
Originally Posted by asherkin View Post
No, wtf, you have to add the missing brace.
Oh, my bad . Anyways, I'm still getting the same error

Code:
L 09/06/2015 - 07:48:15: [admin-flatfile.smx] Error(s) detected parsing addons\sourcemod\configs\admin_groups.cfg
L 09/06/2015 - 07:48:15: [admin-flatfile.smx]  (line 42) Section ending without a matching section beginning
L 09/06/2015 - 07:48:15: [admin-flatfile.smx] Error(s) detected parsing addons\sourcemod\configs\admin_groups.cfg
L 09/06/2015 - 07:48:15: [admin-flatfile.smx]  (line 42) Section ending without a matching section beginning
L 09/06/2015 - 07:48:15: [admin-flatfile.smx] Error(s) detected parsing addons\sourcemod\configs\admins.cfg
L 09/06/2015 - 07:48:15: [admin-flatfile.smx]  (line 43) Unknown group "VIP"
L 09/06/2015 - 07:48:15: [zombiereloaded.smx] [Models] [Config Validation] Warning: Invalid model group setting at index 3. Couldn't find SourceMod group "VIP".
L 09/06/2015 - 07:48:15: [zombiereloaded.smx] [Models] [Config Validation] Warning: Invalid model group setting at index 4. Couldn't find SourceMod group "VIP".
L 09/06/2015 - 07:48:15: [zombiereloaded.smx] [Player Classes] [Config Validation] Warning: Invalid group at index 8: "VIP"
L 09/06/2015 - 07:48:15: [zombiereloaded.smx] [Player Classes] [Config Validation] Warning: Invalid class at index 8, disabled class. Class error flags: 16.
L 09/06/2015 - 07:48:15: [zombiereloaded.smx] [Player Classes] [Config Validation] Warning: Invalid group at index 9: "VIP"
L 09/06/2015 - 07:48:15: [zombiereloaded.smx] [Player Classes] [Config Validation] Warning: Invalid class at index 9, disabled class. Class error flags: 16
__________________
weeeishy is offline
VPPGamingNetwork
Veteran Member
Join Date: Sep 2012
Location: Japan
Old 09-06-2015 , 11:57   Re: [CSGO] Adding a new group.
Reply With Quote #7

Post your updated cfg so we can see if you did it right
__________________

We provide MOTD Ads
Net 1 payments
Visit us
VPPGamingNetwork is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 09-06-2015 , 17:50   Re: [CSGO] Adding a new group.
Reply With Quote #8

Admins.cfg

Code:
/**
 * USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
 *
 * Each admin should have its own "Admin" section, followed by a name.
 * The name does not have to be unique.
 *
 * Available properties: (Anything else is filtered as custom)
 *      "auth"          - REQUIRED - Auth method to use.  Built-in methods are:
 *                        "steam"  - Steam based authentication
 *                        "name"   - Name based authentication
 *                        "ip"	- IP based authentication
 *                        Anything else is treated as custom.
 *					 Note: Only one auth method is allowed per entry.
 *
 *      "identity"      - REQUIRED - Identification string, for example, a steamid or name.
 *					 Note: Only one identity is allowed per entry.
 *
 *      "password"      - Optional password to require.
 *      "group"         - Adds one group to the user's group table.
 *      "flags"         - Adds one or more flags to the user's permissions.
 *		"immunity"		- Sets the user's immunity level (0 = no immunity).
 *						  Immunity can be any value.  Admins with higher 
 *						  values cannot be targetted.  See sm_immunity_mode 
 *						  to tweak the rules.  Default value is 0.
 *
 * Example:
	"BAILOPAN"
	{
		"auth"			"steam"
		"identity"		"STEAM_0:1:16"
		"flags"			"abcdef"
	}
 *
 */
Admins
{
	"VIP"
	{
"auth" "steam"
"identity" "STEAM_0:00101011"
"flags" "a"
"group" "VIP"
"immunity" "25"
	}
}
Admin_groups.cfg

Code:
Groups
{
	/**
	 * Allowed properties for a group:
	 *
	 *   "flags"           - Flag string.
	 *   "immunity"        - Immunity level number, or a group name.
	 *						 If the group name is a number, prepend it with an 
	 *						 '@' symbol similar to admins_simple.ini.  Users 
	 *						 will only inherit the level number if it's higher 
	 *						 than their current value.
	 */
	"Default"
	{
		"immunity"		"1"
	}
	
	"Full Admins"
	{
		/**
		 * You can override commands and command groups here.
		 * Specify a command name or group and either "allow" or "deny"
		 * Examples:
		 * 		":CSDM"			"allow"
		 *		"csdm_enable"	"deny"
		 */
		 Overrides
		 {
		 }
		"flags"			"abcdefghiz"

		/* Largish number for lots of in-between values. */
		"immunity"		"99"
	}

	}

	"VIP"
	{
		"flags"		"a"
		"immunity"		"25"
	}
}
__________________
weeeishy is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-06-2015 , 19:17   Re: [CSGO] Adding a new group.
Reply With Quote #9

You have an extra closing brace before "VIP".
__________________
asherkin is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 09-07-2015 , 00:57   Re: [CSGO] Adding a new group.
Reply With Quote #10

Alright, Im not getting any of these errors anymore, but still I can't access the VIP skins. I mean they are disabled for me.

Code:
"STEAM_0:1:48216629" "az"
This is what I have in admins_simple
__________________

Last edited by weeeishy; 09-07-2015 at 00:57.
weeeishy 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 12:06.


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