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

Can't Add Admins to Sourcemod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sk8terz0mbie
Junior Member
Join Date: May 2013
Location: California,USA
Old 07-07-2013 , 05:59   Can't Add Admins to Sourcemod?
Reply With Quote #1

For Some Reason, I can't add admins to Sourcemod. I'll attach "admins_simple.ini" code and "admins.cfg" code. If you need anymore codes just ask. BTW, I'm installing Sourcebans so if it works then I guess thats good.

Admins_Simple.ini
Code:
//
// READ THIS CAREFULLY! SEE BOTTOM FOR EXAMPLES
//
// For each admin, you need three settings:
//  "identity"		"permissions"		"password"
//
// For the Identity, you can use a SteamID or Name.  To use an IP 

address, prepend a ! character.
// For the Permissions, you can use a flag string and an optional 

password.
//
// PERMISSIONS:
//  Flag definitions are in "admin_levels.cfg"
//  You can combine flags into a string like this:
//  "abcdefgh"
//
//  If you want to specify a group instead of a flag, use an @ 

symbol.  Example:
//  "@Full Admins"
//
//	You can also specify immunity values.  Two examples:
//	"83:abcdefgh"			//Immunity is 83, flags are 

abcdefgh
//	"6:@Full Admins"		//Immunity is 6, group is 

"Full Admins"
//
//	Immunity values can be any number.  An admin cannot target 

an admin with 
//	a higher access value (see sm_immunity_mode to tweak the 

rules).  Default 
//  immunity value is 0 (no immunity).
//
// PASSWORDS:
//  Passwords are generally not needed unless you have name-based 

authentication.
//  In this case, admins must type this in their console:
//
//   setinfo "KEY" "PASSWORD"
//
//  Where KEY is the "PassInfoVar" setting in your core.cfg file, 

and "PASSWORD"
//  is their password.  With name based authentication, this must 

be done before
//  changing names or connecting.  Otherwise, SourceMod will 

automatically detect
//  the password being set.
//
////////////////////////////////
// Examples: (do not put // in front of real lines, as // means 

'comment')
//
//   "STEAM_0:1:16"		"bce"				

//generic, kick, unban for this steam ID, no immunity
//   "!127.0.0.1"		"99:z"				

//all permissions for this ip, immunity value is 99
//   "BAILOPAN"			"abc"	"Gab3n"		//name 

BAILOPAN, password "Gab3n": gets reservation, generic, kick
//
////////////////////////////////

	"STEAM_0:1:43531680"	"99:z"
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:

 *
 */
Admins
{

	"Kentucky Fried Carrots"
	{
		"auth"			"steam"
		"identity"		"STEAM_0:1:43531680"
		"flags"			"abcdefghijklmnopqrstz"
	}
}
__________________
sk8terz0mbie is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-07-2013 , 06:11   Re: Can't Add Admins to Sourcemod?
Reply With Quote #2

The lines are all messed up. You've somehow put line breaks everywhere. Text that should be commented out is no longer being commented out.

This is how it should look.

Code:
//
// READ THIS CAREFULLY! SEE BOTTOM FOR EXAMPLES
//
// For each admin, you need three settings:
//  "identity"		"permissions"		"password"
//
// For the Identity, you can use a SteamID or Name.  To use an IP address, prepend a ! character.
// For the Permissions, you can use a flag string and an optional password.
//
// PERMISSIONS:
//  Flag definitions are in "admin_levels.cfg"
//  You can combine flags into a string like this:
//  "abcdefgh"
//
//  If you want to specify a group instead of a flag, use an @ symbol.  Example:
//  "@Full Admins"
//
//	You can also specify immunity values.  Two examples:
//	"83:abcdefgh"			//Immunity is 83, flags are abcdefgh
//	"6:@Full Admins"		//Immunity is 6, group is "Full Admins"
//
//	Immunity values can be any number.  An admin cannot target an admin with 
//	a higher access value (see sm_immunity_mode to tweak the rules).  Default 
//  immunity value is 0 (no immunity).
//
// PASSWORDS:
//  Passwords are generally not needed unless you have name-based authentication.
//  In this case, admins must type this in their console:
//
//   setinfo "KEY" "PASSWORD"
//
//  Where KEY is the "PassInfoVar" setting in your core.cfg file, and "PASSWORD"
//  is their password.  With name based authentication, this must be done before
//  changing names or connecting.  Otherwise, SourceMod will automatically detect
//  the password being set.
//
////////////////////////////////
// Examples: (do not put // in front of real lines, as // means 'comment')
//
//   "STEAM_0:1:16"		"bce"				//generic, kick, unban for this steam ID, no immunity
//   "!127.0.0.1"		"99:z"				//all permissions for this ip, immunity value is 99
//   "BAILOPAN"			"abc"	"Gab3n"		//name BAILOPAN, password "Gab3n": gets reservation, generic, kick
//
////////////////////////////////
Notice how each line that doesn't actually affect configuration has a // at the beginning.

