PDA

View Full Version : Help with setting up server ranks


TriggerWinkle
03-28-2016, 14:55
Hello, I am TriggerWinkle!
I just made a server with many cool plugins. All the plugins work, but I struggle to get one working: Sourcemod admingroups. I cannot seem to understand how it works and I really need help because ranks are one of the most important parts of a server. If someone with some experience could help me I would really appreciate it. That "someone" could get a special rank on the server.

I want my friend King Waffles to be a moderator. His full name is King Waffles and his steam ID is ...

I have setup a rank called moderator and added some permissions in admins_groups.cfg:
http://pastebin.com/vyxejkbM

I added him to my admins_simple.ini
http://pastebin.com/Nudbne6M

And I added him to my admins.cfg
http://pastebin.com/HHMwiDAP

Please help me, I dont understand the logic behind making ranks...

Yours faithfully,
TriggerWinkle

Bacardi
03-30-2016, 15:23
https://wiki.alliedmods.net/Adding_Groups_%28SourceMod%29

Hi. Ok, if we start use admins.cfg then lets forget admin_simple.ini once at all.
It's annoying to use both admin files.

So, clear all users from admin_simple.ini

In admins.cfg you can add admins or vips in admin groups.
You can also add one admin to many groups, mixing.

/**
* 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"
}
*
*/
Admin
{
"Yuuki"
{
"auth" "steam"
"identity" "STEAM_0:0:78802005"
"group" "vip"
}
"Xgen"
{
"auth" "steam"
"identity" "STEAM_0:0:96974754"
"group" "vip"
}
"TriggerWinkle"
{
"auth" "steam"
"identity" "STEAM_0:1:71215729"
"group" "Full Admin"
}
"Waffles"
{
"auth" "steam"
"identity" "STEAM_0:0:51175412"
"group" "Moderator"
}

"BAILOPAN example"
{
"auth" "steam"
"identity" "STEAM_0:0:16"
"group" "Admin"
"group" "Moderator"
}
}



in admin_groups.cfg
Groups
{
"vip"
{
"flags" "a"
"Immunity" "70"
}

"Full Admin"
{
"flags" "abcdefghijklmnopqrst"
"Immunity" "70"
}


"Admin"
{
"flags" "a"
"Immunity" "70"
"Overrides"
{
"sm_spawnmedipack" "allow"
"sm_regen" "allow"
"sm_regen_nohp" "allow"
"sm_randomrtd" "allow"
"sm_onlymelee" "allow"
"sm_homproj" "allow"
"sm_friendly" "allow"
"sm_friendly_v" "allow"
"sm_friendly_lock" "allow"
"sm_friendly_admin" "allow"
"sm_advanced_infinite_ammo" "allow"
"sm_advanced_infinite_ammo_timed" "allow"
"betherobot_admin" "allow"
"sm_forcertd" "allow"
"sm_forceendround" "allow"
"sm_reloadccc" "allow"
"sm_setspawn" "allow"
"sm_reloadccc" "allow"
"sm_god" "allow"
"sm_buddha" "allow"
"sm_behhh" "allow"
"sm_buddha" "allow"
"sm_resizemyhead" "allow"
"sm_resizeme" "allow"
"sm_resizejoinoverride" "allow"
"sm_resizeheadjoinoverride" "allow"
"sm_resizeheadboundsoverride" "allow"
"sm_resizehead" "allow"
"sm_resizecooldownbypass" "allow"
"sm_resizeboundsoverride" "allow"
"sm_resize" "allow"
"sm_noclip" "allow"
"rtd" "allow"
"fp" "allow"
"sm_firstperson" "allow"
"tp" "allow"
"sm_thirdperson" "allow"
"sm_admin" "allow"
"sm_tele" "allow"
"sm_buster" "allow"
"sm_spawnammo" "allow"
"sm_sethealth" "allow"
"sm_kick" "allow"
"sm_ban" "allow"
"sm_disco" "allow"
"sm_vote" "allow"
"sm_votekick" "allow"
}

"Moderator"
{
"flags" "m"
"Immunity" "1"
"Overrides"
{
"sm_spawnmedipack" "allow"
"sm_regen" "allow"
"sm_regen_nohp" "allow"
"sm_randomrtd" "allow"
"sm_onlymelee" "allow"
"sm_homproj" "allow"
"sm_friendly" "allow"
"sm_friendly_v" "allow"
"sm_friendly_lock" "allow"
"sm_friendly_admin" "allow"
"sm_advanced_infinite_ammo" "allow"
"sm_advanced_infinite_ammo_timed" "allow"
"betherobot_admin" "allow"
"sm_forcertd" "allow"
"sm_forceendround" "allow"
"sm_reloadccc" "allow"
"sm_setspawn" "allow"
"sm_reloadccc" "allow"
"sm_god" "allow"
"sm_buddha" "allow"
"sm_behhh" "allow"
"sm_buddha" "allow"
"sm_resizemyhead" "allow"
"sm_resizeme" "allow"
"sm_resizejoinoverride" "allow"
"sm_resizeheadjoinoverride" "allow"
"sm_resizeheadboundsoverride" "allow"
"sm_resizehead" "allow"
"sm_resizecooldownbypass" "allow"
"sm_resizeboundsoverride" "allow"
"sm_resize" "allow"
"sm_noclip" "allow"
"rtd" "allow"
"fp" "allow"
"sm_firstperson" "allow"
"tp" "allow"
"sm_thirdperson" "allow"
"sm_tele" "allow"
"sm_spawnammo" "allow"
"sm_sethealth" "allow"
"sm_kick" "allow"
"sm_ban" "allow"
"sm_votekick" "allow"
}
}
}

And I would suggest to not give admin flag root "z" to anyone, it gives all flags and bypass immunity, not good.
And if there are commands what you not want to see in admin menu, you can override that to z flag to hide it.


Just make sure you have rigth amount open brackets { and close brackets } whe nyou edit file after.
Have seen many times when people delete last bracket bottom of file...

TriggerWinkle
03-31-2016, 10:30
Thanks for helping me.

- TriggerWinkle