ULX

Author Topic: Custom Groups  (Read 1782 times)

0 Members and 1 Guest are viewing this topic.

Offline patq911

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Custom Groups
« on: June 30, 2009, 06:16:00 PM »
Before reading, yes i did read the post called "groups.txt trouble" under this one, it did not help

I just got ulx and i saw another server using custom ranks(groups teams, whatever)

I want these ranks
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulib_passtime"
"ulib_passtimeout"
"ulx banid"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx chattime"
"ulx welcomemessage"
"ulx sslay"
"ulx ignite"
"ulx ban"
"ulx armor"
"ulx hp"
"ulx blind"
"ulx maul"
"ulx adminmenu"
"ulx clientmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx bring"
"ulx send"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx votemap2"
"ulx ghost"
"ulx unblind"
"ulx mapsmenu"

}
"inherit_from"
{
}
}
"Pat"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"Badass"
"none"
}
}
"Badass"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"Awesome"
{
"deny"
{
}
"allow"
{
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"Regular"
{
"deny"
{
}
"allow"
{
"ulx mute"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx unignite"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx hp"
"ulx armor"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx goto"
"ulx teleport"
"ulx kick"
"ulx spectate"
"ulx vote"
}
"inherit_from"
{
}
}
"Commoner"
{
"deny"
{
}
"allow"
{
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx unignite"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx hp"
"ulx armor"
"ulx strip"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx goto"
"ulx teleport"
"ulx vote"
}
"inherit_from"
{
}
}
"Ninja Nub"
{
"deny"
{
}
"allow"
{
"ulx chattime"
"ulx welcomemessage"
"ulx unignite"
"ulx god"
"ulx hp"
"ulx armor"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx goto"
"ulx teleport"
"ulx vote"
}
"inherit_from"
{
}
}
"Nubito"
{
"deny"
{
}
"allow"
{
"ulx chattime"
"ulx welcomemessage"
"ulx god"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx vote"
}
"inherit_from"
{
}
}
"Newbie"
{
"deny"
{
}
"allow"
{
"ulx chattime"
"ulx welcomemessage"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}
I cant promote my self useing the command rcon adduser patq911 Pat 1
but when i try rcon adduser patq911 superadmin 1 it works.
im editing the garrysmod/data/Ulib/groups.txt
any help?
« Last Edit: June 30, 2009, 06:17:40 PM by patq911 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Custom Groups
« Reply #1 on: June 30, 2009, 07:49:22 PM »
Lua is case sensitive.
All of our scripts turn the text/groups you type into lower case when you run the commands.
Pat does not equal pat. Your groups file has capitalized groups.
May I suggest starting fresh, using ulx addgroup to add all your groups, and then perhaps editing the file manually after that.
Much less chance of syntax errors that way.

Also, it would be rcon ulx adduser, you specify rcon adduser twice (no ulx)
I presume that's a mistake typing here and not actually on the server.

Unfortunately, details like that can get you though.

I strongly suggest not using groups with spaces in them either; unless your absolutely sure you can remember to always use quotes when adding someone ; ulx adduser <player> "ninja nub" 1
« Last Edit: June 30, 2009, 07:51:33 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline patq911

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Custom Groups
« Reply #2 on: July 01, 2009, 03:08:39 PM »
Yes i misspelled it here, i did type rcon ulx adduser etc etc.
Ill try it and let you know