Last edited by ddhoward; 07-07-2013 at 06:13.
ddhoward is offline
Ade
I love purple
Join Date: May 2010
Old 07-07-2013 , 06:12   Re: Can't Add Admins to Sourcemod?
Reply With Quote #3

try making 1 way work, i suggest admins_simple which is simpler the thing u pasted tho i think was word wrapped and might fudge up the comments, get an original and re-add the last line which looks ok
__________________
Ade is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-07-2013 , 07:58   Re: Can't Add Admins to Sourcemod?
Reply With Quote #4

Quote:
Originally Posted by sk8terz0mbie View Post
... BTW, I'm installing Sourcebans so if it works then I guess thats good.
Then add admins via SourceBans setup
__________________
Do not Private Message @me
Bacardi is offline
Tamasa
Junior Member
Join Date: Jul 2013
Old 07-07-2013 , 10:50   Re: Can't Add Admins to Sourcemod?
Reply With Quote #5

I noticed after the recent souremod/metamod update/fix that somehow there was a line in between where you place admins steamids. All I did was removed that space/line and save, reboot server and mine worked fine after that. Like this:

// Examples: (do not put // in front of real lines, as // means 'comment')
//
// "STEAM_0:1:16" "bce" //generic, kick, unban for this steam ID, no immunity
// "!127.0.0.1" "99:z" //all permissions for this ip, immunity value is 99
// "BAILOPAN" "abc" "Gab3n" //name BAILOPAN, password "Gab3n": gets reservation, generic, kick
//
////////////////////////////////
"STEAM_1:0:29034833" "99:z"
"STEAM_0:0:29422878" "99:z"
"STEAM_0:1:4553897" "99:z"
"STEAM_0:1:25562108" "99:z"
Tamasa is offline
sk8terz0mbie
Junior Member
Join Date: May 2013
Location: California,USA
Old 07-07-2013 , 15:32   Re: Can't Add Admins to Sourcemod?
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
Then add admins via SourceBans setup
My fricken internet is taking so long its hasn't uploaded all the files yet......not even overnight.
__________________
sk8terz0mbie is offline
Jonathan6615
Member
Join Date: May 2013
Old 07-08-2013 , 15:00   Re: Can't Add Admins to Sourcemod?
Reply With Quote #7

My Admin.cfg
Code:
Admins
{
	"Your Username"
	{
		"auth"		"steam"
		"identity"	        "your steamid"
		"flags"		"z"
		"immunity"	        "99"
	}
	"some other guys user"
	{
		"auth"		"steam"
		"identity"	        "someone elses steamid"
		"flags"		"z"
		"immunity"	       "99"
	}
	"another different guy"
	{
		"auth"		"steam"
		"identity"	       "another steam id"
		"flags"	       "a"
		"immunity"	       "5"
	}
	"another guy"
	{
		"auth"		"steam"
		"identity"	        "another other steam id"
		"flags"		"a"
		"immunity"	        "5"
	}
}
If you want just you

Code:
Admins
{

	"Your User"
	{
		"auth"			"steam"
		"identity"		        "Your SteamID"
		"flags"			"your admin flags"
	}
}
Just have to line em up the code doesnt show this correctly for some reason
__________________

Last edited by Jonathan6615; 07-08-2013 at 15:00.
Jonathan6615 is offline
sk8terz0mbie
Junior Member
Join Date: May 2013
Location: California,USA
Old 07-09-2013 , 03:54   Re: Can't Add Admins to Sourcemod?
Reply With Quote #8

Quote:
Originally Posted by Jonathan6615 View Post
My Admin.cfg
Code:
Admins
{
	"Your Username"
	{
		"auth"		"steam"
		"identity"	        "your steamid"
		"flags"		"z"
		"immunity"	        "99"
	}
	"some other guys user"
	{
		"auth"		"steam"
		"identity"	        "someone elses steamid"
		"flags"		"z"
		"immunity"	       "99"
	}
	"another different guy"
	{
		"auth"		"steam"
		"identity"	       "another steam id"
		"flags"	       "a"
		"immunity"	       "5"
	}
	"another guy"
	{
		"auth"		"steam"
		"identity"	        "another other steam id"
		"flags"		"a"
		"immunity"	        "5"
	}
}
If you want just you

Code:
Admins
{

	"Your User"
	{
		"auth"			"steam"
		"identity"		        "Your SteamID"
		"flags"			"your admin flags"
	}
}
Just have to line em up the code doesnt show this correctly for some reason
K thanks I'll try it later

Edit:

Funny, Its already like that but it still doesnt work.
__________________

Last edited by sk8terz0mbie; 07-09-2013 at 18:44.
sk8terz0mbie is offline
Reply


Thread Tools
Display Modes

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 14:28.


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